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 Display Modes
  #1 (permalink)  
Old 02-07-2007, 12:22 PM
Trained Alumni
 
Posts: 286
Default Cannot login to web interface or use IMAP...

My problems started two days ago when power to this server got bumped...and it's been broken ever since. I'm running the OSS version at my home so it's not "mission critical"...except that my wife is going to soon tell me to sleep in the basement with the servers if I don't get email fixed.

If I try to log in to the web interface I get the "INVALID_PDU" message. My mail client just gives me a timeout error.

I've taken a look at the logs and found in the mailbox.log that the SoapServlet and AdminServlet are failing because of a "Java Heap Space" problem?

Code:
2007-02-07 13:07:07,693 ERROR [main] [] [/service] - Servlet /service threw load() exception javax.servlet.UnavailableException: Java heap space
Also, /var/log/messages is filling up with these errors which are occurring every second...

Code:
Feb  7 13:15:16 mail mon[3323]: no monitor found while trying to run [smtp.monitor]
Feb  7 13:15:16 mail mon[3323]: no monitor found while trying to run [http.monitor]
Feb  7 13:15:16 mail mon[3323]: no monitor found while trying to run [ping.monitor]
Feb  7 13:15:16 mail mon[3323]: no monitor found while trying to run [telnet.monitor]
I found a forum post which mentioned bumping the memory available to Java in Tomcat...did that but am still having the same issues.

Is there anything else I can try, or am I screwed?

Thanks,
Matt
Reply With Quote
  #2 (permalink)  
Old 02-07-2007, 12:32 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

You're not screwed.

Try this:
# su - zimbra
$ zmlocalconfig -e tomcat_java_heap_memory_percent=60
Reply With Quote
  #3 (permalink)  
Old 02-07-2007, 12:33 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

don't forget to shut down and restart zimbra.
Reply With Quote
  #4 (permalink)  
Old 02-07-2007, 12:49 PM
Trained Alumni
 
Posts: 286
Default

