Created
January 5, 2024 14:57
-
-
Save julioarguello/9cb2656a665ac40b2538c68a61d3c4ca to your computer and use it in GitHub Desktop.
[Heap dump using groovy] Take a heap dump from Groovy console #sapcommerce #performance
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
"tail /opt/hybris/data/hybristomcat.java.pid".execute().text | |
"jmap -dump:format=b,file=/NFS_DATA/transfer/incoming/export/20181014-heapdump.bin 91724".execute().text | |
"tar -zcvf /NFS_DATA/transfer/incoming/export/20181014-heapdump.bin.tgz /NFS_DATA/transfer/incoming/export/20181014-heapdump.bin.hprof".execute().text | |
"chmod 777 /NFS_DATA/transfer/incoming/export/20181014-heapdump.bin.addons".execute().text | |
"chmod 777 /NFS_DATA/transfer/incoming/export/20181014-heapdump.bin.tgz".execute().text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are 3 steps: