Am Wed, 15 Jul 2009 09:21:52 +0100 schrieb bugbear:
> nooneinparticular314159 wrote:
>> Ok, but how do I measure CPU usage?
>
> I use top 
>
> (Although, on a modern, multi-core, multi cpu system,
> CPU usage is nowhere near the simple concept it used to be)
>
> In truth, given that Java is designed to be
> system-blind, it would seem that the level
> of access required for what you want is almost
> a direct contradiction of Java's design goals.
>
> BugBear
Hi BugBear,
you can use the ThreadMXBean. For an example see
http://www.javaspecialists.eu/archive/Issue135.html
cu
Martin