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.

Revisions

  1. thegauravmahawar renamed this gist Jun 21, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ec2-gc-check.sh → ec2-gc.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    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/giddh/heapdump.bin 3363
    jmap -F -dump:live,format=b,file=/var/log/heapdump.bin pid
    jmap -heap pid
    gcore -o filename pid
  2. thegauravmahawar renamed this gist Jun 21, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. thegauravmahawar revised this gist Jun 21, 2020. No changes.
  4. thegauravmahawar revised this gist Jun 21, 2020. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions AWS EC2 - GC Checks
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    ```js
    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/giddh/heapdump.bin 3363
    jmap -heap pid
    gcore -o filename pid
    ```
  5. thegauravmahawar revised this gist Jun 21, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion AWS EC2 - GC Checks
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ```bash
    ```js
    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
  6. thegauravmahawar created this gist Jun 21, 2020.
    8 changes: 8 additions & 0 deletions AWS EC2 - GC Checks
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    ```bash
    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/giddh/heapdump.bin 3363
    jmap -heap pid
    gcore -o filename pid
    ```