Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I have deployed my web application under tomcat6 on windows server 2008. In office hours my application needs to respond to a lot of traffic. At that time it seems that the memory consumption of tomcat reaches say 8GB, however even more memory is available in the system, but my application's response time is very low and some times no response.

Is there some way that tomcat should call garbage collector after, say, 6GB memory is consumed?

share|improve this question
don't you mean "response time is very high"? – Javier Oct 27 '10 at 12:11
Have you set any JVM parameters for the heap such as Xmx, Xms etc at present? – JoseK Oct 27 '10 at 12:24
@JoseK: no i didn't do that can u guide what are these parameters and how to set them. – Ahsan Iqbal Oct 27 '10 at 14:08
@Javier: sorry i mean it is taking too much time to respond – Ahsan Iqbal Oct 27 '10 at 14:09
@JoseK: i have tried what you said, once i have put the limit it works very fine but when it reaches the limit it again have same problem. – Ahsan Iqbal Oct 27 '10 at 16:43

If you run Tomcat on Windows, you can use the neat "Tomcat Monitor" application that ships with Tomcat (available via the Start menu).

Go to the Java tab. At the bottom, below the "Java Options" textarea, you will find 3 input fields:

Initial memory pool ___ MB
Maximum memory pool ___ MB
Thread stack size _____ KB
share|improve this answer

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.