You are not logged in.

#1 2011-07-21 22:53:56

pacman22
Member
Registered: 2011-06-14
Posts: 5

Java apps using 100% CPU

Hey, I'm just wondering if anyone has had a problem with java apps, like yahoo games for instance uses 100% cpu and causes my laptop to overheat very quickly.

If anyone has any suggestions I'd really appreciate it.

Offline

#2 2011-07-21 23:05:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Java apps using 100% CPU

An example or two wouldn't hurt. Maybe I test some of them myself, but tell me at least which ones to install :-)

Offline

#3 2011-07-21 23:09:25

pacman22
Member
Registered: 2011-06-14
Posts: 5

Re: Java apps using 100% CPU

One of them was yahoo games. http://games.yahoo.com/

I've tried both OpenJDK and JRE, both with the same results

Offline

#4 2011-07-21 23:12:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Java apps using 100% CPU

Ah, you mean that kind of games.
But I've clicked the first one http://games.yahoo.com/game/papas-taco-mia and it's a flash game, not a java one. Flash on Linux suck so yeah, maxing out your cpu is pretty likely.

Can you please tell me which of them use java?

Last edited by karol (2011-07-21 23:15:57)

Offline

#5 2011-07-21 23:19:46

pacman22
Member
Registered: 2011-06-14
Posts: 5

Re: Java apps using 100% CPU

Oh sorry, it's Yahoo Pool.

Multiplayer > Pool

Offline

#6 2011-07-22 00:29:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Java apps using 100% CPU

Sorry it took so long, the Yahoo CAPTCHA is damn hard ;P

The cpu went straight to 100% when the window with the java applet opened.

Offline

#7 2011-07-22 00:36:24

pacman22
Member
Registered: 2011-06-14
Posts: 5

Re: Java apps using 100% CPU

So I'm not the only one with this problem?

Does anyone have a solution to this? It's annoying.

Offline

#8 2011-07-22 11:52:40

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Java apps using 100% CPU

cpulimit?

Offline

#9 2011-07-22 12:38:46

wottam
Member
From: Spain
Registered: 2007-08-31
Posts: 59

Re: Java apps using 100% CPU

I have performance problems with any single Java application, indeed. I work as a Java developer and programs being responsive on Ubuntu machines are slow on my Archlinux laptop. My laptop, by the way, is much more powerful than the others. The same thing has happened to me on other Archlinux machines, like the ones I have at home. I have never been able to figure out what the problem may be, though.

Offline

#10 2011-07-22 12:57:50

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Java apps using 100% CPU

I just gave yahoo pool a (rather short) try whithout cpu load problem using sun java's jdk. The load remained fairly low around 30 percent on both athlon kernels using midori in openbox on a nVidia based system.

$ uname -a
Linux bpmachine 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 14:57:41 CEST 2011 x86_64 AMD Athlon(tm) Dual Core Processor 4050e AuthenticAMD GNU/Linux

I have no idea, however, what might happen on longer runs.

Last edited by bernarcher (2011-07-22 12:59:48)


To know or not to know ...
... the questions remain forever.

Offline

#11 2011-07-22 19:38:06

pacman22
Member
Registered: 2011-06-14
Posts: 5

Re: Java apps using 100% CPU

Strange.

Any ideas what the cause could be? I'm still having problems.

Offline

#12 2011-07-31 09:39:31

vyktor
Member
From: Slovakia
Registered: 2011-06-07
Posts: 12

Re: Java apps using 100% CPU

Hi, I have very similar problem with netbeans, sometimes it works just fine and sometimes (most of the time) it starts using 100% CPU (ok, from 83% to 136% doing absolutely nothing, no process on background... nothing).

Any ideas how to trace the problem?

Offline

#13 2011-07-31 09:48:20

vyktor
Member
From: Slovakia
Registered: 2011-06-07
Posts: 12

Re: Java apps using 100% CPU

Strace says:

futex(0x7f26159c29d0, FUTEX_WAIT, 19239, NULL

In jconsole I see

org.netbeans.Main

using 100% cpu (actually it reports 56%, cause it's dual core machine). There's 23 threads and I can't figure out which one does this.

Offline

#14 2011-08-24 08:55:28

wottam
Member
From: Spain
Registered: 2007-08-31
Posts: 59

Re: Java apps using 100% CPU

I have managed to get an increase in performance by installing the Java distribution downloaded from the Oracle site. Anyone willing to give that a try?

Offline

Board footer

Powered by FluxBB