commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [monitoring / performance] ThreadMXBean.getCurrentThreadCpuTime()
Date Wed, 04 Jun 2008 01:36:32 GMT
On 04/06/2008, Niall Pemberton <niall.pemberton@gmail.com> 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.getCurrentThreadCpuTime() method should be used."
>
>  http://www.odi.ch/weblog/posting.php?posting=495
>
>  Thought it probably has relevance to the monitoring and performance
>  sandbox components.

Might be a good idea for tests that are CPU-bound, but not so sensible
for ones that are IO-intensive or where the IO performance is
important.

>  Niall
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>  For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message