Run the attached jar as follows:

- You will need a tools.jar from a JDK distribution (under the lib directory)
- Run as follows:

   java -classpath "localmon.jar;/path/to/tools.jar" \
       com.vmware.localmon.LocalMon [args]
       
The args, if specified, are expected to be Java process PIDs. If none are
specified, then all java processes for that user are printed, in a display
like the following:

ID         HEAP USED  NONHEAP USED  DISPLAY NAME
--         ---------  ------------  ------------
8198        12121200      66465432  org.apache.catalina.startup.BootstrapWrapper
7884        49786168      94836896  com.integrien.analytics.AnalyticsMain
7970        34602288      68749904  com.integrien.alive.collector.CollectorMain

(the display name is the main class name and its arguments; hopefully there's
enough info in there to tell you which process it is).

NOTES:
=====

1. Ownership issues on Linux. 

If you run this as root, then for some reason, the Sun attach code throws
an exception if the process that it's trying to attach to is not owned by
root (these are usually vcops and vco processes, which run as "admin" and "vco"
respectively); so you get errors instead.

To list those out, you have to run it like this, for each of the non-root
users that java processes run as:

   su <username> -c "java -classpath ... ..LocalMon ..."
   
2. To dump out info about specific processes, pass in their PIDs as arguments
after the classname (LocalMon).
