Computer Science Canada

java.exe uses 100% CPU!!!

Author:  turboliux [ Sat Dec 17, 2005 3:37 pm ]
Post subject:  java.exe uses 100% CPU!!!

i have a big problem here, this is makes me insane!!! Evil or Very Mad
i have netbeans 4.1 and J2SE update 6.
whenever i start netbeans and try to open a project the CPU procentage skyrockets and then i cant do anything, it makes me sick!
i tryed to reinstall netbeans many times, reinstalled J2SE too, but nothing helped.

my stats:
AMD Sempron 1.5GHz,
512MB RAM,
GeForce4 MX 440 64MB

Author:  turboliux [ Mon Dec 19, 2005 1:14 pm ]
Post subject: 

so does anyone know the reason?

Author:  wtd [ Mon Dec 19, 2005 1:41 pm ]
Post subject: 

Not a clue.

Author:  MysticVegeta [ Mon Dec 19, 2005 2:38 pm ]
Post subject: 

A list of running processes would help.

Author:  turboliux [ Mon Dec 19, 2005 3:31 pm ]
Post subject: 

you think i didnt hit those Alt+Ctrl+Del ????
well, there is only one more thing i noticed, there are TWO "nbexec.exe" running whenever i run netbeans 4.1

Author:  wtd [ Mon Dec 19, 2005 4:27 pm ]
Post subject: 

What happens if you run something like a simple Swing app via the command-line tools?

Author:  turboliux [ Tue Dec 20, 2005 2:25 am ]
Post subject: 

well, doesnt work with command line, but works with JCreator

Author:  wtd [ Tue Dec 20, 2005 3:22 am ]
Post subject: 

What doesn't work from the command-line?

Author:  turboliux [ Tue Dec 20, 2005 2:40 pm ]
Post subject: 

any java code, any swing app made with java, any *.java file doesnt work from command-line. but do you really think thats the problem? i told you, java code compiles and runs with JCreator.

Author:  wtd [ Tue Dec 20, 2005 2:44 pm ]
Post subject: 

Does it have the 100% CPU usage problem from JCreator?

And yes, you should absolutely be familiar with how to use the command line tools. I suspect you just need to provide a path to the Java tools in your PATH environment variable.

Author:  MysticVegeta [ Tue Dec 20, 2005 6:38 pm ]
Post subject: 

Maybe the exe priority is realtime high

Author:  turboliux [ Wed Dec 21, 2005 4:39 pm ]
Post subject: 

mys system variable PATH:
Quote:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem:%SystemRoot%\Program Files\Java\jdk1.5.0_02;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\Executive Software\Diskeeper\;C:\Program Files\Java\jdk1.5.0_06\bin


and yet it doesnt work from command-line,

with JCreator there is not 100% CPU, it runs peacufully Very Happy[/code]

Author:  wtd [ Wed Dec 21, 2005 4:43 pm ]
Post subject: 

If it's Windows 98 or ME, you'll have to restart your computer before PATH changes take effect. If Windows 2000/XP you'll have to make sure you open a new shell after you change the PATH.

Of course, you may well have done this, but covering the bases.

Author:  turboliux [ Wed Dec 21, 2005 5:58 pm ]
Post subject: 

lol, i did that like a week ago when i reinstalled jdk, but no change since. maybe it has to do with the repetition of those directiories in my PATH line, but i remmember that /bin should be listed, so... donno what to do.

Author:  wtd [ Wed Dec 21, 2005 6:00 pm ]
Post subject: 

code:
%SystemRoot%\System32\Wbem:%SystemRoot%\Program Files\Java\jdk1.5.0_02


That colon does look a tad suspicious.

Author:  turboliux [ Thu Dec 22, 2005 9:27 am ]
Post subject: 

yo! you know what? can you just 'paste' your PATH list? that would be usefull...

Author:  wtd [ Thu Dec 22, 2005 2:16 pm ]
Post subject: 

Into the editor field 2000/XP provide? Yes. Smile

Author:  turboliux [ Fri Dec 23, 2005 4:37 am ]
Post subject: 

i mean, can you show me what do you have on your PATH list?

Author:  wtd [ Fri Dec 23, 2005 6:42 am ]
Post subject: 

My path variable is quite lengthy asI work with a number of command-line utilities. The entry for Java looks like this:

code:
C:\Program Files\Java\jdk1.5.0_05\bin

Author:  turboliux [ Fri Dec 23, 2005 10:18 am ]
Post subject: 

i just deleted that extra line
Quote:
%SystemRoot%\System32\Wbem:%SystemRoot%\Program Files\Java\jdk1.5.0_02;

now it seems to work better, but still java.exe rises to high when I oopen project.


: