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

Suchita Chaturvedi schaturvedi at openjdk.org
Tue Nov 12 17:42:00 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">

This pull request has now been integrated.

Changeset: 666b77fc
Author:    Suchita Chaturvedi <schaturvedi at openjdk.org>
URL:       https://git.openjdk.org/jmc/commit/666b77fcb2d8e9d4ebe02d9026e9cf039f3119c0
Stats:     4 lines in 2 files changed: 0 ins; 1 del; 3 mod

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

Reviewed-by: aptmac

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

PR: https://git.openjdk.org/jmc/pull/608


More information about the jmc-dev mailing list