jdk16_23/24 bug

本文探讨了JPS工具在JDK16版本中遇到的问题,特别是当JVM启动时修改了临时目录路径后,JPS无法正确找到进程号的情况。此问题已作为bug提交至Oracle。

之前的版本中对于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
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值