Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Memory footprints of threads in a process

 
Ruhi Akhtar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic