jdk16_23/24 bug

之前的版本中对于jps需要读取的文件,JVM启动时写入的固定的目录 %TMP%或$TMP下的hsperfdata_usrname/$pid

但是对于jdk16_23/24 bug,这个文件路径根据-Djava.io.tmpdir来写入。但JPS却不知道去哪里查找这个文件,仍然会去

/tmp/hsperfdata_usrname下面查找进程号,所以如果你的JVM启动时修改了Djava.io.tmpdir,那么JPS就会查找出错误的进程号。

 

 

这个问题我已经提交了bug report.提交后一分钟,oracle立即就回信确认这是一个bug,而不象以往要经过测试很久才确认是否是bug.

Dear Java Developer, 
 
Thank you for reporting this issue.
 
We have determined that this report is a new bug and entered the bug into our internal bug tracking system under Bug Id: 7021676.
 
You can monitor this bug on the Java Bug Database at
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7021676.
 
It may take a day or two before your bug shows up in this external database. If you are a member of the Sun Developer Network (SDN), there are two additional options once the bug is visible.
 
1. Voting for the bug
Click http://bugs.sun.com/bugdatabase/addVote.do?bug_id=7021676.
 
2. Adding the report to your Bug Watch list.
You will receive an email notification when this bug is updated.
Click http://bugs.sun.com/bugdatabase/addBugWatch.do?bug_id=7021676.
 
The Sun Developer Network (http://developers.sun.com) is a free service that Sun offers. To join, visit https://softwarereg.sun.com/registration/developer/en_US/new_user.
 
Regards, 
Java Developer Support

 

你可能感兴趣的