On 17 August 2010 10:48, sasidhar prabhakar <sasidhar1...@gmail.com> wrote:
> In thread dump I observed every thread doing the same thing. > In my code I sends sms to users by using HttpURLConnection. > I am using this code for months I didn't get the problem earlier. > For few days I am getting this problem consistently. Whenever tomcat hangs > I > takes the thread dump, > every time it shows the same results. > > Here is my one of threads dump. this is common for all remaining threads. > > Somebody guide me to solve this problem. I am trying but unable to do this > > "http-80-300" daemon prio=1 tid=0x76890ef0 nid=0x6bb6 runnable > [0x6def0000..0x6def0db0] > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > [...] > at SendSms.sendToSingleRecipientNoNpri(SendSms.java:89) > [...] The socket is hanging trying to read the response. Your SMS provider probably isn't responding to you on occasion. I assume you've written test code to do a SMS send; if not, write it and test the SMS send outside of Tomcat. This is not a Tomcat issue, so I've marked it [OT]. - Peter