[jboss-jira] [JBoss JIRA] (JBASMP-30) jboss-as:run intermittently hangs with 100% CPU
James Perkins (JIRA)
jira-events at lists.jboss.org
Fri Oct 19 18:02:02 EDT 2012
[ https://issues.jboss.org/browse/JBASMP-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728156#comment-12728156 ]
James Perkins commented on JBASMP-30:
-------------------------------------
Copied from https://github.com/jbossas/jboss-as-maven-plugin/issues/23
> jboss-as:run intermittently hangs with 100% CPU
> -----------------------------------------------
>
> Key: JBASMP-30
> URL: https://issues.jboss.org/browse/JBASMP-30
> Project: JBoss AS Maven Plugins
> Issue Type: Bug
> Affects Versions: 7.2.Final
> Reporter: James Perkins
> Assignee: James Perkins
> Fix For: 7.3.Final
>
>
> The run goal should return when the server has started but intermittently hangs with 100% CPU. I believe the cause to be flawed logic in the loop that checks for server startup.
> In Run.java:200 (7.2-FINAL), what is currently:
> {code}
> while (server.isRunning()) {
> }
> {code}
> i.e. if the server reaches a running state before this loop is reached then loop indefinitely
> It should instead be something like:
> {code}
> while (!server.isRunning()) {
> TimeUnit.MILLISECONDS.sleep(100L);
> }
> {code}
> For extra safety it should probably also respect the startup-timeout parameter.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list