Table of Contents

Procedures

Defines procedures which can be helpful for troubleshooting problems with the application

Find Java install folder

# ls -l /etc/alternatives/java
> /etc/alternatives/java -> /usr/lib/jvm/java-17-openjdk-17.0.0.0.35-1.rolling.el7.x86_64/bin/java

Find application PID

  # systemctl status promonitor

Heap dump

Heap dump creates a file allowing to inspect memory usage of the application
This is helpful for investigating problems such as memory leaks
[JAVA BIN PATH]/jmap -dump:live,format=b,file=heapdump.hprof [PID]

Note:

sudo -u promonitor [JAVA BIN PATH]/jmap -dump:live,format=b,file=heapdump.hprof [PID]

Stack trace

Stack traces helps understanding what the application is doing at a given time.
This helps investigating performance issues, such as slow startup
[JAVA BIN PATH]/jstack PID > stacktrace.log