Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-29-2006, 07:32 PM
Senior Member
 
Posts: 73
Default Urgent - zmlocalconfig does not work - Tomcat is not running

hi all

I am trying to do a
su - zimbra
zmlocalconfig mysql_memory_percent "20"
zmlocalconfig tomcat_java_heap_memory_percent "50"


But the command zmlocalconfig does not work

[zimbra@mail ~]$ zmlocalconfig mysql_memory_percent "30"
Warning: null valued key '30'
mysql_memory_percent = 40
You have new mail in /var/spool/mail/zimbra


As to why I am doing this -
I cannot get mailbox started - it says Tomcat is no
And in my log, I got this message
2006-08-29 18:29:46,438 FATAL [LmtpServer-1] [] system - Fatal error occurred while handling connection
java.lang.OutOfMemoryError: Java heap space


Thank you very much.
Reply With Quote
  #2 (permalink)  
Old 08-29-2006, 07:42 PM
Former Zimbran
 
Posts: 5,606
Default

First, What does
ps auxww | grep sendmail
ps auxww | grep postfix

return?
Reply With Quote
  #3 (permalink)  
Old 08-29-2006, 07:53 PM
Senior Member
 
Posts: 73
Default

[root@mail ~]# ps auxww | grep sendmail
root 7115 0.0 0.0 3768 684 pts/0 S+ 18:53 0:00 grep sendmail
[root@mail ~]# ps auxww | grep postfix
root 30339 0.0 0.0 6524 1640 ? Ss 18:29 0:00 /opt/zimbra/postfix-2.2.9/libexec/master
postfix 30340 0.0 0.0 6576 1656 ? S 18:29 0:00 pickup -l -t fifo -u
postfix 30341 0.0 0.0 6604 1716 ? S 18:29 0:00 qmgr -l -t fifo -u
postfix 7200 0.0 0.0 6572 1616 ? S 18:54 0:00 showq -t unix -u
root 7230 0.0 0.0 3764 672 pts/0 R+ 18:54 0:00 grep postfix


Thank you.


[zimbra@mail ~]$ zmcontrol status
Host mail.function.com
ldap Running
logger Running
mailbox Stopped
tomcat is not running
mta Running
snmp Running
spell Running
[zimbra@mail ~]$





Quote:
Originally Posted by wannabetenor
First, What does
ps auxww | grep sendmail
ps auxww | grep postfix

return?
Reply With Quote
  #4 (permalink)  
Old 08-29-2006, 08:00 PM
Former Zimbran
 
Posts: 5,606
Default

Okay, I wanted to make sure you didn't have another mta running.

what does zmlocalconfig -s return?
Reply With Quote
  #5 (permalink)  
Old 08-29-2006, 08:10 PM
Senior Member
 
Posts: 73
Default

