mac.properties revision 1870:4aa2e64eff30
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.vmmap native.heap native.leaks native.spindump \
33  native.stack native.core
34################################################################################
35native.pattern=%p
36native.javaOnly=false
37native.args=%p
38
39# Some of them require root privileges
40native.vmmap.app=vmmap
41native.heap.app=heap
42native.leaks.app=leaks
43native.spindump.app=spindump
44native.spindump.args=%p -stdout
45
46native.stack.app=lldb
47native.stack.delimiter=\0
48native.stack.params.repeat=6
49native.stack.args=-o\0attach %p\0-o\0thread backtrace all\0-o\0detach\0-o\0quit
50
51native.core.app=bash
52native.core.delimiter=\0
53native.core.args=-c\0gcore -o ./core.%p %p || \
54  lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit'
55native.core.params.timeout=3600000
56################################################################################
57# environment info to gather
58################################################################################
59environment=\
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################################################################################
68users.current.app=id
69users.current.args=-a
70users.logged.app=who
71users.logged.args=-a
72users.last.app=last
73users.last.args=-10
74
75disk.app=df
76disk.args=-h
77
78env.app=env
79
80system.dmesg.app=dmesg
81system.sysctl.app=sysctl
82system.sysctl.args=-a
83
84process.ps.app=ps
85process.ps.args=-Meo pid,pcpu,cputime,start,pmem,vsz,rss,state,wchan,user,args
86process.top.app=top
87process.top.args=-l 1
88
89memory.vmstat.app=vm_stat
90memory.vmstat.args=-c 3 3
91
92
93netstat.app=netstat
94netstat.av.args=-av
95netstat.aL.args=-aL
96netstat.m.args=-m
97netstat.s.args=-s
98################################################################################
99