-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
To get separate metrics per JAVA process, following modifications have to be done:
in metrics-java-heap-graphite-java8.sh
Lines 40 & 65 instead:
PID=$(sudo jps | grep "
&
projectName=$(sudo jps | grep $PID | awk '{ print $2}' | cut -d. -f1)
It would be nice to have:
PID=$(sudo jps -l | grep "
&
projectName=$(sudo jps -l | grep $PID | awk '{ print $2}' | cut -d. -f1)
And
in metrics-java-heap-graphite.sh
Line 50
project=$(sudo jps | grep $PID | awk '{ print $2 }' | cut -d. -f1)
to
project=$(sudo jps -l | grep $PID | awk '{ print $2 }' | cut -d. -f1)
-l is added after jps command
Best Regards
Metadata
Metadata
Assignees
Labels
No labels