What's the best way to Profile a server for CPU usage? I'd like to find out which plugins are the most CPU intensive, and to be able to make my own plugins more efficient. Im running Java 1.66 on debian. I get a monitor and keyboard for my machine, but that would be a pain. Command line tools appreciated!
I recently discovered jconsole. It's built in, but I'm not sure if in JRE or JDK. It also supports remote processes, but I didn't test how they work. It monitors CPU usage, Heap size, RAM usage, amount of loaded classes and a couple of more things. Sun documentation: http://download.oracle.com/javase/1.5.0/docs/guide/management/jconsole.html (That site says it's in the JDK, but as a developer you should have that anyways )