Performance Monitoring using perf4j instead of system milli seconds

Solution Verified - Updated -

Issue

  • 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.

Environment

  • JBoss Enterprise Application Platform (EAP)
    4.x
    5.x
    6.x
  • Java in general

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.