[jboss-dev] AS and the new Bootstrap Implementation
Andrew Lee Rubinger
andrew.rubinger at redhat.com
Mon May 18 10:00:04 EDT 2009
Andrew Lee Rubinger wrote:
> *Issues*
>
> The following are outstanding, possible points of discussion:
>
> 1) Non-daemon Threads after AS shutdown keeping VM active
> https://jira.jboss.org/jira/browse/JBAS-6919
>
> If launched from AS Main, server shutdown should allow the VM to exit.
> The presence of non-daemon Threads hanging around after the shutdown
> lifecycle has existed prevents this. Please take a look at the thread
> dump I've attached to the JIRA and ensure your project is not
> contributing to the remaining Threads. Subtasks referencing JBAS-6919
> should be forthcoming.
Actually, Daemon or not, any Threads run during the start lifecycle
should be brought down during shutdown. With very few exceptions, the
state of the VM should be the same before the server has started and
after it's stopped. For instance, what happens when we do a restart and
you've still got Threads hanging around?
Every subproject should take a look at the Thread dump attached to
JBAS-6919 and bring down any jobs you've still got running.
An example of clean shutdown is Scott's work in JBAS-6929. DML also
tells me that anything using the jboss-threads project binds the Thread
lifecycle to MC, which would cover these cases.
S,
ALR
--
Andrew Lee Rubinger
Sr. Software Engineer
JBoss, a division of Red Hat, Inc.
http://exitcondition.alrubinger.com
More information about the jboss-development
mailing list