Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GC with ParNewGC

843811Feb 17 2004 — edited Dec 9 2004
Hi,

We are using jdk 1.4.3 on solaris. We run resin server for our application. It runs faster as long as it's up but suddenly stops responding after 2 hours wih minimal load. I enabled the gc log to track any memory leaks in the application.

JVM Parameters: args="-J-ms640M -J-mx640M -Xloggc:gc.log -XX:+UseParNewGC -XX:+UseConcMarkSweepGC"

534.772: [ParNew 49065K->33068K(655296K), 0.0090739 secs]
542.424: [ParNew 49324K->33771K(655296K), 0.0157120 secs]
559.106: [ParNew 50027K->34094K(655296K), 0.0098680 secs]
571.141: [ParNew 50350K->34370K(655296K), 0.0085818 secs]
574.468: [ParNew 50626K->34660K(655296K), 0.0085324 secs]
580.563: [ParNew 50907K->35359K(655296K), 0.0176114 secs]
594.974: [ParNew 51615K->35869K(655296K), 0.0269255 secs]
604.724: [ParNew 52125K->36134K(655296K), 0.0094036 secs]
612.295: [ParNew 52390K->36570K(655296K), 0.0137515 secs]
612.917: [ParNew 52826K->37266K(655296K), 0.0184817 secs]
614.651: [ParNew 53522K->38537K(655296K), 0.0293788 secs]
627.549: [ParNew 54792K->38923K(655296K), 0.0115849 secs]
634.509: [ParNew 55179K->39141K(655296K), 0.0082509 secs]
641.498: [ParNew 55397K->39618K(655296K), 0.0134911 secs]
653.519: [ParNew 55874K->40389K(655296K), 0.0390976 secs]
658.561: [ParNew 56645K->40712K(655296K), 0.0105024 secs]
667.994: [ParNew 56966K->41187K(655296K), 0.0102419 secs]

Does this give any idea of memory leak. Why even after eden collection, it always shows more memory. For example, the last but one line says before GC, it was 56645k and after GC it came down to 40712k but the next line again starts from 56966k instead 40712k. Is this a symptom for memory leak? I never see Full GC and the server stops responding even I have almost 300MB left. Please advice on how to set these GC parameters for better performance.

Regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2005
Added on Feb 17 2004
2 comments
1,007 views