I’m learning how to use jps, and I find this page: jps. It says that:
The lvmid is typically, but not necessarily, the operating system’s process identifier for the JVM process.
So I’m wondering in what situation jps is not the operating system’s process identifier?
Anyone would help?
Do all operating systems have the notion of a “process ID”? Maybe not. Some of them may even represent process IDs, not as Integers, but in an entirely different form. Process IDs are a platform specific concept and could change in the future. Java is designed to be platform-independent. This is why it may not always work.
However, on all major operating systems currently in use today, the
lvmidshould always return the operating system’s process ID for the JVM process.