Performance Monitoring using perf4j instead of system milli seconds

Solution Verified - Updated -


  • we need to monitor the performance of some methods execution and we don't want to rely on System.currentTimeMillis().
  • A simple log based stopwatch mechanism is enough. So we are trying perf4j.


  • JBoss Enterprise Application Platform (EAP)
  • Java in general

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content