Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1091225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:29:32+00:00 2026-05-16T23:29:32+00:00

I have a CPU intensive multi-threaded Java application and I’m looking for ways to

  • 0

I have a CPU intensive multi-threaded Java application and I’m looking for ways to measure its performance at run time (useful for automation). I tried a few options

System.currentTimeMillis();
System.nanoTime();
ThreadMXBean.getThreadCPUTime();

The first two measure real time. The last measures CPU time for only one thread. I want to measure the CPU-time for all threads spawned by the process.

Before resurrecting an old machine and dedicate it for this task, I would like to see what options I have now.

I run Linux and a platform dependent solution is acceptable, but least desirable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:29:33+00:00Added an answer on May 16, 2026 at 11:29 pm

    Try perf4j: http://perf4j.codehaus.org/
    I recommend using it along with AOP, but it’s not a must. See http://perf4j.codehaus.org/devguide.html#Using_Spring_AOP_to_Integrate_Timing_Aspects for more details on AOP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a hardware, which must run about 256 computationally intensive real-time
I have an application which is CPU intensive. When the data is processed on
I have a cpu intensive task that I need to run on the client.
Say, i have 1 CPU-intensive C++ console application(game server). Do i need to program
I have written a data munging script that is very CPU intensive. It has
I have a collection of PHP scripts that are extremely CPU intensive, juggling millions
I have compiled a .NET application using Any CPU option. This .NET application uses
I have a method that is gobbling up 25% of my cpu time. I
I have a grails app and I need to trigger an cpu-intensive process. I'm
I have a CPU intensive work to do and i don't want to degrade

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.