2009/10/13 Ron McNulty <rmcnu...@xtra.co.nz>:
> Hi all
>
> This is possibly a little OT, but maybe someone has come across this.
>
> We are running Tomcat 5 (Actually Jetspeed-2.1.3) on a Windows 2K box. We 
> start it from a cmd window, using startup.bat. All runs fine until a large 
> amount of text gets output to the log (redirected to the Tomcat window). 
> Tomcat then locks up. Pressing <ctrl> C produces another burst of data, and 
> makes things run again for a while.
>
> I suspect this is not a Tomcat problem, but I can't find anything on google 
> that helps.
>

If it is not garbage collection, then maybe some synchronization.

Writing out a large amount of text to a console may take some time, if
console draws slowly.
If the writing thread owns some synchronized resource, other threads
can wait to obtain it.

The output stream itself can be such resource (for example,
PrintWriter.write() has a synchronized block), but you won't notice
congestion with writing unless some other threads are also trying to
write. It might be as well some other valuable resource somewhere up
the call chain.  Your thread dumps might help you to spot it.

http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to