This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Memory  footprints of threads in a process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Memory  footprints of threads in a process" Watch "Memory  footprints of threads in a process" New topic
Author

Memory footprints of threads in a process

Ruhi Akhtar
Greenhorn

Joined: May 18, 2005
Posts: 5
I am running java process under tomcat on linux. The java process comprises of multiple threads. I would like to track the memory consumption of threads under a particular java process. Is there any OS utility to track the memory of these individual threads.

suggestion appreciated.

Thanks,
Akhtar
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
What does "memory consumption of threads" mean to you? The amount of memory used by individual Thread stacks is small compared to the amount of memory used for Java objects.
Bill
Ahmed Basheer
Ranch Hand

Joined: Apr 15, 2004
Posts: 77
I am getting java.lang.OutOfMemory errors and I am guessing that over a dozen threads in the process one of the thread is leaking. You are right that Threads stack is small. I should rather try to find out the memory consumption of the java objects in individual threads.

Thanks,
Akhtar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory footprints of threads in a process
 
Similar Threads
Why GC doesn't work?
Running a Socket server process in Tomcat
java.lang.OutOfMemoryError in Tomcat
Did older Java have problems with Transparent Images?
Question regarding older JDK and Transparent images