• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Intellij IDEA running at 98% cpu

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am using Intellij IDEA as my IDE and my application runs on Resin -3.0.9
I hve this problem of IDEA running at 98% - 99% cpu usage now & then because of this my m/c hangs.I hve to go the Task manager & stop the process & then restart idea all over again which is a big pain.


Does anybody know wht the problem is ? I hve already re-installed IDEA but of no use.It still behaves the same way.Please can anybody help.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know what a m/c is, but I assume it's some sort of toy computer. Have a look at this document when you have a chance.

IDEA doesn't do very well when you ask it to do certain tasks on very large files; reformatting them, for example, or even simply parsing and hilighting them if memory is tight and the file is very large. You can edit the batch file that starts IDEA to give IDEA more memory, and that might help, but the best suggestion is just to make your classes smaller. Classes that are big enough to choke IDEA are really crying out to be refactored.
 
kudla ty
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry Ernest,for having used short forms...I am a junior java developer & am used to writing like that.Will definetly try to avoid them.

Now coming back to my problem,most of my classes are 300 - 400 lines long.Is tht too big for idea to handle.You mentioned about a batch file...which one is it ?
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
300-400 lines isn't too bad, no.

I use IDEA on Linux, so I can't tell you exactly what to configure on Windows. Anybody?
 
Saloon Keeper
Posts: 28319
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IntelliJ and Eclipse are noteable for periodically taking time out to do massive garbage collection operations (at least if you're running under Sun's JDK).

I had this issue compounded because some genius put a defective error-detection in the background on my desktop.

If your pain coincides with the times when the sliding bar in the lower right-hand corner of the window is active, the solution is IBM (Install Bigger Memory). This may correspond with a lot of light blinking on your disk drive as Virtual Memory starts thrashing.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tim Holloway:
IntelliJ and Eclipse are noteable for periodically taking time out to do massive garbage collection operations (at least if you're running under Sun's JDK).

I had this issue compounded because some genius put a defective error-detection in the background on my desktop.

If your pain coincides with the times when the sliding bar in the lower right-hand corner of the window is active, the solution is IBM (Install Bigger Memory). This may correspond with a lot of light blinking on your disk drive as Virtual Memory starts thrashing.



Do you run a different JVM for your IntelliJ?

Mark
 
Tim Holloway
Saloon Keeper
Posts: 28319
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:


Do you run a different JVM for your IntelliJ?

Mark



No. But I know IBM has spent a lot of time working with gc mechanisms, so it's possible that people who are using an IBM JVM might not see this behaviour.
 
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic