Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Debugging java memory usage in tomcat

Thread view: 
zigzagdna@yahoo.com - 25 Nov 2007 21:03 GMT
I have tomcat5. installed on a Windows 2003. Tomcat was installed as
part of a Custtomer application. Tomcat runs as a Windows service, and
one can see tomcat5.exe process in task manager. When I access the web
site of my third party application, I see thread count of tomcat5.exe
increase as well memory usage increase. I do not however see any jvm
(java)
process in task manager. When I look at vendor's script for setting up
windows service using tomcat5.exe, I do find references to java and
various jvm options such as minimum and maximum heap sizes.

I want to find find how much memory  on the heap is allocated as
people access the web site. I know in java console, I can set some
debugging/tracing parameters but they do not seem to take in effect
with tomcat service. Why?

Appreciate any pointers on where java process is for tomcat and how to
monitor its memory usage.

Thanks.
Arne Vajhøj - 25 Nov 2007 23:49 GMT
> I have tomcat5. installed on a Windows 2003. Tomcat was installed as
> part of a Custtomer application. Tomcat runs as a Windows service, and
[quoted text clipped - 13 lines]
> Appreciate any pointers on where java process is for tomcat and how to
> monitor its memory usage.

I assume that the tomcat5.exe process is the Java process (using JNI
to activate Java).

A quick glance at service.bat indicates that you can specify memory
settings there (when defining service).

It is easy to monitor memory usage via a simple JSP page.

Arne
zigzagdna@yahoo.com - 26 Nov 2007 00:07 GMT
> zigzag...@yahoo.com wrote:
> > I have tomcat5. installed on a Windows 2003. Tomcat was installed as
[quoted text clipped - 26 lines]
>
> - Show quoted text -

Arne:

I really appreciate  your useful answers. Yes, service.bat can ne
modified java parameters.
I am still curious why no  java process is shown.
I will look into how to monitor memory using jsp page.

Prem
Arne Vajhøj - 26 Nov 2007 00:26 GMT
> I am still curious why no  java process is shown.

I assume it is not used.

java.exe is a relative small program that just calls
some DLL's.

It is relative easy to write another EXE to "run" Java
by calling the same JNI methods as is called in Java.exe !

So I guess that is what Tomcat5.exe is doing.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.