jmx-dev Review: JDK-7158614, JMXStartStopTest.sh failing intermittently

shanliang shanliang.jiang at oracle.com
Mon Dec 3 10:09:44 PST 2012


Hi,

The test failed because 2 problems happened on a slow machine:

1) the function _get_pid() did not get right pid because the pid was 
showed too late
or
2) the file JMXStartStop.lck was showed too late too

The fix is to add a waiting (max 20 seconds) in the function 
_app_start() to make sure that the pid and JMXStartStop.lck are both 
well created. This waiting is not entered in a normal and not too 
charged machine.

I modified too the class JMXStartStopDoSomething, it will wake up every 
500ms to check running timeout, instead of 1ms, 1ms is not reasonable short.

I tested 1) by not running JMXStartStopDoSomething in the function 
_app_start()
I tested 2) by add one second sleep before creating JMXStartStop.lck 
file in the class JMXStartStopDoSomething.

best regards,

Shanliang


More information about the jmx-dev mailing list