Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a frequent occurence of FULL GC in our system. We are using Java application running on Tomcat server. Our application is running using internal load balancer setup. We are seeing lot of Full GC's in the server logs due to which the application is hung and Proxy errors are occured.

The Java parameter values we are using are: Webapp wrapper: Backapp wrapper:

The error found in webapp wrapper logs: INFO | jvm 1 | 2010/11/26 09:33:19 | [PSYoungGen: 1398460K->140291K(1514624K)] 4623364K->3491394K(5009920K), 0.7285303 secs] [Times: user=1.42 sys=0.00, real=0.72 secs] INFO | jvm 1 | 2010/11/26 09:33:19 | 68539.126: [Full GC DEBUG | wrapperp | 2010/11/26 09:33:19 | send a packet PING : ping

Tried to change the JVM values to increase the heap size. But of no use. I suspect that there could be some other reason other than these parameters which is causing the issue.

Can anyone please help me on this?

share|improve this question
While it may just not have enough memory, usually this manifests are as an increasing frequency of full GCs - not multiple consecutive full GCs. I'd recommend dumping the heap when it starts going into repeated full gc then having a look with jprobe or similar – symcbean Nov 26 '10 at 10:20
Provide the output of: jmap -heap <vmid> – HTTP500 Jan 6 '11 at 22:50

Add this parameter in your -XX:+DisableExplicitGC

Restart your servers. This will avoid any explicit GCs that may be called by the application and allow the JVM to decide internally and trigger the Full GC where it is really needed.

share|improve this answer

Add this to your java_opts: "-XX:+UseConcMarkSweepGC" This is a multi threaded GC that works much better under high load.

share|improve this answer
Hi,Thanks for your inputs. We are testing this and will let you know if it is working. – Viji Dec 2 '10 at 10:59
Hi...This even doesn't work. :( – Viji Dec 2 '10 at 11:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.