On 20/08/2009 10:24, Peter Crowther wrote:
2009/8/20 Phani Raj Kumar<bphanirajku...@gmail.com>
Here is the info:
*JDK version* : j2sdk1.4.2_11

This is old, though that probably isn't the cause of this problem.  Do
you need to run this JDK, or can you upgrade?

*Tomcat Version*: jakarta-tomcat-5.0.28

This is no longer supported, though that probably isn't the cause of
the problem.  Do you need to run this version, or can you upgrade?

*OS*: SunOS burton 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V440
*CATALINA_OPTS*="-Xms64m -Xmx256m"

Does your app do a lot of work whilst starting up?
What is its actual memory usage when running?

Wait until the app has started up and had time to run under normal/expected load conditions and then examine the heap sizes:

 jmap -heap <pid>

If the heap is above 64m, then try setting -Xms256m.

There's not much point in making the JVM (particularly an old one) doing loads of work to increase it's heap size, when you can just set the max you use, to start with - especially during startup.

p


I didn't get any error messages in the log, but even running the tomcat
alone without any applications in it taking 100% cpu.

OK, that's interesting.  Something odd is happening!

The next step is to take a thread dump and find out what's running.
Use ps to find the process ID of the Java process that's running
Tomcat, then send it a SIGQUIT (kill -3<pid>).  The thread dump
should appear in one of the log files, probably catalina.out (from
memory) unless you've changed the logging.

There will be several threads in the thread dump - some blocked, some
running.  If you post the thread dump here, we can take a look at it.
You will need to include it in your mail message, as the mailing list
software strips out attachments.

- Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to