[zimbra@mail ~]$ zmlocalconfig -s
av_notify_user = admin@mydomainabc.com
ldap_connect_pool_debug = false
ldap_connect_pool_initsize = 1
ldap_connect_pool_maxsize = 25
ldap_connect_pool_prefsize = 0
ldap_connect_pool_timeout = 120000
ldap_connect_timeout = 10000
ldap_host =
ldap_is_master = true
ldap_log_level = 0
ldap_master_url = ldap://mail.fmydomainabc.com:389
ldap_port =
ldap_root_password = 9gFzMlmmo
ldap_url = ldap://mail.mydomainabc.com
localized_msgs_directory = ${zimbra_home}/conf/msgs
logger_mysql_bind_address = localhost
logger_mysql_data_directory = ${zimbra_home}/logger/db/data
logger_mysql_directory = ${zimbra_home}/logger/mysql
logger_mysql_mycnf = ${zimbra_home}/conf/my.logger.cnf
logger_mysql_pidfile = ${zimbra_home}/logger/db/mysql.pid
logger_mysql_port = 7307
logger_mysql_socket = ${zimbra_home}/logger/db/mysql.sock
mysql_bind_address = localhost
mysql_data_directory = ${zimbra_db_directory}/data
mysql_directory = ${zimbra_home}/mysql
mysql_innodb_log_buffer_size = 8388608
mysql_innodb_log_file_size = 104857600
mysql_logger_root_password = DJaNaq4rlOUvn9GFZXrsJZvbU7E
mysql_memory_percent = 40
mysql_mycnf = ${zimbra_home}/conf/my.cnf
mysql_pidfile = ${zimbra_db_directory}/mysql.pid
mysql_port = 7306
mysql_read_buffer_size = 1048576
mysql_root_password = 49DwyUwYReWaSrcOCGXg4tKo2u
mysql_socket = ${zimbra_db_directory}/mysql.sock
mysql_sort_buffer_size = 1048576
mysql_table_cache = 500
nio_imap_enable = false
nio_imap_log_buffers = false
postfix_alias_maps = hash:/etc/aliases
postfix_broken_sasl_auth_clients = yes
postfix_command_directory = /opt/zimbra/postfix-${postfix_version}/sbin
postfix_daemon_directory = /opt/zimbra/postfix-${postfix_version}/libexec
postfix_header_checks = pcre:/opt/zimbra/conf/postfix_header_checks
postfix_mailq_path = /opt/zimbra/postfix-${postfix_version}/sbin/mailq
postfix_manpage_directory = /opt/zimbra/postfix-${postfix_version}/man
postfix_newaliases_path = /opt/zimbra/postfix-${postfix_version}/sbin/newaliases
postfix_queue_directory = /opt/zimbra/postfix-${postfix_version}/spool
postfix_sender_canonical_maps = ldap:/opt/zimbra/conf/ldap-scm.cf
postfix_sendmail_path = /opt/zimbra/postfix-${postfix_version}/sbin/sendmail
postfix_smtpd_client_restrictions = reject_unauth_pipelining
postfix_smtpd_data_restrictions = reject_unauth_pipelining
postfix_smtpd_helo_required = yes
postfix_smtpd_tls_cert_file = ${zimbra_home}/conf/smtpd.crt
postfix_smtpd_tls_key_file = ${zimbra_home}/conf/smtpd.key
postfix_smtpd_tls_loglevel = 3
postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
postfix_version = 2.2.9
postfix_virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf
postfix_virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf
postfix_virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf
postfix_virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf
postfix_virtual_transport = error
smtp_destination = admin@mydomainabc.com
smtp_notify = yes
smtp_source = admin@mydomainabc.com
snmp_notify = yes
snmp_trap_host = mail.mydomainabc.com
ssl_allow_untrusted_certs = TRUE
stats_img_folder = ${zimbra_home}/zimbramon/rrdtool/work
tomcat_directory = ${zimbra_home}/tomcat
tomcat_java_heap_memory_percent = 30
tomcat_java_home = ${zimbra_java_home}
tomcat_java_options = -client -XX:NewRatio=2
tomcat_keystore = ${tomcat_directory}/conf/keystore
tomcat_pidfile = ${zimbra_log_directory}/tomcat.pid
wiki_enabled = false
wiki_user = wiki
zimbra_db_directory = ${zimbra_home}/db
zimbra_extension_directory = ${zimbra_home}/lib/ext
zimbra_gid = 501
zimbra_home = /opt/zimbra
zimbra_index_directory = ${zimbra_home}/index
zimbra_index_idle_flush_time = 600
zimbra_index_lru_size = 100
zimbra_index_max_uncommitted_operations = 200
zimbra_java_home = ${zimbra_home}/java
zimbra_ldap_password = 9gFzMlmmo
zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra
zimbra_log4j_properties = ${zimbra_home}/conf/log4j.properties
zimbra_log_directory = ${zimbra_home}/log
zimbra_logger_mysql_password = cPTJMIwutjROt6ZjGQx2QUP5d43o0bSc
zimbra_mtareport_max_recipients = 50
zimbra_mtareport_max_senders = 50
zimbra_mysql_connector_maxActive = 16
zimbra_mysql_password = jY8eHs2k4FO7N80wQn3dxCI2o
zimbra_mysql_user = zimbra
zimbra_server_hostname = mail.function.com
zimbra_spam_report_queue_size = 100
zimbra_store_directory = ${zimbra_home}/store
zimbra_store_sweeper_max_age = 480
zimbra_tmp_directory = /tmp/zimbra
zimbra_uid = 501
zimbra_user = zimbra
zimlet_directory = ${tomcat_directory}/webapps/service/zimlet
[zimbra@mail ~]$



Thanks



Quote:
Originally Posted by wannabetenor
Okay, I wanted to make sure you didn't have another mta running.

what does zmlocalconfig -s return?

Last edited by zzzzsg; 08-29-2006 at 08:16 PM..
Reply With Quote
  #6 (permalink)  
Old 08-29-2006, 08:16 PM
Former Zimbran
 
Posts: 5,606
Default

Quote:
Originally Posted by zzzzsg
mysql_memory_percent = 40
tomcat_java_home = ${zimbra_java_home}
Looks like your mysql mem is already at 40%
I actually cant seem to find the syntax for the command. I think it is something like:
zmprov mcf mysql_memory_percent

but no matter what I put after that, it gives me an error
Reply With Quote
  #7 (permalink)  
Old 08-29-2006, 08:22 PM
Senior Member
 
Posts: 73
Default

I want to reduce the mysql to 20
and increase the java one to 50

zmlocalconfig mysql_memory_percent "20"
zmlocalconfig tomcat_java_heap_memory_percent "50"

thanks



Quote:
Originally Posted by wannabetenor
Looks like your mysql mem is already at 40%
I actually cant seem to find the syntax for the command. I think it is something like:
zmprov mcf mysql_memory_percent

but no matter what I put after that, it gives me an error

Last edited by zzzzsg; 08-29-2006 at 08:35 PM..
Reply With Quote
  #8 (permalink)  
Old 08-29-2006, 10:05 PM
Senior Member
 
Posts: 73
Default

i've figured out the syntax
the correct command syntax is



[zimbra@mail ~]$ zmlocalconfig -e tomcat_java_heap_memory_percent="50"
[zimbra@mail ~]$ zmlocalconfig -e mysql_memory_percent="20"




Quote:
Originally Posted by wannabetenor
Looks like your mysql mem is already at 40%
I actually cant seem to find the syntax for the command. I think it is something like:
zmprov mcf mysql_memory_percent

but no matter what I put after that, it gives me an error
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.