I would like to monitor the number of threads used by a specific process on Linux.
Is there an easy way to get this information without impacting the performance of the proc
Newer JDK distributions ship with JConsole and VisualVM. Both are fantastic tools for getting the dirty details from a running Java process. If you have to do this programmatically, investigate JMX.