new scripts

This commit is contained in:
Jed Reynolds
2018-08-29 14:00:44 -07:00
parent 7f40053705
commit 37d36f12d0
2 changed files with 1057 additions and 0 deletions

1043
jlanpro_test.pl Executable file

File diff suppressed because it is too large Load Diff

14
mem-info.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -x
java_pid=`pgrep java`
[ -z "$java_pid" ] && echo "no running java process" && exit 1
p_jmap=`which jmap`
[ -z "$p_jmap" ] && echo "jmap not found" && exit 1
now=`date +heap_+%Y-%m-%d_%I-%M-%S`
$p_jmap -dump:live,format=b,file=/home/lanforge/Documents/$now.bin $java_pid
jstack $java_pid
echo done