Yea I had done that already, but tried it again (I don't think I used the dash in the su before).

$ su - zimbra
$ zmlocalconfig blah_blah_blah=60

...oh...and I restarted zimbra with "zmcontrol stop/start"...

But I am getting the exact same results. So what to try next?

By the way...like your forum name except....why would anyone wanna be a tenor? The bass/baritones are where it's at!

Thanks,
Matt
Reply With Quote
  #5 (permalink)  
Old 02-07-2007, 01:15 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

can you
tail -100 /opt/zimbra/log/mailbox.log

??

I've had this name since high school. The tenors were the cool guys.
Reply With Quote
  #6 (permalink)  
Old 02-07-2007, 01:30 PM
Trained Alumni
 
Posts: 286
Default

Here's the tail from the last start of zimbra

Code:
2007-02-07 13:42:42,298 INFO  [main] [] soap - Servlet SoapServlet starting up
2007-02-07 13:42:42,402 INFO  [main] [] soap - Adding service AccountService to SoapServlet
2007-02-07 13:42:42,645 INFO  [main] [] soap - Adding service MailService to SoapServlet
2007-02-07 13:42:43,167 INFO  [main] [] soap - Adding service IMService to SoapServlet
2007-02-07 13:42:43,183 INFO  [main] [] misc - version=4.5.1_GA_660.RHEL4 release=20070201185254 builddate=20070201-1853 buildhost=build.liquidsys.com
2007-02-07 13:42:43,186 INFO  [main] [] misc - LANG environment is set to: en_US.UTF-8
2007-02-07 13:42:43,299 INFO  [main] [] DbPool - Setting mysql connector property: maxActive=10
2007-02-07 13:42:44,350 WARN  [main] [] misc - LC.get(debug_calendar_force_utc) was null, returning empty string
2007-02-07 13:42:44,351 WARN  [main] [] misc - LC.get(debug_validate_outgoing_icalendar) was null, returning empty string
2007-02-07 13:42:44,351 WARN  [main] [] misc - LC.get(debug_disable_conversation) was null, returning empty string
2007-02-07 13:42:44,351 WARN  [main] [] misc - LC.get(debug_disable_filter) was null, returning empty string
2007-02-07 13:42:44,351 WARN  [main] [] misc - LC.get(debug_disable_message_analysis) was null, returning empty string
2007-02-07 13:42:44,351 WARN  [main] [] misc - LC.get(debug_disable_mime_part_extraction) was null, returning empty string
2007-02-07 13:42:44,352 WARN  [main] [] misc - LC.get(debug_disable_indexing) was null, returning empty string
2007-02-07 13:42:44,352 WARN  [main] [] misc - LC.get(debug_disable_objects) was null, returning empty string
2007-02-07 13:42:44,352 WARN  [main] [] misc - LC.get(debug_disable_indexing_attachments_separately) was null, returning empty string
2007-02-07 13:42:44,352 WARN  [main] [] misc - LC.get(debug_disable_indexing_attachments_together) was null, returning empty string
2007-02-07 13:42:44,352 WARN  [main] [] misc - LC.get(debug_disable_mailbox_group) was null, returning empty string
2007-02-07 13:42:44,464 INFO  [main] [] extensions - Loading extensions from /opt/zimbra/lib/ext
2007-02-07 13:42:44,469 INFO  [main] [] extensions - extension com.zimbra.clam.ClamScanner found in /opt/zimbra/lib/ext/clamscanner/clamscanner.jar
2007-02-07 13:42:44,470 INFO  [main] [] extensions - Initializing extensions
2007-02-07 13:42:44,485 INFO  [main] [] ClamScanner - attachment scan is disabled
2007-02-07 13:42:44,713 INFO  [main] [] extensions - Initialized extension clamscanner: com.zimbra.clam.ClamScanner@com.zimbra.cs.extension.ZimbraExtensionClassLoader@3fa6cd
2007-02-07 13:42:44,823 INFO  [IndexWritersSweeper] [] MailboxIndex - IndexWritersSweeper thread starting
2007-02-07 13:42:44,873 INFO  [main] [] RedoLogManager - Starting pre-startup crash recovery
2007-02-07 13:44:15,582 INFO  [main] [] RedoPlayer - Redoing 1 uncommitted transactions
2007-02-07 13:44:31,339 FATAL [main] [] soap - Unable to start servlet
java.lang.OutOfMemoryError: Java heap space
2007-02-07 13:44:31,343 INFO  [main] [] [/service] - Marking servlet SoapServlet as unavailable
2007-02-07 13:44:31,344 ERROR [main] [] [/service] - Servlet /service threw load() exception
javax.servlet.UnavailableException: Java heap space
	at com.zimbra.soap.SoapServlet.init(SoapServlet.java:118)
	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:406)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.zimbra.cs.launcher.TomcatLauncher.start(TomcatLauncher.java:52)
	at com.zimbra.cs.launcher.TomcatLauncher.main(TomcatLauncher.java:74)
