osx - Java api for mac environment -


i’m wondering if there native java api (jars) mac allows details on process opened socket process.

the scenario:

  1. i’m running process (a daemon) on same machine process need details on.
  2. i have details of socket of remote process opened connection me.
  3. i want pid , client binary (jar run jvm, regular os binary , others) information, such as: a. pid b. path c. os user running process.

i can perform action lsof prefer use java solution.

added: know other vendors created specific java libraries specific platforms.

thanks!


Comments