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

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 01-09-2012, 06:48 AM
Junior Member
 
Posts: 7
Default zmmailboxdctl is not running

Hi,

im new to zimbra,
currently installed zimbra 7.1.3 on centos6 64bits on openvz with burst memory of 3Gb...
previously i managed to start the server before doing some tuning, but now it seems to fail to start the mail service.
mysql.server is showing not running, but i'm able to connect to mysql on port 7306...
when i check /opt/zimbra/log/zmmaildctl.out, i see this:
--------------------
CompilerOracle: exclude com/zimbra/cs/session/SessionMap.putAndPrune
CompilerOracle: exclude com/zimbra/cs/mailbox/MailItem.delete
CompilerOracle: exclude org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDisp atcher.dispatch
Exception in thread "main" java.lang.NoClassDefFoundError: \
Caused by: java.lang.ClassNotFoundException: \
at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
Could not find the main class: \. Program will exit.

--------------------

zmcontrol status
---------------------

[zimbra@us1 log]$ zmcontrol status
Picked up _JAVA_OPTIONS: -Xmx100m
Host us1.mercstudio.net
antispam Running
antivirus Running
imapproxy Running
ldap Running
logger Running
mailbox Stopped
mysql.server is not running.
zmmailboxdctl is not running.
memcached Running
mta Running
snmp Stopped
zmswatch is not running.
spell Running
stats Running
zmconfigd Running
--------------------------
[zimbra@us1 log]$ netstat -lp
--------------------------
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 5276/nginx
tcp 0 0 *op3s *:* LISTEN 5276/nginx
tcp 0 0 localhost:7171 *:* LISTEN 1697/java
tcp 0 0 *:7780 *:* LISTEN 5454/httpd
tcp 0 0 us1.mercstudio.net:ldap *:* LISTEN -
tcp 0 0 localhost:10663 *:* LISTEN 5178/zmlogger: zmrr
tcp 0 0 localhost:10024 *:* LISTEN 5344/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN -
tcp 0 0 localhost:7306 *:* LISTEN 10190/mysqld
tcp 0 0 *:submission *:* LISTEN -
tcp 0 0 *:memcache *:* LISTEN 5260/memcached
tcp 0 0 localhost:dyna-access *:* LISTEN 5438/clamd
tcp 0 0 *op3 *:* LISTEN 5276/nginx
tcp 0 0 *:imap *:* LISTEN 5276/nginx
tcp 0 0 *:urd *:* LISTEN -
tcp 0 0 *:ssh *:* LISTEN -
tcp 0 0 *:smtp *:* LISTEN -
udp 0 0 *:memcache *:* 5260/memcached
udp 0 0 *:56482 *:* 1697/java

what should i do next?

here are the custom config ive set after trying to tune the memory usage:

zmlocalconfig -e tomcat_java_heap_memory_percent=40
zmlocalconfig -e zmmtaconfig_interval=300
zmlocalconfig -e zmstat_interval=300
zmlocalconfig -e mailboxd_java_heap_memory_percent=10
zmlocalconfig -e mailboxd_java_heap_new_size_percent=10

zmlocalconfig -e mailboxd_java_options="-server -Djava.awt.headless=true -XX:NewRatio=2 -XX:PermSize=128m \
-XX:MaxPermSize=128m -XX:SoftRefLRUPolicyMSPerMB=1"

zmlocalconfig -e ldap_common_threads=16
zmlocalconfig -e ldap_common_toolthreads=8
zmlocalconfig -e ldap_db_cachesize=50000
zmlocalconfig -e ldap_db_idlcachesize=50000
zmlocalconfig -e ldap_db_dncachesize=0
Reply With Quote
  #2 (permalink)  
Old 01-09-2012, 08:02 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by u007 View Post
currently installed zimbra 7.1.3 on centos6 64bits on openvz with burst memory of 3Gb...
First point, openvz is not a supported platform for Zimbra. If you are going to run it in that environment you need at least 2GB of fixed RAM (preferably 4GB for production) for testing.

