[jboss-jira] [JBoss JIRA] Commented: (JBAS-6929) Make HDScanner a Daemon Thread
David Lloyd (JIRA)
jira-events at lists.jboss.org
Mon May 18 09:50:05 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-6929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12468032#action_12468032 ]
David Lloyd commented on JBAS-6929:
-----------------------------------
Two of the four constructors for ScheduledThreadPoolExecutor accept a ThreadFactory which may create daemon threads. That said, a destroy (or stop) method seems like the right way to go to me.
> Make HDScanner a Daemon Thread
> ------------------------------
>
> Key: JBAS-6929
> URL: https://jira.jboss.org/jira/browse/JBAS-6929
> Project: JBoss Application Server
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: System service
> Reporter: Andrew Lee Rubinger
> Assignee: Scott M Stark
> Fix For: JBossAS-5.1.0.GA
>
>
> Marking the daemon flag to true will allow the VM to exit upon server shutdown. Alternatively, kill the scanner upon undeploy.
> "HDScanner" prio=1 tid=0x00007f722c171100 nid=0x356 waiting on condition [0x00007f723c560000..0x00007f723c560d70]
> at sun.misc.Unsafe.park(Native Method)
> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1841)
> at java.util.concurrent.DelayQueue.take(DelayQueue.java:131)
> at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:533)
> at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:526)
> at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:470)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:674)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list