On 08/06/2022 11:54, Jean Pierre URKENS wrote:
Hi Mark,

I know the version is quite old, but that is what the client currently has
installed.

ACK.

I  am shutting Tomcat down with ${TOMCAT_HOME}/bin/shutdown.sh (RHEL 7.x
server).

Good. I think that is likely to be the best option in this case.

We've got TOMCAT_HOME under '/opt/tomcat8' and several TOMCAT_BASE server
instances.

When you say servlet clean-up actions, what exactly do you mean? The Servlet.destroy() method?

Generally, I'd recommend a ServletContextListener for resource clean-up. Partly that is personal preference - I find it cleaner if all the code is in one place - and partly it is avoiding potential issues around containers destroying unused servlets while the web app is running. Most (all) containers won't do this but you never know.

Meanwhile, I'm planning on some local testing to see if I can recreate the issue you are seeing.

Mark



J.P.



-----Original Message-----
From: Mark Thomas <ma...@apache.org>
Sent: woensdag 8 juni 2022 12:45
To: users@tomcat.apache.org
Subject: Re: Debugging Tomcat during shutdown

On 08/06/2022 11:29, Jean Pierre URKENS wrote:
I am trying to debug the cleanup of resources during a shutdown of
Tomcat
8.5.43

That is a rather old version. I'd recommend upgrading.

and notices that my debug session gets killed prior to performing any
servlet cleanup actions.

I am starting Tomcat in debug mode with the JVM options:

JAVA_OPTS="$JAVA_OPTS -Xdebug
-Xrunjdwp:transport=dt_socket,address=xxxx,server=y,suspend=n"

Is this normal behavior? How do I debug tomcat in this scenario.

How are you triggering shutdown?

Mark

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

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


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

Reply via email to