Second point, you should not have imapproxy & memcahced enabled for a single server installation. Search the forums for details on how to disble n& remove those services and reset the ports to their defaults. When you done all of the above you should restart Zimbra and see what errors you get.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 01-09-2012, 06:51 PM
Junior Member
 
Posts: 7
Default problem disabling memcache...

hi,

i tried to follow some instruction to disable the memcache,
but problem is, i think my mailboxd is not running, so i get this error:

[zimbra@us1 james]$ zmcontrol status
Picked up _JAVA_OPTIONS: -Xmx100m
Host us1.mercstudio.net
antispam Running
antivirus Running
imapproxy Running
ldap Running
logger Running
mailbox Stopped
mysql.server is not running.
zmmailboxdctl is not running.
memcached Running
mta Running
snmp Stopped
zmswatch is not running.
spell Running
stats Running
zmconfigd Running
[zimbra@us1 james]$ zmprov ms `zmhostname` -zimbraServiceEnabled memcached
Picked up _JAVA_OPTIONS: -Xmx100m
Picked up _JAVA_OPTIONS: -Xmx100m
Picked up _JAVA_OPTIONS: -Xmx100m
Picked up _JAVA_OPTIONS: -Xmx100m
[] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[] INFO: Retrying request
ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)

can i manually mysql into zimbra db to change the setting?
or is there any config file i could change?
Reply With Quote
  #4 (permalink)  
Old 01-09-2012, 07:52 PM
Junior Member
 
Posts: 7
Default

i found the solution:

#alternative zmprov
zmprov -l
ms [servername] -zimbraServiceEnabled memcached
ms [servername] -zimbraServiceEnabled imapproxy
Reply With Quote
  #5 (permalink)  
Old 01-09-2012, 08:08 PM
Junior Member
 
Posts: 7
Default

hi,

ive disabled imap and memcache, but still the same error:
--------------

[zimbra@us1 james]$ zmcontrol status
Picked up _JAVA_OPTIONS: -Xmx100m
Host us1.mercstudio.net
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Stopped
mysql.server is not running.
zmmailboxdctl is not running.
mta Running
snmp Stopped
zmswatch is not running.
spell Running
stats Running
zmconfigd Running
[zimbra@us1 james]$ tail -n 50 ~/log/zmmailboxd.out
CompilerOracle: exclude com/zimbra/cs/session/SessionMap.putAndPrune
CompilerOracle: exclude com/zimbra/cs/mailbox/MailItem.delete
CompilerOracle: exclude org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDisp atcher.dispatch
Exception in thread "main" java.lang.NoClassDefFoundError: \
Caused by: java.lang.ClassNotFoundException: \
at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
Could not find the main class: \. Program will exit.
Reply With Quote
  #6 (permalink)  
Old 01-09-2012, 08:10 PM
Junior Member
 
Posts: 7
Default netstat result

[zimbra@us1 james]$ netstat -lp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:ms-v-worlds *:* LISTEN -
tcp 0 0 localhost:7171 *:* LISTEN 1981/java
tcp 0 0 *:7780 *:* LISTEN 5375/httpd
tcp 0 0 us1.mercstudio.net:ldap *:* LISTEN -
tcp 0 0 localhost:10663 *:* LISTEN 3818/zmlogger: zmrr
tcp 0 0 localhost:10024 *:* LISTEN 5261/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN -
tcp 0 0 localhost:7306 *:* LISTEN 4080/mysqld
tcp 0 0 *:submission *:* LISTEN -
tcp 0 0 localhost:dyna-access *:* LISTEN 5360/clamd
tcp 0 0 *:webcache *:* LISTEN -
tcp 0 0 *:urd *:* LISTEN -
tcp 0 0 *:ssh *:* LISTEN -
tcp 0 0 *:smtp *:* LISTEN -
udp 0 0 *:37383 *:* 1981/java
Reply With Quote
  #7 (permalink)  
Old 01-11-2012, 06:56 AM
Junior Member
 
Posts: 7
Default

ive solved my problem:
resetting this configuration allow me to run zimbra :

zmlocalconfig -e mailboxd_java_options=""
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.