mac.properties revision 2440:dbf8aa5aea8d
1#
2# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# This code is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation.
8#
9# This code is distributed in the hope that it will be useful, but WITHOUT
10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
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
24config.execSuffix=
25config.getChildren.pattern=%p
26config.getChildren.app=pgrep
27config.getChildren.args=-P %p
28################################################################################
29# process info to gather
30################################################################################
31onTimeout=\
32  native.DevToolsSecurity \
33  native.vmmap native.heap native.leaks native.spindump \
34  native.stack native.core
35################################################################################
36native.pattern=%p
37native.javaOnly=false
38native.args=%p
39
40native.DevToolsSecurity.app=DevToolsSecurity
41native.DevToolsSecurity.args=--status
42
43# spindump requires root privileges
44native.spindump.app=spindump
45native.spindump.args=%p -stdout
46
47native.vmmap.app=bash
48native.vmmap.delimiter=\0
49native.vmmap.args=-c\0DevToolsSecurity --status | grep -q enabled && vmmap %p
50
51native.leaks.app=bash
52native.leaks.delimiter=\0
53native.leaks.args=-c\0DevToolsSecurity --status | grep -q enabled && leaks %p
54
55native.heap.app=bash
56native.heap.delimiter=\0
57native.heap.args=-c\0DevToolsSecurity --status | grep -q enabled && heap %p
58
59native.stack.app=bash
60native.stack.delimiter=\0
61native.stack.params.repeat=6
62native.stack.args=-c\0DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit'
63
64native.core.app=bash
65native.core.delimiter=\0
66native.core.args=-c\0gcore -o ./core.%p %p || \
67  (DevToolsSecurity --status | grep -q enabled && lldb --batch -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit')
68native.core.params.timeout=3600000
69################################################################################
70# environment info to gather
71################################################################################
72environment=\
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################################################################################
81users.current.app=id
82users.current.args=-a
83users.logged.app=who
84users.logged.args=-a
85users.last.app=last
86users.last.args=-10
87
88disk.app=df
89disk.args=-h
90
91env.app=env
92
93system.dmesg.app=dmesg
94system.sysctl.app=sysctl
95system.sysctl.args=-a
96
97process.ps.app=ps
98process.ps.args=-Meo pid,pcpu,cputime,start,pmem,vsz,rss,state,wchan,user,args
99process.top.app=top
100process.top.args=-l 1
101
102memory.vmstat.app=vm_stat
103memory.vmstat.args=-c 3 3
104
105netstat.app=netstat
106netstat.av.args=-av
107netstat.aL.args=-aL
108netstat.m.args=-m
109netstat.s.args=-s
110################################################################################
111