1

I am using IntelliJ IDEA compiler for Java programming on my MacBook Pro 2015 Retina (Yosemite). When I run some Java program in my activity monitor appears Java process and takes 100+% of CPU. The fans start to run loud since it's starting to heat up. Sometimes there are 5 and more same Java processes and couple of them are using 100%. Those processes are turned off when I quit IntelliJ or when I quit them manually.

Can somebody tell me why is this happening, or how to fix this if it is possible to fix?

  • How can you use above 100%? – Rob Apr 15 '16 at 19:43
  • @Rob It is using 100 % and more since each core is 100% I guess – vucko95 Apr 15 '16 at 19:53
  • Which Java program is it multi threaded. Basically it sounds like your computer is doing exactly what it should do. Why do you think there is an issue? – user151019 Apr 15 '16 at 20:56
  • @Mark actually I didn't express myself correctly. When I run compiler and there is error in code (exception etc.) then it adds java process and it the processor temperature goes up to 70 degrees Celsius, until fans star to kick at max speed until I quit those process. that's why I think it is unusual. – vucko95 Apr 15 '16 at 21:02
  • What do you mean it adds java process? Surely IntelliJ and your program were already running (still seem normal though) – user151019 Apr 15 '16 at 21:06
1

You're running a program. It's using resources. If you want a program to run, it runs using any resources it needs as available. This is the intended behavior.

If you want to limit the resources available to your IDE, you can do that. Limiting the resources provided is pretty easy (provided you're willing to work with a little bit of third-party software.) You can use cputhrottle to limit the usage at the system level (better explained here.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .