Skip to content

Commit c8e9fe3

Browse files
committed
Add take heapdump/upload file command
1 parent 62b5214 commit c8e9fe3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

take_heapdump

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
NODE_KILL=`which node-kill`
4+
5+
if [ -f "$HOME/.nodepath" ]; then
6+
NODE_KILL=`cat $HOME/.nodepath`/node-kill;
7+
fi
8+
9+
$NODE_KILL --heapdump $1

upload_file

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
UPLOADER=`which uploader`
4+
5+
if [ -f "$HOME/.nodepath" ]; then
6+
UPLOADER=`cat $HOME/.nodepath`/uploader
7+
fi
8+
9+
# ./uploader server filepath token id
10+
$UPLOADER $1 $2 $3 $4

0 commit comments

Comments
 (0)