]
James Perkins resolved JBASMP-30.
---------------------------------
Fix Version/s: 7.3.Final
Resolution: Done
Commit
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: