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

  • Home
  • SEARCH
  • 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 8812223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:33:25+00:00 2026-06-14T03:33:25+00:00

My program is all the time running at max 1% of CPU usage but

  • 0

My program is all the time running at max 1% of CPU usage but sometimes since some event inside the program, that i cannot determine, it has 100% usage for about 5-10 seconds every 15 seconds. It looks like a Thread causing usage spikes but i cant determine the source of that(there are 8000 classes so thats quite hard). It’s hard to test if problem still exists(for example after making some part of code “dead”) because that problem is sometimes starting it’s existence after few hours of Virtual Machine lifetime.

Have you got any idea what would help me find the source of that problem?

  • 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-06-14T03:33:26+00:00Added an answer on June 14, 2026 at 3:33 am

    Without more information, it would be impossible to even attempt a guess at the cause of your problem.

    I would suggest using a profiler, such as VisualVM, to determine which thread causes the issue and potentially what the exact circumstances are when it happens.

    Using a profiler would tell you for example:

    • Which threads are active and taking up CPU resources
    • Whether they are VM or application threads
    • How much time is spent on garbage collection operations – GC is often a source of CPU usage spikes and therefore latency, although I believe that recent JVMs have improved in that regard.
    • Whether there are locking issues
    • …
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a program in C++ that will run all the time in the
I have a program that normally run till it terminates, but under some situations,
I have 15 BackgroundWorers that are running all the time, each one of them
I need to have a parallel function running all the time in my program.
when calling PQconnectdb in the main program all run very well, but if i
I'm writing a program that counts all binary trees with n nodes and height
I want to build a python program that deletes all the photos from my
I need to write a simple program that records all the input from parallel
I am getting this R6034 error when running program that I just updated (and
I am using Django and am making some long running processes that I am

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.