RFR: 8291: JVM PID is shown as N/A however the value is present in JFR

Alex Macdonald aptmac at openjdk.org
Tue Nov 12 14:55:32 UTC 2024


On Tue, 12 Nov 2024 09:25:37 GMT, Suchita Chaturvedi <schaturvedi at openjdk.org> wrote:

> This is a regression found during internal testing.
> 
> PID issue was fixed in [JMC-7506](https://bugs.openjdk.org/browse/JMC-7506). The pid in system process was coming as string and the pid in VM information was coming as long. Hence,  to maintain the uniformity both the considered as string and changes are done to convert JVM PID from IQuantity/Long to String.
> 
> [JMC-8244](https://bugs.openjdk.org/browse/JMC-8244) Turned off all the scientific notations for long attributes. Hence, JVM_PID is no longer IQuantity/Long. Its a Raw number.
> 
> Both these fixes overlapped and PID on JVM Internals screen started showing as N/A.
> 
> ![image](https://github.com/user-attachments/assets/25e9e370-cd53-44a6-a833-b8b24639d644)
> 
> Though the value of PID is present.
> ![image](https://github.com/user-attachments/assets/dbf1b76a-4567-408a-9407-54e54a5b294c)
> 
> 
> After handling the datatypes properly, the issue has been fixed:
> <img width="335" alt="image" src="https://github.com/user-attachments/assets/24154a14-19c0-4594-b40e-74a198835a17">

Marked as reviewed by aptmac (Reviewer).

-------------

PR Review: https://git.openjdk.org/jmc/pull/608#pullrequestreview-2429832045


More information about the jmc-dev mailing list