Select Page
For my current performance test project, I’m using Jenkins to fire off jmeter.  The jmeter tests themselves are spawned on multiple load test clients and so I need to start the jmeter-server on each of these clients.

I ran into problems when doing this via the Jenkins ‘Execute Shell’ module:

nohup ./jmeter-server &

As soon as Jenkins shell module completed, the Jmeter server was no longer alive.  A ‘ps -ef | grep jmeter’ showed no results as the process was killed.

This blog post really helped me – in fact, it probably saved me my job! Apparently, the Jenkins shell kills the shell process as well as the shell’s children processes – no bueno… To fix this, simply include the following snipped in your Jenkins shell module

BUILD_ID=dontKillMe