tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wade Chandler <hwadechandler-apa...@yahoo.com>
Subject Re: log4j in webapp hanging Tomcat?
Date Mon, 03 Jul 2006 01:19:49 GMT
--- Avi Deitcher <avi@deitcher.net> wrote:

> To add to it: I kept two webapps running and had
> them
> System.out.println(logger), where each is in the
> same category/class, to
> check that each one is running its own; it is. I
> then removed every
> webapp I could and ran it again with just the simple
> filter + index.jsp
> to check. Same result. Sigh.
> 

Try to setup a file appender and see if you get any
remotely similar behaviour.  If not then my guess
would be some kind of monitor is locked and code
either in Tomcat or commons logging or log4j is
deadlocked.  Before setting up the file appender look
at the process for Tomcat in the windows "Task
Manager" and see how many CPU cycles it is using at
this point.  If it is eating up the CPU then it isn't
a deadlock and is some infinite recursive loop (more
than likely) some where such as your log call keeping
on calling another log call some how down the stack or
something weird like that.  If the CPU isn't really
being used at all then my first guess would be a
deadlock.

Wade

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message