tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: role of the various threads?
Date Thu, 12 Aug 2010 18:03:58 GMT
Hash: SHA1


On 8/12/2010 11:34 AM, paul womack wrote:
> Caldarale, Charles R wrote:
>>> From: paul womack []
>>> Subject: Re: role of the various threads?
>>> Further reading has shown me that I'm using Tomcat5.5,
>>> and that the theads (above) are all running accept().
>>> I thought accept() was blocking?
>> Depends on the particular JRE being used on the particular platform. 
>> I would expect them to be blocking in most instances, but some
>> esoteric systems use polling.  You're getting down to a level that
>> requires examination of not just Tomcat source code, but also JRE
>> source and the platform's TCP/IP stack source - a bit beyond the
>> normal scope of a support forum.
> It appears that hprof is counting blocked threads
> (since that *is* what the program is "doing"
> for some meanings of "doing").
> So the threads are "doing" accept() but not actively
> consuming cycles whilst running accept().
> Sigh. Thanks, hprof.


I think hprof was designed just to sample what the thread is doing
periodically, and if it's always doing the same, you don't really get
any interesting information. Can you tell us what hprof options you've
set, and possibly show us what output you got?

You might want to try hooking up a more fully-featured profiler to your
system and see what it can find.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message