Results 1 to 4 of 4

Thread: Tomcat, Java VM Problems - RAM related? Help

  1. #1
    Mo_Hong's Avatar
    Mo_Hong is offline Senior Member
    Join Date
    Mar 2006
    Location
    Venezuela
    Posts
    50
    Rep Power
    9

    Default Tomcat, Java VM Problems - RAM related? Help

    Hi all,
    I'm having some trouble with a server running a fresh Zimbra install. I did the installation and it went ok, no problems found, but as I ran zmcontrol status, tomcat was not running. I looked over all the possible causes, search in the forum but I cannot find the solution to the problem. The machine has 6 Gb of RAM, running on OpenSuSE 10 and I'll post over the logs. The only log that gave me some information was catalina.out, but when I changed the tomcat_java_heap_memory_percent still didnt work. Please, any help to solve this so I can put the server to work would be really great. Thanks in advance.

    E.

    Logs:

    #catalina.out

    Invalid initial heap size: -Xms4255m
    The specified size exceeds the maximum representable size.
    Could not create the Java virtual machine.
    Invalid initial heap size: -Xms4255m
    The specified size exceeds the maximum representable size.
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Invalid initial heap size: -Xms4255m
    The specified size exceeds the maximum representable size.
    Could not create the Java virtual machine.
    Invalid initial heap size: -Xms4255m
    The specified size exceeds the maximum representable size.
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.

    #/var/log/zimbra.log (last 100 lines)
    Mar 27 14:42:49 contingencia amavis[3641]: No decoder for .lzo tried: lzop -d
    Mar 27 14:42:49 contingencia amavis[3641]: Found decoder for .rpm at /usr/bin/rpm2cpio
    Mar 27 14:42:49 contingencia amavis[3641]: Found decoder for .cpio at /usr/bin/pax
    Mar 27 14:42:49 contingencia amavis[3641]: Found decoder for .tar at /usr/bin/pax
    Mar 27 14:42:49 contingencia amavis[3641]: Found decoder for .deb at /usr/bin/ar
    Mar 27 14:42:49 contingencia amavis[3641]: Internal decoder for .zip
    Mar 27 14:42:49 contingencia amavis[3641]: Found decoder for .rar at /usr/bin/unrar
    Mar 27 14:42:49 contingencia amavis[3641]: No decoder for .arj tried: arj, unarj
    Mar 27 14:42:49 contingencia amavis[3641]: No decoder for .arc tried: nomarch, arc
    Mar 27 14:42:49 contingencia amavis[3641]: No decoder for .zoo tried: zoo
    Mar 27 14:42:49 contingencia amavis[3641]: No decoder for .lha tried: lha
    Mar 27 14:42:49 contingencia amavis[3641]: Found decoder for .cab at /usr/bin/cabextract
    Mar 27 14:42:49 contingencia amavis[3641]: No decoder for .tnef tried: tnef
    Mar 27 14:42:49 contingencia amavis[3641]: Internal decoder for .tnef
    Mar 27 14:42:49 contingencia amavis[3641]: Found decoder for .exe at /usr/bin/unrar
    Mar 27 14:42:49 contingencia amavis[3641]: Using internal av scanner code for (primary) ClamAV-clamd
    Mar 27 14:42:49 contingencia amavis[3641]: Creating db in /opt/zimbra/amavisd/db/; BerkeleyDB 0.31, libdb 4.2
    Mar 27 14:42:49 contingencia sudo: zimbra : TTY=pts/2 ; PWD=/opt/zimbra/log ; USER=root ; COMMAND=/opt/zimbra/postfix-2.2.9/sbin/postalias /etc/aliases
    Mar 27 14:42:49 contingencia amavis[3641]: SpamControl: initializing Mail::SpamAssassin
    Mar 27 14:42:49 contingencia sudo: zimbra : TTY=pts/2 ; PWD=/opt/zimbra/log ; USER=root ; COMMAND=/opt/zimbra/postfix-2.2.9/sbin/postfix start norewrite
    Mar 27 14:42:50 contingencia postfix/postfix-script: warning: not owned by root: /opt/zimbra/postfix-2.2.9/conf/main.cf
    Mar 27 14:42:50 contingencia amavis[3641]: SpamControl: init_pre_fork done
    Mar 27 14:42:50 contingencia postfix/postfix-script: starting the Postfix mail system
    Mar 27 14:42:50 contingencia postfix/master[3701]: daemon started -- version 2.2.9, configuration /opt/zimbra/postfix-2.2.9/conf
    Mar 27 14:42:50 contingencia saslauthd[3713]: detach_tty : master pid is: 3713
    Mar 27 14:42:50 contingencia saslauthd[3713]: ipc_init : listening on socket: /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state/mux
    Mar 27 14:42:50 contingencia clamd[3605]: Protecting against 91202 viruses.
    Mar 27 14:42:50 contingencia clamd[3718]: Bound to port 3310
    Mar 27 14:42:50 contingencia clamd[3718]: Setting connection queue length to 15
    Mar 27 14:42:50 contingencia clamd[3718]: Archive: Archived file size limit set to 104857600 bytes.
    Mar 27 14:42:50 contingencia clamd[3718]: Archive: Recursion level limit set to 8.
    Mar 27 14:42:50 contingencia clamd[3718]: Archive: Files limit set to 1000.
    Mar 27 14:42:50 contingencia clamd[3718]: Archive: Compression ratio limit set to 250.
    Mar 27 14:42:50 contingencia clamd[3718]: Archive support enabled.
    Mar 27 14:42:50 contingencia clamd[3718]: Archive: RAR support disabled.
    Mar 27 14:42:50 contingencia clamd[3718]: Portable Executable support enabled.
    Mar 27 14:42:50 contingencia clamd[3718]: Mail files support enabled.
    Mar 27 14:42:50 contingencia clamd[3718]: Mail: Recursion level limit set to 64.
    Mar 27 14:42:50 contingencia clamd[3718]: OLE2 support enabled.
    Mar 27 14:42:50 contingencia clamd[3718]: HTML support enabled.
    Mar 27 14:42:50 contingencia clamd[3718]: Self checking every 1800 seconds.
    Mar 27 14:43:03 contingencia sudo: zimbra : TTY=pts/2 ; PWD=/opt/zimbra/log ; USER=root ; COMMAND=/opt/zimbra/libexec/zmtomcatmgr status
    Mar 27 14:43:03 contingencia zmtomcatmgr[3812]: status requested
    Mar 27 14:43:03 contingencia zmtomcatmgr[3812]: stale pid 3569 found in /opt/zimbra/log/zmtomcatmgr.pid: No such process
    Mar 27 14:43:03 contingencia zmtomcatmgr[3812]: assuming no other instance is running
    Mar 27 14:43:03 contingencia zmtomcatmgr[3812]: no manager process is running
    Mar 27 14:44:03 contingencia sudo: zimbra : TTY=unknown ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmtomcatmgr status
    Mar 27 14:44:03 contingencia zmtomcatmgr[4006]: status requested
    Mar 27 14:44:03 contingencia zmtomcatmgr[4006]: stale pid 3569 found in /opt/zimbra/log/zmtomcatmgr.pid: No such process
    Mar 27 14:44:03 contingencia zmtomcatmgr[4006]: assuming no other instance is running
    Mar 27 14:44:03 contingencia zmtomcatmgr[4006]: no manager process is running
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: antispam: Running
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: antivirus: Running
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: ldap: Running
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: logger: Running
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: mailbox: Stopped
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: mta: Running
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: snmp: Running
    Mar 27 14:44:03 contingencia zimbramon[3910]: 3910:info: 2007-03-27 14:44:01, STATUS: contingencia.vencred.com: spell: Running
    Mar 27 14:46:03 contingencia sudo: zimbra : TTY=unknown ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmtomcatmgr status
    Mar 27 14:46:03 contingencia zmtomcatmgr[4265]: status requested
    Mar 27 14:46:03 contingencia zmtomcatmgr[4265]: stale pid 3569 found in /opt/zimbra/log/zmtomcatmgr.pid: No such process
    Mar 27 14:46:03 contingencia zmtomcatmgr[4265]: assuming no other instance is running
    Mar 27 14:46:03 contingencia zmtomcatmgr[4265]: no manager process is running
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: antispam: Running
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: antivirus: Running
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: ldap: Running
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: logger: Running
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: mailbox: Stopped
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: mta: Running
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: snmp: Running
    Mar 27 14:46:03 contingencia zimbramon[4169]: 4169:info: 2007-03-27 14:46:01, STATUS: contingencia.vencred.com: spell: Running
    Mar 27 14:48:02 contingencia sudo: zimbra : TTY=unknown ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmtomcatmgr status
    Mar 27 14:48:02 contingencia zmtomcatmgr[4449]: status requested
    Mar 27 14:48:02 contingencia zmtomcatmgr[4449]: stale pid 3569 found in /opt/zimbra/log/zmtomcatmgr.pid: No such process
    Mar 27 14:48:02 contingencia zmtomcatmgr[4449]: assuming no other instance is running
    Mar 27 14:48:02 contingencia zmtomcatmgr[4449]: no manager process is running
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: antispam: Running
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: antivirus: Running
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: ldap: Running
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: logger: Running
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: mailbox: Stopped
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: mta: Running
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: snmp: Running
    Mar 27 14:48:02 contingencia zimbramon[4353]: 4353:info: 2007-03-27 14:48:01, STATUS: contingencia.vencred.com: spell: Running
    Mar 27 14:50:02 contingencia zimbramon[4605]: 4605:info: 2007-03-27 14:50:02, QUEUE: 3 2
    Mar 27 14:50:02 contingencia zimbramon[4609]: 4609:info: 2007-03-27 14:50:02, DISK: contingencia.vencred.com: dev: /dev/sda4, mp: /, tot: 337731, avail: 314153
    Mar 27 14:50:04 contingencia sudo: zimbra : TTY=unknown ; PWD=/opt/zimbra ; USER=root ; COMMAND=/opt/zimbra/libexec/zmtomcatmgr status
    Mar 27 14:50:04 contingencia zmtomcatmgr[4776]: status requested
    Mar 27 14:50:04 contingencia zmtomcatmgr[4776]: stale pid 3569 found in /opt/zimbra/log/zmtomcatmgr.pid: No such process
    Mar 27 14:50:04 contingencia zmtomcatmgr[4776]: assuming no other instance is running
    Mar 27 14:50:04 contingencia zmtomcatmgr[4776]: no manager process is running
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: antispam: Running
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: antivirus: Running
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: ldap: Running
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: logger: Running
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: mailbox: Stopped
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: mta: Running
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: snmp: Running
    Mar 27 14:50:04 contingencia zimbramon[4611]: 4611:info: 2007-03-27 14:50:02, STATUS: contingencia.vencred.com: spell: Running

  2. #2
    Mo_Hong's Avatar
    Mo_Hong is offline Senior Member
    Join Date
    Mar 2006
    Location
    Venezuela
    Posts
    50
    Rep Power
    9

    Default Still with problems

    Well, the tomcat problem is now gone, I changed the tomcat_java_heap_memory_percent to 30 and tomcat is already running, but I cannot start the web client or the web administration console. I checked over the catalina.out and it still show some Out of Memory errors, but I think that the problem might be other, because I have 6gb of memory on that machine. Any clues?

    Thanks,
    E.

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Code:
    zmlocalconfig | grep mem
    mysql_memory_percent = 40
    tomcat_java_heap_memory_percent = 30
    You probably need to reduce the MySQL memory percentage to below 2GB.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    Mo_Hong's Avatar
    Mo_Hong is offline Senior Member
    Join Date
    Mar 2006
    Location
    Venezuela
    Posts
    50
    Rep Power
    9

    Default

    Made the mysql memory modification, to 30 % but still nothing. The web clients don't start. Any log I can post to give clues about this?

    Thanks Again,
    E.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fedora 5: Could not create the Java virtual machine
    By mi2enno in forum Installation
    Replies: 6
    Last Post: 06-01-2007, 03:16 AM
  2. Replies: 14
    Last Post: 03-21-2007, 11:15 AM
  3. Java 1.5 crashing on PPC Mac 10.4.8
    By bradn in forum Installation
    Replies: 1
    Last Post: 12-08-2006, 06:27 PM
  4. Replies: 0
    Last Post: 12-04-2005, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •