-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

To whom it may concern,

On 8/22/17 10:28 PM, ophusky wrote:
> Server version: Apache Tomcat/8.0.35 Server built:   May 11 2016
> 21:57:08 UTC Server number:  8.0.35.0 OS Name:        Linux OS
> Version:     3.2.35 Architecture:   amd64 JVM Version:
> 1.8.0_45-b14 JVM Vendor:     Oracle Corporation

Thanks!

> 1. [root@app41 manager]# curl -s http://127.0.0.1/manager/status
> |grep -P -o 'Max threads:.*?<br> ' Max threads: 700 Current thread
> count: 478 Current thread busy: 17 Keeped alive sockets count:
> 5<br> 2. [root@app41 manager]# pgrep jsvc 25446 25447 [root@app41
> manager]# ps -Lf 25447 | wc -l 541

Okay.

> I want to figure out the meaning of "Current thread count"
> "Current thread busy" "Keeped alive sockets count" and relationship
> between 1 and 2.

Max threads >= current thread count
Current thread count >= current thread busy
Current thread count >= Keeped alive sockets count

> I have read the document
> http://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html#Server_Stat
us
>  if "Current thread busy" mean  "Parse and Prepare Request"  and 
> "Service"

Also "Finishing"

? "Keeped alive sockets count" mean  "Keep-Alive"?

Yes.

One question you didn't ask, but shows data for was "why does my
process have 541 threads when Tomcat says it's got 478 threads". The
answer is that Tomcat and the JVM are both running threads that are
not servicing requests.

Take a thread dump of your JVM to see what those other threads are
doing, and you'll see things like the "Finalizer" thread, various
threads for GC, JIT, AWT (if graphics subsystem has been launched),
the main thread itself, etc.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJZneLHAAoJEBzwKT+lPKRYjSoQALTyOs9Qs980nogOtLEJebE4
Ry/qff22vgDaR1rvJdxIDeu0RJVgliYdMZ1vr9G9ZCJHnkoL6rcjr4YUeTGt/VIT
DbpKCSFFszrg3QPQAxZD/QajACfedcPWNw0HXWy4Sc32tGdt+hh5L3iP89K1ig0U
HexwnLKm9LLl1P0ntRsPlcqBTijHsOdzdiJ1iEU/IkToJ0NH5pLY7vG0fysFKe0m
PyY/+Ndyt549+30J1YluLxqNi2pvd6syiD2YBcrqm17ZKzNbkOyY/Y7vqgsVnfda
ytsnq/maUxUgBQNCBx/nKPrfso8lBU3jNlhf6hSGCFJF6h6KVrmRmtFyZjeA1QMK
8AD0Nr0FiWChR3q6OvkdiS2JwhYzsi2UNseYoPtaxy71kjjrenaerW5wv0r+CPkX
Cw+DiAV5hZdp1APJZkSZaQxu1ii2sxJtQdHJ1sqZb8f6t5S4kD6wwoGeeuKWYq//
xXje9tlH8ONTw/oBteIIkF1bTLmPp1d04W8RMZv5keeuQ60lSIm4a6dJIeYzvubP
gnE++zCm1eoHOy/p2V+dQEHe//P7hrVkJ3qAzmbIxmADCrjNxJpFko5uD/nli0uG
FOZl315dBDIwJtri3KuPMtDqDziy3JKzlSlSTUSPlrP7dD77S44XfHEASBsTNULd
+OCGM5xsg2ksovWSH2QI
=kbDs
-----END PGP SIGNATURE-----

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

Reply via email to