You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/03/03 07:58:00 UTC

[jira] [Commented] (ISIS-1506) tomcat shutdown - threads in PARK state

    [ https://issues.apache.org/jira/browse/ISIS-1506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16384544#comment-16384544 ] 

ASF subversion and git services commented on ISIS-1506:
-------------------------------------------------------

Commit 1c017ab1dfcdd1e4fb0e841981a3c1f2c9ba8ae7 in isis's branch refs/heads/master from [~hobrom]
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=1c017ab ]

ISIS-1506 make ThreadPoolSupport application scoped

fixes tomcat shutdown - threads in PARK state

> tomcat shutdown - threads in PARK state
> ---------------------------------------
>
>                 Key: ISIS-1506
>                 URL: https://issues.apache.org/jira/browse/ISIS-1506
>             Project: Isis
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.13.0
>            Reporter: Timothy Simecsek
>            Priority: Major
>             Fix For: 2.3.0
>
>         Attachments: IntelliJ Debug.PNG, Java VisualVM.PNG, catalina.log
>
>
> Hi Dan,
> Today I monitored threads created within our application while running on tomcat 8.5.3x64 because of an issue in my code.
> While doing that I noticed that there were two threads called Thread-7 and Thread-8 (name was stable during a lot of starts but only on the first start) that I wasn't able to find in my code so I debugged a bit deeper and found that they were created in org.apache.isis.core.runtime.threadpool.ThreadPoolSupport:76 during start-up.
> After that they are going to state PARK and reside even when undeploying the application from tomcat.
> I haven't looked much at your code but I believe you should call shutdown on the ThreadPoolExecutor that you are using once you are finished or in PreDestroy situation. At least I had a very similar issue in my application and shutdown() solved it.
> Please find attached a screenshot of IntelliJ view during debug, the screenshot of VisualVM and the catalina log from tomcat complaining about these two threads.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)