Results 1 to 3 of 3
- 12-23-2011, 10:01 AM #1
Member
- Join Date
- Dec 2011
- Location
- Kathmandu, Nepal
- Posts
- 15
- Rep Power
- 0
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...
- 12-23-2011, 10:49 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 28
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...
- 12-23-2011, 03:49 PM #3
Similar Threads
-
Java Applet hangs
By patki123 in forum Java AppletsReplies: 3Last Post: 04-07-2011, 08:50 AM -
tool hangs
By english in forum SWT / JFaceReplies: 0Last Post: 01-14-2011, 10:09 AM -
How to get a System's total CPU usage percentage using a java program
By userj2ee in forum Advanced JavaReplies: 1Last Post: 01-07-2011, 05:33 AM -
Program hangs
By yuliada in forum Advanced JavaReplies: 2Last Post: 11-11-2009, 03:58 AM -
Discussion: JVM hangs
By Arica in forum Advanced JavaReplies: 5Last Post: 06-29-2009, 04:29 AM
Bookmarks