Advertisement

02.26.2004 at 08:36AM PST, ID: 20899033
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Tomcat 5.0.18 Memory Leak

Asked by asimalp in Application Servers

Tags: ,

I'm having memory leakage problems on Tomcat 5.0.18.  Here is some insight to my configuration:

IIS6 on Windows Server 2003.  Tomcat is communicating with IIS6 using the Tomcat ISAPI redirector.  We currently have about 50 virtual hosts on Tomcat.  Each one of these hosts use JDBC to connect to our MySQL server which is on the same server.

Our server has two Intel Xeon CPUs running at  2.80 MHz each with 1GB of RAM.

We are running Tomcat as a service with the following options:
-Xrs -Xms64m -Xmx256m

Our websites (all 50 of them) get around 70,000 hits total.  Very soon, there will be an additional 50 more same-type websites to this server.  All our websites are duplicates of the same site with different designs.  Basically, they are running the same application through a second context path (the other context path is the root of our websites).

Our main problem is that whenever we run tomcat, our java.exe keeps growing (I check the mem usage on task manager).  It usually starts with something around 100MB.  Then all of a sudden, it jumps to 200 something and then keeps growing very very slowly.  In about 10 - 12 hours, it becomes something around 400 MB.  Even so, all of our websites function without any problems, however it's not OK to have a 400MB java.exe running, because it slows down our server and of course, our websites due to the fact that it starts using the page file.

Apart from java.exe, Tomcat has a heap size of 64 to 256 MB (-Xms64m -Xmx256m).  This doesn't show on the task manager.  I think this heap is used for our applications.  When I monitor it through the tomcat manager status page, everything seems OK.  My total memory starts with 64MB, it grows upto 256 MB as needed.  Garbage collection seems to be working fine freeing memory in minor and major cycles accordingly.  Sometimes the major cycle takes a little long pausing our servers for 30 to 60 seconds, but I'm guessing that this is normal.

I'm planning to change -Xms64m to -Xms128m on our next restart.  64MB is simply too small.

I just noticed today that Tomcat 5.0.19 is released.  I will try to upgrade to that at night time when there is not much traffic on our servers.  However, I'm afraid that the upgrade won't solve my problem.  On the release notes of 5.0.19, I haven't noticed any bug fixes for memory leakage.

How can I stabilize the size of java.exe.  We don't want to restart Tomcat server every 12 hours.

Thanks,

AsimStart Free Trial
[+][-]02.26.2004 at 12:42PM PST, ID: 10463641

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.26.2004 at 12:57PM PST, ID: 10463789

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.26.2004 at 06:02PM PST, ID: 10466071

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.26.2004 at 11:45PM PST, ID: 10467322

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.27.2004 at 12:13AM PST, ID: 10467401

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.27.2004 at 02:40AM PST, ID: 10468034

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2004 at 07:36AM PST, ID: 10470043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.28.2004 at 01:14AM PST, ID: 10475223

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.29.2004 at 06:56PM PST, ID: 10483549

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.01.2004 at 12:26AM PST, ID: 10484620

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Application Servers
Tags: tomcat, memory
Sign Up Now!
Solution Provided By: vzilka
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.01.2004 at 11:08AM PST, ID: 10488884

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080924-EE-VQP-38