Skip to content

Instantly share code, notes, and snippets.

@thegauravmahawar
Last active June 21, 2020 07:41
Show Gist options
  • Select an option

  • Save thegauravmahawar/b67c34b45f97dc823403484ae5f15af5 to your computer and use it in GitHub Desktop.

Select an option

Save thegauravmahawar/b67c34b45f97dc823403484ae5f15af5 to your computer and use it in GitHub Desktop.
AWS EC2 - GC Checks
yum whatprovides '*/jmap'
yum install java-1.8.0-openjdk-devel-1.8.0.232.b09-0.48.amzn1.x86_64
sudo debuginfo-install java-1.8.0-openjdk-devel
jmap -F -dump:live,format=b,file=/var/log/heapdump.bin pid
jmap -heap pid
gcore -o filename pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment