Solved

Apache Tomcat settings

Posted on 2012-03-19
5
312 Views
Last Modified: 2012-06-22
We have been seeing memory and CPU hit the ceiling with one of our Web servers..

Server Environment:
Windows 2003 (32-bit OS): on VMWare
Intel Xeon CPU: 2.67 GHz
3.75 GB RAM

Java: JDK 1.6.0_17 (yes, we are using the server version of the jvm.dll

Issue: CPU was pegging at 99% for extended periods..

CPU should never operate at over say 70% as we need a bit of overhead for OS other programs, etc.?
Currently, with the Java settings, we have currently set for Apache Tomcat:
-Dcatalina.home=C:\tomcat
-Dcatalina.base=C:\tomcat
-Djava.endorsed.dirs=C:\tomcat\endorsed
-Djava.io.tmpdir=C:\tomcat\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\tomcat\conf\logging.properties
-XX:MaxPermSize=256m
-Xms1408m
-Xmx1408m
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC

Open in new window


Are there any recommendations that you can suggest from a best-practices and/or operational standpoint?

Thanks,

Kent
0
Comment
Question by:Kent Dyer
  • 3
  • 2
5 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 37739094
You can read this:


http://java.sun.com/docs/hotspot/gc1.4.2/faq.html

    How should the permanent generation be sized?

The permanent generation is used to hold reflective of the VM itself such as class objects and method objects. These reflective objects are allocated directly into the permanent generation, and it is sized independently from the other generations. Generally, sizing of this generation can be ignored because the default size is adequate. However, programs that load many classes may need a larger permanent generation.

It is probebly rather something in your applicatiosn, servlets, etc.
Do you have really heavy traffic on your Tomcat?
0
 
LVL 17

Author Comment

by:Kent Dyer
ID: 37739265
Do we have heavy traffic?  Oh yeah.

Over 100 organizations use this server.

Thanks,

Kent
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37739291
Then probably you want to move to a better  and faster server, maybe some cluster

VMWare means that the same processor also serves other purposes ?

You probably want to have good dedicated server, and in my opinion Unix is more reliable system for such things
0
 
LVL 17

Author Comment

by:Kent Dyer
ID: 37739300
Yes..  At the minimum get on a 64-bit proc so we we can address over the 2GB memory space..

Agreed.

Thanks,

Kent
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37739316
Yes, if so many people rely on it, it is definitely worth upgrading.
You'll hardly achieve anything substantial with any palliative measures.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 87
split string containing \r\n in Java 46 44
Can't connect to WAMP server 5 54
eclipse console opening separately 2 21
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question