[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 17:58:01 EDT 2012
[ https://issues.jboss.org/browse/JBASMP-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Perkins resolved JBASMP-30.
---------------------------------
Fix Version/s: 7.3.Final
Resolution: Done
Commit https://github.com/jbossas/jboss-as-maven-plugin/commit/d5ec9d06e9bd54ed10786b40deaa15b967fefebc
> 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