I have one thread-1 that is infinitely running.
public void run(){
while (true)
{
try
{
serverSocket.receive(packet);
processReceivedPacket();
}
catch (Exception x){ }
}
}
I have 10 other threads. After running this application for a while I can see that my application is running but this thread-1 is not running anymore.
jstack -l pid >> stack.txt
When I take a stack of the process I can see the other threads, not this thread-1.
Is it possible that JVM is killing this thread even after try-catch block?
If the thread is not dead then how to find out which line the thread-1 is currently executing. Jstack is not working. In the Jstack file, there is no information for this thread-1.