Solved

Apache Tomcat settings

Posted on 2012-03-19
5
310 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now