jstack - well-known file is not secure

后端 未结 10 1964
礼貌的吻别
礼貌的吻别 2021-01-01 08:37

I am running tomcat 5.5 on x86_64 CentOS 5.7 using 32-bit Oracle Java 1.6.0.

JVM process used by tomcat has 6421 pid. Tomcat is working fine.

When run

10条回答
  •  执笔经年
    2021-01-01 09:13

    This is the one liner I use to make sure I'm always using the correct user permissions:

    proc="my-process-name"; pid=`pgrep -f "${proc}"`; sudo -u "#`ps axo uid,pid | grep "${pid}" | tr -s " " | cut -f2 -d" "`" /usr/bin/jstack -l "${pid}" > /mnt/dumps/"${proc}"-`date +%s`.txt
    

提交回复
热议问题