tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Rainer" <s.rai...@teamaxess.com>
Subject IOException while loading persisted sessions / java.lang.OutOfMemoryError: Java heap space
Date Mon, 01 Dec 2008 09:57:53 GMT
Hello,

we are running a Tomcat 5.0.28 on W2k Server with 2 GB RAM and JVM
1.5.0_11-b03 which is mainly used as application server for (Axis-based)
SOAP Services.

**** From time to time our Tomcat blows up to use almost the whole available
RAM and finally it "crashes".

In the logfile, we find the following:
- IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
	at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
	at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
	at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
	at java.io.ObjectInputStream.<init>(Unknown Source)
	at
org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStr
eam.java:56)
[....]

- Exception loading sessions from persistent storage
java.io.EOFException
	at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
	at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
	at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
	at java.io.ObjectInputStream.<init>(Unknown Source)
[....]


**** After that a restart of Tomcat is not possible and the following lines
can be found in stdout.log:

SEVERE: An exception or error occurred in the container during the request
processing
java.lang.OutOfMemoryError: Java heap space
Exception in thread "http-16302-Processor151" java.lang.OutOfMemoryError:
Java heap space
28.11.2008 20:08:47 org.apache.coyote.http11.Http11Processor process
SEVERE: Error processing request
java.lang.OutOfMemoryError: Java heap space

**** Only a reboot of the whole server fixes the problem and tomcat works
again as exptected.

**** I have read in some forum, that we could clean the
${catalina.home}/work/Catalina/localhost/ directory to enable a tomcat
restart without server restart.
We haven't been able to try that yet, but that fixes only the symptomatic
not the problem.

Does anyone have an idea/experience where the problem comes from? Something
to do with memory / session management?

Extract from configuration / status, if needed:
Free memory: 10.42 MB Total memory: 63.56 MB Max memory: 63.56 MB
Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current thread
count: 84 Current thread busy: 13
Max processing time: 876219 ms Processing time: 153801 s Request count:
283471 Error count: 182 Bytes received: 552.95 MB Bytes sent: 549.65 MB


Many thanks in advance, Stefan







---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message