JDK-6447323 : (process) Native OS process information and control
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-07-10
  • Updated: 2014-06-06
  • Resolved: 2012-11-15
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
This RFE will propose a new API to augment current JRE interfaces related to native OS processes. Details forthcoming.

(This was mistakenly filed as a request for a specific, and improperly interpreted
subset of the above mentioned plan. The synopsis has been generalized and more details
are forthcoming.
From the user's viewpoint this has nothing to do with operating environment processes (aka "native processes"), thus no "(process)" prefix. The implementation will of course be a different story, depending on the underlying OE (e.g. if it has any non-Java processes).


http://openjdk.java.net/jeps/102 outlines the current plans in this area.

EVALUATION There are also a few interfaces providing some information about the "current process" of a Java program. See, for example, Runtime.maxMemory, Runtime.freeMemory, etc.

EVALUATION JDK 6 has the com.sun.tools.attach API that contains a method to enumerate all JDK 6 processes. See the document at http://java.sun.com/javase/6/docs/technotes/guides/attach/index.html