Wait a minute!!

"not enough swap space" means IIRC that your JVM is getting *really* big.

How big is your memory? What is your -Xmx setting?

I would recommend keeping -Xmx to 80% of your physical RAM at a maximum (or less if your machine is not dedicated).

Could you please tell us a bit more on your environment (amount of RAM, amount of available RAM at tomcat startup time, idem for swap space, memory-relevant parameters you are passing to the JVM, any third-party native libraries you might be using, and any other detail you consider important).

Antonio Fiol


Rob Wichterman wrote:

The weird thing is everything will be running fine for a few hours (or days,
very inconsistent) then it seems like the garbage collector cannot keep up
with the used space and the heap gets bigger and bigger while nearly nothing
gets cleared, when this happens I have noticed the CPU stuck around 60%
used, eventually it will crash with ("Out of Memory" not enough Swap Space).
I have used JProfiler to try and find memory issues but the odd thing is we
have never been able to duplicate this problem in our testing environment
only in production.

-----Original Message-----
From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 1:08 PM
To: Tomcat Users List
Subject: Re: Garbage Collection

your heap size remains stable according to the verbose GC. That in itself
doesn't tell you if there is a problem or not. Is there some slowness in
your jsp?

you might want to d/l borland optimizeIt trial version and get a better
picture of what is happening.

peter


Rob Wichterman <[EMAIL PROTECTED]> wrote:
Can anybody tell me if these look like healthy garbage collections.



[GC [ParNew: 3968K->0K(4032K), 0.0132890 secs] 25349K->22156K(56072K),
0.0134572 secs]

[GC [ParNew: 3952K->0K(4032K), 0.0086222 secs] 26109K->22649K(56072K),
0.0087891 secs]

[GC [ParNew: 3953K->0K(4032K), 0.0092634 secs] 26602K->23133K(56072K),
0.0094345 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0094125 secs] 27101K->23289K(56072K),
0.0095833 secs]

[GC [ParNew: 3961K->0K(4032K), 0.0474236 secs] 27250K->23491K(56072K),
0.0476528 secs]

[GC [ParNew: 3966K->0K(4032K), 0.0101857 secs] 27458K->23644K(56072K),
0.0103671 secs]

[GC [ParNew: 3968K->0K(4032K), 0.0088548 secs] 27612K->23776K(56072K),
0.0090263 secs]

[GC [ParNew: 3968K->0K(4032K), 0.0075491 secs] 27744K->23842K(56072K),
0.0077127 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0107583 secs] 27810K->24144K(56072K),
0.0109381 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0588864 secs] 28112K->24470K(56072K),
0.0591110 secs]

[GC [ParNew: 3964K->0K(4032K), 0.0076312 secs] 28435K->24576K(56072K),
0.0077934 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0076016 secs] 28544K->24659K(56072K),
0.0077809 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0094214 secs] 28627K->24907K(56072K),
0.0095959 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0081766 secs] 28875K->25413K(56072K),
0.0083235 secs]

[GC [ParNew: 3964K->0K(4032K), 0.0476766 secs] 29378K->25736K(56072K),
0.0478634 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0131406 secs] 29704K->26056K(56072K),
0.0133119 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0127321 secs] 30024K->26486K(56072K),
0.0128994 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0170908 secs] 30453K->27044K(56072K),
0.0172648 secs]

[GC [ParNew: 3946K->0K(4032K), 0.0258431 secs] 30991K->28401K(56072K),
0.0260299 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0097711 secs] 32368K->29151K(56072K),
0.0099655 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0277493 secs] 33119K->30963K(56072K),
0.0279320 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0148470 secs] 34931K->31791K(56072K),
0.0150112 secs]

[GC [ParNew: 3961K->0K(4032K), 0.0252186 secs] 35753K->33458K(56072K),
0.0253967 secs]

[GC [ParNew: 3956K->0K(4032K), 0.0094682 secs] 37414K->34072K(56072K),
0.0096453 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0086307 secs] 38040K->34737K(56072K),
0.0088139 secs]

[GC [ParNew: 3961K->0K(4032K), 0.0085751 secs] 38699K->35289K(56072K),
0.0087476 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0092369 secs] 39257K->35818K(56072K),
0.0095723 secs]

[GC [1 CMS-initial-mark: 35818K(52040K)] 35818K(56072K), 0.0051687 secs]

[CMS-concurrent-mark: 0.414/0.414 secs]

[CMS-concurrent-preclean: 0.004/0.004 secs]

[GC[Rescan (parallel) , 0.0071662 secs][weak refs processing, 0.0076101
secs] [1 CMS-remark: 35818K(52040K)] 3

5879K(56072K), 0.0157375 secs]

[CMS-concurrent-sweep: 0.131/0.131 secs]

[CMS-concurrent-reset: 0.124/0.124 secs]

[GC [ParNew: 3967K->0K(4032K), 0.0108625 secs] 20393K->16549K(56072K),
0.0110341 secs]



---------------------------------
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to