chore: Added multiple scripts to trigger profiles (#35546)
This commit is contained in:
parent
45386df798
commit
deaf9f9bea
10
deploy/docker/fs/opt/appsmith/record-heap-dump.sh
Executable file
10
deploy/docker/fs/opt/appsmith/record-heap-dump.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
set -o nounset
|
||||||
|
set -o noglob
|
||||||
|
|
||||||
|
location=/appsmith-stacks/heap_dumps/ad-hoc/$(date "+%Y_%m_%d_%H_%S")/heap-profile;
|
||||||
|
mkdir -p $location;
|
||||||
|
jcmd $(pgrep -f -- "-jar\sserver.jar") GC.heap_dump filename=$location/${HOSTNAME}.log
|
||||||
10
deploy/docker/fs/opt/appsmith/record-thread-dump.sh
Executable file
10
deploy/docker/fs/opt/appsmith/record-thread-dump.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
set -o nounset
|
||||||
|
set -o noglob
|
||||||
|
|
||||||
|
location=/appsmith-stacks/heap_dumps/ad-hoc/$(date "+%Y_%m_%d_%H_%S")/thread-profile;
|
||||||
|
mkdir -p $location;
|
||||||
|
jcmd $(pgrep -f -- "-jar\sserver.jar") Thread.print > $location/trace-${HOSTNAME}.log
|
||||||
10
deploy/docker/fs/opt/appsmith/thread-profile-start.sh
Executable file
10
deploy/docker/fs/opt/appsmith/thread-profile-start.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
set -o nounset
|
||||||
|
set -o noglob
|
||||||
|
|
||||||
|
location=/appsmith-stacks/heap_dumps/ad-hoc/$(date "+%Y_%m_%d_%H_%S")/thread-profile;
|
||||||
|
mkdir -p $location;
|
||||||
|
jcmd $(pgrep -f -- "-jar\sserver.jar") JFR.start name=profile filename=$location/profile-${HOSTNAME}.jfr
|
||||||
8
deploy/docker/fs/opt/appsmith/thread-profile-stop.sh
Executable file
8
deploy/docker/fs/opt/appsmith/thread-profile-stop.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o pipefail
|
||||||
|
set -o nounset
|
||||||
|
set -o noglob
|
||||||
|
|
||||||
|
jcmd $(pgrep -f -- "-jar\sserver.jar") JFR.dump name=profile
|
||||||
Loading…
Reference in New Issue
Block a user