Is it possible to use system.util.execute or some other wizardry to return the process ID that the Ignition gateway is running under, in the underlying linux installation.
For reference i am running Ignition on an Ubuntu VM.
Currently i can extract this using “top” command in Ubuntu and identify the PID as follows:
Also, can anything be done to name it something more useful than just “Java”?
I need this for… reasons. Namely trying to run a shell script to start a Java Flight Recording to identify gateway performance issues. Automatically. Similar to how a Thread Dump would be request when gateway CPU / RAM is going higher than expected.
I’ve managed to execute my shell script automatically which is nice, but currently the PID is hardcoded as 1421, which will not be so nice after the service / VM restarts.