James Perkins created JBASMP-30:
-----------------------------------
Summary: 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
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