пт, 5 янв. 2024 г. в 12:45, Vaidya, Omkar <ovai...@ptc.com>:
>
> Hi Team,
>
>
>
> This is regarding like we have one customer issue where on Linux platform, we 
> have configured our IOT-application (Thingworx), which is using Tomcat as a 
> server.
>
> So we are able to identify that even when we remove our application, Tomcat 
> is creating a zombie (defunct) process, which is creating 200+ processes 
> under the process table, which ultimately occupy all the OS resources and the 
> application goes in a hung state. This issue is also reproducible on the 
> Standalone Tomcat server also.
>
> There are two scenarios mentioned below -
>
> 1.            If this is relatable to Tomcat can you please suggest any 
> article or documentation so that we can stop zombie process creation, if this 
> is a known issue or there is only way to clear zombie (defunct) process from 
> Processes table of linux.

The count of "200" sounds a lot like the default value of "maxThreads"
attribute of a <Connector>. See Configuration Reference,
https://tomcat.apache.org/tomcat-9.0-doc/config/http.html

So it is very likely that your "zombie processes" are just Threads and
not processes.
https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html

A good way to see what those threads are actually doing is to take a
"Thread dump". It can be done with "jstack" program that comes with
Java.

See also FAQ pages
https://cwiki.apache.org/confluence/display/TOMCAT/Troubleshooting+and+Diagnostics#TroubleshootingandDiagnostics-CommonTroubleshootingScenario

https://cwiki.apache.org/confluence/display/TOMCAT/HowTo#HowTo-HowdoIobtainathreaddumpofmyrunningwebapp?

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