cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kjetil Kjernsmo <Kjetil.Kjern...@computas.com>
Subject Tomcat loops indefinitely
Date Thu, 04 Sep 2008 15:01:03 GMT
Hi all!

I'm struggling with a really weird problem. I have a Cocoon 2.2 application 
that runs on Tomcat 5.5.25-5ubuntu1 and Java 1.5.0. My (semi-)production 
system, my test system and my development system are Ubuntu 8.04 boxes, and 
they differ very little, with the exception that the production environment 
is a Vmware slice, the others are not. The application runs fine on the 
development and test systems, but it is not at all working on the production 
box.

What's happening is that I deploy the war, restart the server. I then GET a 
URL on the system, apparently, any URL will do. The application starts doing 
its thing. In my log, I see messages like 
http-8180-Processor230 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher 
connected to Joseki.
http-8180-Processor229 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher 
connected to Joseki.
http-8180-Processor228 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher 
connected to Joseki.

which my application emits. The problem is that the application has apparently 
gone into a loop, as this appears to be different threads. Eventually, it 
runs out of threads, and comes to a halt:

Sep 4, 2008 3:36:52 PM org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads 
(250) or check the servlet status

I've tried to debug this in several ways: My gut reaction was that the client 
was actually throwing tons of requests at it. I falsified this by 
telnet 127.0.0.1 8180
GET http://127.0.0.1:8180/detektor/

(/detektor/ is the application context). This reproduced the problem and 
telnet would not follow a redirect. So, it is entirely a server side problem.

Then, I installed the "standard" sample.war application, and that told 
me "hello world", so I guess Tomcat is not entirely to blame either, though I 
suspect of somewhat foul play for some reason... :-) 

I've rebuilt and deleted the application many times, stopped and restarted the 
server many times, generally performed the rituals that needs doing now and 
then.  I've also copied over the war that works on my development box (I tend 
to package on the production box from a SVN tag). 

So, it can't be the client. It can't be just Tomcat, it can't be just my 
application... It doesn't sound very likely that it is VMware. I suspect that 
I have made some deity rather upset since I'm actually a Perl guy ;-)

Does anybody have any idea where I can start?

Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Direct: +47 6783 1136 | Mobile: +47 986 48 234
Email: kjetil.kjernsmo@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | 
Fax:+47 6783 1001


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message