Results 1 to 3 of 3
  1. #1
    bikashlama is offline Member
    Join Date
    Dec 2011
    Kathmandu, Nepal
    Rep Power

    Default CPU Usage 100% and hangs the system - HELP!!!

    I am working on a JAVA SE Application. This application performs multiple activities at run time like checking records and inserting multiple records simultaneously. At the loading time the application works fine and doesn't consume CPU usage but when it starts working with database it consumes CPU usage upto 100% and becomes hang and due to this it block second operation to occur too. Any solution plz...

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: CPU Usage 100% and hangs the system - HELP!!!

    Profile it.
    Take several heap dumps and see what's going on in the memory.
    Have a look inside and see what is going on with garbage collection.

    Possibly the first thing, though, is debug it and step through to ensure you're not in a permanent loop somewhere...

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Rep Power

    Default Re: CPU Usage 100% and hangs the system - HELP!!!

    sounds like you have an infinite loop, or a blocked operation that is sitting and waiting for something. Perhaps deadlock. Have you line by line debugged it to see which line it hangs on?

Similar Threads

  1. Java Applet hangs
    By patki123 in forum Java Applets
    Replies: 3
    Last Post: 04-07-2011, 08:50 AM
  2. tool hangs
    By english in forum SWT / JFace
    Replies: 0
    Last Post: 01-14-2011, 10:09 AM
  3. Replies: 1
    Last Post: 01-07-2011, 05:33 AM
  4. Program hangs
    By yuliada in forum Advanced Java
    Replies: 2
    Last Post: 11-11-2009, 03:58 AM
  5. Discussion: JVM hangs
    By Arica in forum Advanced Java
    Replies: 5
    Last Post: 06-29-2009, 04:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts