mitre / HTTP-Proxy-Servlet

Smiley's HTTP Proxy implemented as a Java servlet
Apache License 2.0
1.46k stars 555 forks source link

Servlet kills web container #17

Open pashkinmv opened 11 years ago

pashkinmv commented 11 years ago

I'm sorry, that I haven't steps to reproduce the situation, but

after some houres of using the proxy servlet with apache tomcat 7.0.42 it (tomcat or servlet) stops responding.

Also I had the similar situation with WebSphere 7. After couple of days of using the proxy servlet the app with it stopped responding.

dsmiley commented 11 years ago

I'm sorry but you'll have to debug this to determine the cause; I might be able to help with a solution.

rage-shadowman commented 11 years ago

If you can get it to happen again, you could try running jvisualvm (in the same directory as your java binary) to do a thread dump and see the stack trace to find out where all the threads are hung.

PS - I have never seen this issue but I use JBoss7.2 (EAP 6.1 to be precise) rather than standalone Tomcat.

pashkinmv commented 11 years ago

I tried to perform stress test. 100 threads with 100 loops each didn't help to reproduce the problem. I met the problem once again, but I still can't reproduce or predict the bug behavior.

rage-shadowman commented 11 years ago

If you get it to hang again. Do not shut it down. First run jvisualvm and get a thread dump of the whole thing (yes, you can connect to an already running and hung java process this way). Then shut it down and analyze the thread dump when you have time.

optyler commented 9 years ago

Hello, I don't know if it's related, but we noticed that when the targeted server goes down or get much lags, the servlet proxy hangs. To put it work back, we should restart tomcat 7 instance.