Solved

Apache Tomcat settings

Posted on 2012-03-19
5
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.
Suggested Courses

752 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