Each time a Boomi atom restarts, its PID will change. In those scenarios, the Jolokia agent should be re-attached to the correct PID.
Each atom comes with a restart script, that will be triggered when the atom restarts. Please add the commented code below (2 lines commented below, this is to the “Restart-Service” section of the powershell script) to the restart.ps1 script.
Also remember to set the correct ip address in the host parameter.
Restart-Service -Verbose $srvName Start-Sleep -s 5 for($i=1; $i -le 5; $i++) { $serviceAfter = Get-Service $srvName if ($serviceAfter.status -eq “running”) { “$srvName is Running” #insert the two lines of code below $atoms = Get-Process atom | Where-Object {$_.Handles -gt 200} | select -expand id Start-Process java -ArgumentList ‘-jar’, ‘c:/jolokia-jvm-1.7.1.jar --host=ip_address’, $atoms break }