/
Jolokia - Atom restart script
Jolokia - Atom restart script
The restart script is named “restart.ps1”, and is located in the local Atom install folder.
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
}
, multiple selections available,
Related content
Boomi - Data collector install - Windows installer script version
Boomi - Data collector install - Windows installer script version
More like this
Boomi - Data collector install
Boomi - Data collector install
More like this
Boomi - process monitoring - Install collector
Boomi - process monitoring - Install collector
More like this
Getting started with Boomi monitoring
Getting started with Boomi monitoring
More like this
Prerequisites - Boomi Atom data collector setup
Prerequisites - Boomi Atom data collector setup
More like this