Created
September 14, 2022 08:55
-
-
Save thermz/1471c53d577c070cce8a1bbf88cf72a4 to your computer and use it in GitHub Desktop.
Simple AWK script to print all the JVM params of a running process on a linux machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ps aux | grep $1 | grep "\-XX" | awk '{ for(i=1;i<NF;i++){ if( match($i,/\-XX.*/)) { print $i } } }' | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment