I have a Tomcat service running that fail sometimes - I did not find the reason yet. In the Catalina log I see the following:
Feb 03, 2022 10:54:39 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-80"]
Feb 03, 2022 10:54:39 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-443"]
Feb 03, 2022 10:54:39 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Feb 03, 2022 10:54:39 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
which gives no information about root cause.
When I try to see the service status:
$sudo -E service tomcatd status
tomcatd dead but pid file exists
I want to write simple monit script that will monitor this behaviour and restart tomcatd in case it happens, but I did not find any example to such a situation. Any idea?