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 7511079
In Process

The Archive Base Latest Questions

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

My java program takes 30-70% of CPU usage and 3% of Memory (I use

  • 0

My java program takes 30-70% of CPU usage and 3% of Memory (I use TOP linux function).
I run a 32bits version of java.

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)

Is there a way to make it faster ? Some optimization to un the java software ? (I don’t have the source code, so no source code optimization is possible).

Installing a 64bits of java would help ? some other optimization tricks ?

  • 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-29T23:26:33+00:00Added an answer on May 29, 2026 at 11:26 pm

    Hard to tell based on your description, but here are few tips:

    1. Add:

      -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
      

      JVM options. Frequently running GC may cause excessive CPU usage.

    2. Using top and jstack you can easily discover which Java threads are consuming most of the CPU.

    3. Finally plug in some Java profiler (they don’t require sources) and examine results.

    However wants you discover which threads/methods (stack traces and profiling will help you) consume the CPU, you cannot do anything more without the source code and ability to tweak it.

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

Sidebar

Related Questions

Inside a Perl script, I want to run a Java program that takes in
I recently inherited a small Java program that takes information from a large database,
We have a Java program run as root on Unix, that therefore can read
I have a java program that generates an HTML file. The Java program takes
I'd like to write a Java program that takes arbitrary data and stores it
How do you write a java program using a recursive method that takes in
On Mac OSX 5.8 I have a Java program that runs at 100% CPU
Possible Duplicate: Asynchronous shell exec in PHP i need to run a java program
I'm making a Java program that takes some text as input, and has to
I have a command-line java program that takes a password and it's verification from

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.