Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > reason for sporadic long full GC pause times?!?....

Thread Tools

reason for sporadic long full GC pause times?!?....
Posts: n/a
Hello folks,

in our java business application our customer realize sporadic very
long pauses caused by full gc's.
Normaly the app runs smoothly with acceptable gc- and
full-gc-pausetimes. (gc=0.0xx sec / fullgc <=2 sec)

But sometimes during 8 hour work the occurs full gc's with 90-150
seconds (!)
which our customer complains about - of course.

In the first step I thought that our JVM-settings were wrong:
-Xms450m -Xmx450m -XX:NewSize=32m -XX:MaxNewSize=32m
-XX:SurvivorRatio=8 -classpath....
--> long full gc pauses occured sporadicaly.

I thought that the Newsize is too small -> wich implies the too big
tenured space -> which could be the reason for too longs full gc's. I
decided to use -NewRatio=4 Parameter.
And I also lowered the max. Heap size to Xmx350m, because the gcviewer
told me that the memory usage was only about 290 MB.

With the new settings
-Xms350m -Xmx350m -XX:NewRatio=4 -XX:SurvivorRatio=8 -classpath....
our customer had the same experience that sometimes the full gc's
pausetime took more than 100 sec's.
Additionally we/they relaized that the full gc freed not enough memory
so that the full gc frequency raised up to a point where no minor gc
were done - only full gc's !

Due to that I raised Xms and Xmx
-Xms512m -Xmx512m -XX:NewRatio=4 -XX:SurvivorRatio=8 -classpath....
which enables the JVM to free more memory at full gc (already tested),
but I fear this will not help to solve the sporadic problem with the
long full gc pause times at customer side.

Does anybody have an idea what could be the reason for the
extraordinary long full gc pause times?

Info btw:
customer PC's all have 1 GB RAM and the throughput of the application
was in any case >= 99,8% !
The problem with the long full gc pause times was never reproduced in
our lab / dev.-deptmnt.

Thanks in advance


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having compilation error: no match for call to (const __gnu_cxx::hash<long long int>) (const long long int&) veryhotsausage C++ 1 07-04-2008 05:41 PM
Long Pause After POST??? Dave Hardenbrook A+ Certification 3 05-15-2008 02:16 PM
Long pause before system starts normally... Nemole_Amzi Windows 64bit 2 05-03-2008 06:17 AM
How to cleanly pause/stop a long running function? Basilisk96 Python 3 05-13-2007 03:45 AM
Do DVDs wear out if left on PAUSE too long? DVD Video 21 02-10-2005 03:52 AM