使用jstack命令查看进程堆栈信息报:well-known file is not secure。 原因分析 由于执行命令的用户与当前查看pid信息的进程提交用户不一致导致。 Storm引入区分用户执行任务特性,在启动worker进程时将给进程的uid和gid改为提交用户和ficommon,目的是为了logviewer可以访问到worker进程的日志同时日志文件只开放权限到640。这...
1. 当使用jmap -heap pid查询内存状况的时候,提示cannot open binary file,如下图所示: 2. 当使用jmap -dump:format=b,file=/tmp/online.bin pid的时候,提示“35322: well-known file is not secure”,其中35322为进程id。执行jstack -l pid的时候,错误也是一样的。 在网上查询发现,解决方案主要分为以下...
执行jstack pid时,提示well-known file is not secure。 原因是pid的启动用户不是当前用户,需要切换到启动用户下执行jstack即可。 可以通过如下命令来处理: sudo -u $user jstack $pid
当使用jstack <pid>查看jvm栈信息时,提示:<pid> well-known file is not secure,是由于<pid>进程的所有者与执行jstack命令的用户不一致,即使执行jstack的用户是root,jstack也认为是不安全的。所以需要切换到与<pid>进程的所有者相同的用户下执行jstack命令。如果<pid>进程的所有者是shell用户,可以su到该用户shell...
最近一段时间经常使用JDK自带工具jmap和jstack来dump JVM heap和JVM 线程栈的log来分析问题,执行这两个命令当时让我最摸不着头脑的就是碰到这个问题:well-known file is not secure eg: 上网google了一把,在stackoverflow上找到答案:http://stackoverflow.com/questions/9100149/jstack-well-known-file-is-not-secu...
在root下导出dumpfile 报错 26543: well-known file is not secure 切换到普通用户 sudo -u userA /java/jdk1.8.0_121/bin/jmap -dump :live,file=/gcerr/26543jmap0821.hprof 26543 Dumping heap to /gcerr/26543jmap0821.hprof ... Heap dump file created...
com/questions/9100149/jstack-well-known-file-is-not-secure?rq=1,大概意思是:我们可以在机器上找到 /tmp/hsperfdata_$USER/$PID一个这样的文件,当我们执行jmap或者jstack出现上叙信息时,先检查执行该命令的用户是否和hsperfdata_$USER这个文件所属的用户一致,如果不一致,切换至成一致再执行即可。
使用jstack命令查看进程堆栈提示“well-known file is not secure” 原因分析 由于执行命令的用户与当前查看pid信息的进程提交用户不一致导致。 Storm引入区分用户执行任务特性,在启动worker进程时将给进程的uid和gid改为提交用户和ficommon,目的是为了logviewer可以访问到worker进程的日志同时日志文件只开放权限到64 ...
【摘要】 在root下导出dumpfile 报错 26543: well-known file is not secure 切换到普通用户 sudo -u userA /java/jdk1.8.0_121/bin/jmap -dump :live,file=/gcerr/26543jmap0821.hprof 26543 D... 在root下导出dumpfile 报错 26543: well-known file is not secure ...
well-known file /tmp/.java_pidxxx is not secure: file's group should be the current group (which is 1xx7) but the group is 1xx8 when executingjmapcommand and unable to generate a heap dump: Raw [root@myhost /tmp]# jmap -dump:format=b,file=heap.hprof <JAVA_PID> ...