2007-02-07 13:44:31,532 INFO  [main] [] soap - Servlet AdminServlet starting up
2007-02-07 13:44:31,819 INFO  [main] [] soap - Adding service AdminService to AdminServlet
2007-02-07 13:44:31,950 INFO  [main] [] soap - Adding service AccountService to AdminServlet
2007-02-07 13:44:31,950 INFO  [main] [] soap - Adding service MailService to AdminServlet
2007-02-07 13:44:31,951 INFO  [main] [] soap - Adding service IMService to AdminServlet
2007-02-07 13:44:31,951 INFO  [main] [] misc - version=4.5.1_GA_660.RHEL4 release=20070201185254 builddate=20070201-1853 buildhost=build.liquidsys.com
2007-02-07 13:44:31,951 INFO  [main] [] misc - LANG environment is set to: en_US.UTF-8
2007-02-07 13:44:32,064 INFO  [main] [] extensions - Loading extensions from /opt/zimbra/lib/ext
2007-02-07 13:44:32,065 INFO  [main] [] extensions - extension com.zimbra.clam.ClamScanner found in /opt/zimbra/lib/ext/clamscanner/clamscanner.jar
2007-02-07 13:44:32,065 INFO  [main] [] extensions - Initializing extensions
2007-02-07 13:44:32,065 INFO  [main] [] ClamScanner - attachment scan is disabled
2007-02-07 13:44:32,066 INFO  [main] [] extensions - Initialized extension clamscanner: com.zimbra.clam.ClamScanner@com.zimbra.cs.extension.ZimbraExtensionClassLoader@3fa6cd
2007-02-07 13:44:32,123 INFO  [main] [] ClamScanner - attachment scan is disabled
2007-02-07 13:44:32,123 INFO  [main] [] extensions - Initialized extension clamscanner: com.zimbra.clam.ClamScanner@com.zimbra.cs.extension.ZimbraExtensionClassLoader@181b3d4
2007-02-07 13:44:32,123 INFO  [IndexWritersSweeper] [] MailboxIndex - IndexWritersSweeper thread exiting
2007-02-07 13:44:32,124 INFO  [main] [] MailboxIndex - Flushing all open index writers
2007-02-07 13:44:32,173 INFO  [main] [] RedoLogManager - Starting pre-startup crash recovery
2007-02-07 13:44:32,173 INFO  [IndexWritersSweeper] [] MailboxIndex - IndexWritersSweeper thread starting
2007-02-07 13:46:01,966 INFO  [main] [] RedoPlayer - Redoing 1 uncommitted transactions
2007-02-07 13:46:43,002 FATAL [main] [] soap - Unable to start servlet
java.lang.OutOfMemoryError: Java heap space
2007-02-07 13:46:43,002 INFO  [main] [] [/service] - Marking servlet AdminServlet as unavailable
2007-02-07 13:46:43,003 ERROR [main] [] [/service] - Servlet /service threw load() exception
javax.servlet.UnavailableException: Java heap space
	at com.zimbra.soap.SoapServlet.init(SoapServlet.java:118)
	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:406)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.zimbra.cs.launcher.TomcatLauncher.start(TomcatLauncher.java:52)
	at com.zimbra.cs.launcher.TomcatLauncher.main(TomcatLauncher.java:74)
2007-02-07 13:46:43,422 INFO  [main] [] ContentServlet - Servlet ContentServlet starting up
2007-02-07 13:46:43,427 INFO  [main] [] PublicICalServlet - Servlet PublicICalServlet starting up
2007-02-07 13:46:43,433 INFO  [main] [] account - Servlet PreAuthServlet starting up
2007-02-07 13:46:44,125 INFO  [main] [] mailbox - Servlet UserServlet starting up
2007-02-07 13:46:44,181 INFO  [main] [] FileUploadServlet - Servlet FileUploadServlet starting up
2007-02-07 13:46:44,216 INFO  [main] [] StatsImageServlet - Servlet StatsImageServlet starting up
...
Reply With Quote
  #7 (permalink)  
Old 02-07-2007, 01:38 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Here's your problem.
java.lang.OutOfMemoryError: Java heap space

How much RAM do you have?
Reply With Quote
  #8 (permalink)  
Old 02-07-2007, 01:46 PM
Trained Alumni
 
Posts: 286
Default

768MB

Here's the output from 'free -m':

Code:
                 total       used       free     shared    buffers     cached
Mem:           757        716         40          0         57        104
-/+ buffers/cache:        554        202
Swap:         1535        112       1423
I don't think I can put any more in this box as it's using funky RDRAM...and I've got no extras....lots of SDRAM and DIMMS laying around but no RDRAM. Besides, up until a few days ago this was working fine with less than that. I had it running on a VM instance with 384MB committed to it. It was after I dropped power to the box that it stopped working. Since then I've copied everything to the HOST and reinstalled Zimbra following the procedures I found here... http://wiki.zimbra.com/index.php?tit...rce_Version%29

I got rid of the VMs so I could devote the box to Zimbra. So it should have more than enough horsepower and memory to run now.

Thanks,
Matt

Last edited by Chewie71 : 02-07-2007 at 01:52 PM.
Reply With Quote
  #9 (permalink)  
Old 02-07-2007, 01:48 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Run this:
zmlocalconfig | grep java
Reply With Quote
  #10 (permalink)  
Old 02-07-2007, 01:54 PM
Trained Alumni
 
Posts: 286
Default

[zimbra@mail ~]$ zmlocalconfig | grep java
Code:
tomcat_java_heap_memory_percent = 60
tomcat_java_home = ${zimbra_java_home}
tomcat_java_options = -client -XX:NewRatio=2 -Djava.awt.headless=true
zimbra_java_home = /opt/zimbra/java
Oh...and I added some more info to my last post. I think you responded before my edit was posted.

Thanks,
Matt
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0