How can I discover the current process ID from Java?

John Zukowski

[When analyzing logs that our Java servlet creates, it would be nice to be able to determine the process id of the underlying Java process that was running at the time. In most operating systems every thread has an associated process with a unique id. Is there no way to get this information from Java?]

Yes, there is no way to get this information from Java (without JNI).

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact