这里以hadoop的进程为例,大家看做是普通java进程即可
NAME tmpwatch - removes files which haven’t been accessed for a period of time OPTIONS -u, --atime Make the decision about deleting a file based on the file’s atime (access time). This is the default. Note that the periodic updatedb file system scans keep the atime of directories recent. -m, --mtime Make the decision about deleting a file based on the file’s mtime (modification time) instead of the atime. -c, --ctime Make the decision about deleting a file based on the file’s ctime (inode change time) instead of the atime; for directories, make the decision based on the mtime. -d, --nodirs Do not attempt to remove directories, even if they are empty. -d, --nosymlinks Do not attempt to remove symbolic links.
flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp /usr/sbin/tmpwatch "$flags" 720 /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 720 "$d" fi done
jinfo 30352结果如下
Attaching to process ID 30352, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 20.4-b02
Java System Properties:
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /usr/java/jdk1.6.0_29/jre/lib/amd64
java.vm.version = 20.4-b02
。。。。。。。。。。。。。。。。
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
user.country = US
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /home/hadoop/hadoop
java.runtime.version = 1.6.0_29-b11
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /usr/java/jdk1.6.0_29/jre/lib/endorsed
os.arch = amd64
java.io.tmpdir = /tmp
line.separator =
。。。。。。。。。。。。。。。。
。。。。。表示省略,其中注意红字部分
java.io.tmpdir = /tmp
hadoop-hadoop-jobtracker.pid hsperfdata_root hadoop-hadoop-namenode.pid Jetty_0_0_0_0_50030_job____yn7qmk hadoop-hadoop-secondarynamenode.pid Jetty_0_0_0_0_50070_hdfs____w2cu08 hsperfdata_hadoop Jetty_0_0_0_0_50090_secondary____y6aanv
ls /tmp/hsperfdata_hadoop/
31498 31664 31749
31989 Jps 31749 JobTracker 31664 SecondaryNameNode 31498 NameNode