
-----------------------------------
turboliux
Sat Dec 17, 2005 3:37 pm

java.exe uses 100% CPU!!!
-----------------------------------
i have a big problem here, this is makes me insane!!! :evil: 
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

-----------------------------------
turboliux
Mon Dec 19, 2005 1:14 pm


-----------------------------------
so does anyone know the reason?

-----------------------------------
wtd
Mon Dec 19, 2005 1:41 pm


-----------------------------------
Not a clue.

-----------------------------------
MysticVegeta
Mon Dec 19, 2005 2:38 pm


-----------------------------------
A list of running processes would help.

-----------------------------------
turboliux
Mon Dec 19, 2005 3:31 pm


-----------------------------------
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

-----------------------------------
wtd
Mon Dec 19, 2005 4:27 pm


-----------------------------------
What happens if you run something like a simple Swing app via the command-line tools?

-----------------------------------
turboliux
Tue Dec 20, 2005 2:25 am


-----------------------------------
well, doesnt work with command line, but works with JCreator

-----------------------------------
wtd
Tue Dec 20, 2005 3:22 am


-----------------------------------
What doesn't work from the command-line?

-----------------------------------
turboliux
Tue Dec 20, 2005 2:40 pm


-----------------------------------
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.

-----------------------------------
wtd
Tue Dec 20, 2005 2:44 pm


-----------------------------------
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.

-----------------------------------
MysticVegeta
Tue Dec 20, 2005 6:38 pm


-----------------------------------
Maybe the exe priority is realtime high

-----------------------------------
turboliux
Wed Dec 21, 2005 4:39 pm


-----------------------------------
mys system variable PATH:

%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 :D[/code]

-----------------------------------
wtd
Wed Dec 21, 2005 4:43 pm


-----------------------------------
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.

-----------------------------------
turboliux
Wed Dec 21, 2005 5:58 pm


-----------------------------------
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.

-----------------------------------
wtd
Wed Dec 21, 2005 6:00 pm


-----------------------------------
%SystemRoot%\System32\Wbem:%SystemRoot%\Program Files\Java\jdk1.5.0_02

That colon does look a tad suspicious.

-----------------------------------
turboliux
Thu Dec 22, 2005 9:27 am


-----------------------------------
yo! you know what? can you just 'paste' your PATH list? that would be usefull...

-----------------------------------
wtd
Thu Dec 22, 2005 2:16 pm


-----------------------------------
Into the editor field 2000/XP provide?  Yes.  :)

-----------------------------------
turboliux
Fri Dec 23, 2005 4:37 am


-----------------------------------
i mean, can you show me what do you have on your PATH list?

-----------------------------------
wtd
Fri Dec 23, 2005 6:42 am


-----------------------------------
My path variable is quite lengthy asI work with a number of command-line utilities.  The entry for Java looks like this:

C:\Program Files\Java\jdk1.5.0_05\bin

-----------------------------------
turboliux
Fri Dec 23, 2005 10:18 am


-----------------------------------
i just deleted that extra line
%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.
