Re: [monitoring / performance] ThreadMXBean.getCurrentThreadCpuTime()

2008-06-03 Thread nicolas de loof
That's an interesting point. I'll check this and make some benchs for monitoring. Thanks 2008/6/4 Niall Pemberton <[EMAIL PROTECTED]>: > I read the following on Ortwin Glück's blog (via PlanetApache): > > "...do not use differences of the system timers ... With system timers > I mean System.curr

Re: [monitoring / performance] ThreadMXBean.getCurrentThreadCpuTime()

2008-06-03 Thread sebb
On 04/06/2008, Niall Pemberton <[EMAIL PROTECTED]> wrote: > I read the following on Ortwin Glück's blog (via PlanetApache): > > "...do not use differences of the system timers ... With system timers > I mean System.currentTimeMillis() and System.nanoTime(). Rather the > ThreadMXBean.getCurrentTh

[monitoring / performance] ThreadMXBean.getCurrentThreadCpuTime()

2008-06-03 Thread Niall Pemberton
I read the following on Ortwin Glück's blog (via PlanetApache): "...do not use differences of the system timers ... With system timers I mean System.currentTimeMillis() and System.nanoTime(). Rather the ThreadMXBean.getCurrentThreadCpuTime() method should be used." http://www.odi.ch/weblog/postin