Solved

Apache Tomcat settings

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

740 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