Re: OutOfMemory Error in Tomcat
- From: Juha Laiho <Juha.Laiho@xxxxxx>
- Date: Tue, 03 Jul 2007 13:12:08 GMT
kaicallguy@xxxxxxxxx said:
I setup a tomcat server in win server2003.
My config. :
-jdk1.5.0_12
-Tomcat5.0.28
-struts
-hibernate3
-mssql2000
-pc memory 2G
-Xmx = 1024M
I checked the program that all session are close. I used "-Xincgc" for
force processing garbage collection but the memory usage increases
continuously. I also checked the full thread dump log but i can't find
any problem.
It looks like something leaves references to session data for closed
sessions - so that the data cannot be collected.
Look for places where you use aggregates (arrays, various collections),
and try to get a way to monitor their sizes. Heap analysis tools could
also tell the amounts of object instances, which might help in pinpointing
the problem.
Of commercial tools, I've succesfully solved similar problems with
YourKit - see http://yourkit.com/ . YourKit is a "fancy heap analysis
tool" (ok, it does other things as well, but for my use it has been
just that), which lets you drill into memory usage of a Java program
(standalone as well as server-based).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
.
- Prev by Date: Re: Testing a JVM implementation
- Next by Date: Re: How to read unicode
- Previous by thread: configure jdbc sql driver in netbeans
- Next by thread: Yellowfin Business Intelligence 3.2 released
- Index(es):
Relevant Pages
|