12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23
24 config.execSuffix=
25 config.getChildren.pattern=%p
26 config.getChildren.app=pgrep
27 config.getChildren.args=-P %p
28 ################################################################################
29 # process info to gather
30 ################################################################################
31 onTimeout=\
32 native.vmmap native.heap native.leaks native.spindump \
33 native.stack native.core
34 ################################################################################
35 native.pattern=%p
36 native.javaOnly=false
37 native.args=%p
38
39 # Some of them require root privileges
40 native.vmmap.app=vmmap
41 native.heap.app=heap
42 native.leaks.app=leaks
43 native.spindump.app=spindump
44 native.spindump.args=%p -stdout
45
46 native.stack.app=lldb
47 native.stack.delimiter=\0
48 native.stack.params.repeat=6
49 native.stack.args=-o\0attach %p\0-o\0thread backtrace all\0-o\0detach\0-o\0quit
50
51 native.core.app=bash
52 native.core.delimiter=\0
53 native.core.args=-c\0gcore -o ./core.%p %p || \
54 lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit'
55 native.core.params.timeout=3600000
56 ################################################################################
57 # environment info to gather
58 ################################################################################
59 environment=\
60 users.current users.logged users.last \
61 disk \
62 env \
63 system.dmesg system.sysctl \
64 process.ps process.top \
65 memory.vmstat \
66 netstat.av netstat.aL netstat.m netstat.s
67 ################################################################################
68 users.current.app=id
69 users.current.args=-a
70 users.logged.app=who
71 users.logged.args=-a
72 users.last.app=last
73 users.last.args=-10
74
75 disk.app=df
76 disk.args=-h
77
78 env.app=env
79
80 system.dmesg.app=dmesg
81 system.sysctl.app=sysctl
82 system.sysctl.args=-a
83
84 process.ps.app=ps
85 process.ps.args=-Meo pid,pcpu,cputime,start,pmem,vsz,rss,state,wchan,user,args
86 process.top.app=top
87 process.top.args=-l 1
88
89 memory.vmstat.app=vm_stat
90 memory.vmstat.args=-c 3 3
91
92
93 netstat.app=netstat
94 netstat.av.args=-av
95 netstat.aL.args=-aL
96 netstat.m.args=-m
97 netstat.s.args=-s
98 ################################################################################
|
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23
24 config.execSuffix=
25 config.getChildren.pattern=%p
26 config.getChildren.app=pgrep
27 config.getChildren.args=-P %p
28 ################################################################################
29 # process info to gather
30 ################################################################################
31 onTimeout=\
32 native.DevToolsSecurity \
33 native.vmmap native.heap native.leaks native.spindump \
34 native.stack native.core
35 ################################################################################
36 native.pattern=%p
37 native.javaOnly=false
38 native.args=%p
39
40 native.DevToolsSecurity.app=DevToolsSecurity
41 native.DevToolsSecurity.args=--status
42
43 # spindump requires root privileges
44 native.spindump.app=spindump
45 native.spindump.args=%p -stdout
46
47 native.vmmap.app=bash
48 native.vmmap.delimiter=\0
49 native.vmmap.args=-c\0DevToolsSecurity --status | grep enabled > /dev/null && vmmap %p
50
51 native.leaks.app=bash
52 native.leaks.delimiter=\0
53 native.leaks.args=-c\0DevToolsSecurity --status | grep enabled > /dev/null && leaks %p
54
55 native.heap.app=bash
56 native.heap.delimiter=\0
57 native.heap.args=-c\0DevToolsSecurity --status | grep enabled > /dev/null && heap %p
58
59 native.stack.app=bash
60 native.stack.delimiter=\0
61 native.stack.params.repeat=6
62 native.stack.args=-c\0DevToolsSecurity --status | grep enabled > /dev/null && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit'
63
64 native.core.app=bash
65 native.core.delimiter=\0
66 native.core.args=-c\0gcore -o ./core.%p %p || \
67 (DevToolsSecurity --status | grep enabled > /dev/null && lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit')
68 native.core.params.timeout=3600000
69 ################################################################################
70 # environment info to gather
71 ################################################################################
72 environment=\
73 users.current users.logged users.last \
74 disk \
75 env \
76 system.dmesg system.sysctl \
77 process.ps process.top \
78 memory.vmstat \
79 netstat.av netstat.aL netstat.m netstat.s
80 ################################################################################
81 users.current.app=id
82 users.current.args=-a
83 users.logged.app=who
84 users.logged.args=-a
85 users.last.app=last
86 users.last.args=-10
87
88 disk.app=df
89 disk.args=-h
90
91 env.app=env
92
93 system.dmesg.app=dmesg
94 system.sysctl.app=sysctl
95 system.sysctl.args=-a
96
97 process.ps.app=ps
98 process.ps.args=-Meo pid,pcpu,cputime,start,pmem,vsz,rss,state,wchan,user,args
99 process.top.app=top
100 process.top.args=-l 1
101
102 memory.vmstat.app=vm_stat
103 memory.vmstat.args=-c 3 3
104
105 netstat.app=netstat
106 netstat.av.args=-av
107 netstat.aL.args=-aL
108 netstat.m.args=-m
109 netstat.s.args=-s
110 ################################################################################
|