Which thread currently running?
hi,
in my application i am facing out of memory error. I observed through 'windows task manager' that memory usage of the tomcat is continuosly increasing though the application is left idle. this usage is going up by 4kb per 5 sec.
I want to know which threads are running in the backgound causing this increase in the memory.
can we set some option in environemnt variables etc.?
please help.
~vishal.
[444 byte] By [
v_vishala] at [2007-10-3 1:41:20]

Hmmm,
You need this
http://www.sysinternals.com/Utilities/PsList.html
1. pslist.exe -x -d -m <pid>
repeat pslist
to tell u which thread is actually running (showing increased time).
Note the tid column.
2. Next, do a ctrl+break to get a thread dump. The tid in 1. will match that of nid. This will tell u which thread is running.
If u cant do a ctrl+break, u may need this http://www.latenighthacking.com/projects/2003/sendSignal/
Used in combo, this should tell u which thread is running.