How to kill a thread. ?

Hi all,

In my application i need to start multiple threads for different purposes. While am running the application , after 5 hrs my application hanging (because of memory ). It may be because of lots of threads running. Could any of you tell me how to overcome this.

Suggestions would be highly appreciated.

thanks.

Message was edited by:

kiran.rredy@gmail.com

[399 byte] By [kiran.rredy@gmail.coma] at [2007-11-27 5:52:22]
# 1
First of all you should try to find out how many threads are running and what they're doing. There's a way to get a thread dump* from a running VM, or use a profiler or a JMX client like jconsole.* http://forum.java.sun.com/thread.jspa?threadID=658931&messageID=3870534
quittea at 2007-7-12 15:43:16 > top of Java-index,Java Essentials,Java Programming...
# 2
hey man,first run less number of threads and checkhow many threads u can run on ur box,then increase.
Yogesh.Nandwanaa at 2007-7-12 15:43:16 > top of Java-index,Java Essentials,Java Programming...