I am working with socket application. I have a JAVA TCP listener as a part of web application. I have defined my TCP Listener as a servlet context listener inside web.xml, so once I start my tomcat my TCP listener become active and wait for incoming request coming from GPS device.
Once my tomcat6.0 starts then TCP listener is able to read all incoming request but, just after 5 minute, I get an error like this "The web application appears to have started a thread named but has failed to stop it. This is very likely to create a memory leak.".
Please help me how to fix this issue. As I am creating simultaneously many threads to handle the incoming request since we have 10K GPS device which communicates with my TCP listener. We have business reason to create a single thread for single device and process incoming request.
Please help me to figure out actual issue.
Thanks in advance.