Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Javaw.exe needs 99% of CPU time

Hello,

After compiling some files with the Nios II IDE my system (Windows XP, Quartus II 4.2 SP 1, Nios II 1.1) slows down. The task manager shows that javaw.exe allocates 99% of the CPU time and about 50 MB. I searched the web for some information on this problem without a good result. Does anyone have the same problem and perhaps a solution?

Bye,

niosIIuser

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    had the same problem with a library of mine (200+ source files) on the same IDE.

    The library was compiled on the very first attempt after creating the project,

    rebuilding it triggered the 99% CPU hang of javaw.exe.

    Recreating the project helped to compile it once again, but was not a permanent solution,

    so i switched to manual makefile and provided my own, this 'fixed' it.

    Cheers, Roger
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Roger,

    Thank you four your tip. I will do some testing to find out if the problem comes up with every project. Perhaps small projects are not “infected”.

    Regards,

    niosIIuser
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Sven,

    You are right. It seems that the problem depends on the PC/the installation. I installed Nios II on a Notebook and on a Desktop. The Notebook installation has the described problem the other one not. Perhaps the next Nios II update will bring the solution.

    Regards,

    niosIIuser
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello niosIIuser,

    can you check which versions of java and eclipse are installed on the Notebook and the Desktop?

    Regards

    Sven
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    My experiences are, that CPU load has to exceed once a specific upper level that it remains at a fixed limit. In my case (NIOSII IDE 1.1.0 Build 137 / WinXP / 2GB RAM) it remains always exactly at 50%. Compilations with low CPU loads (no modifications) are finished without this failure.

    Mike

    later added:

    I can get the fault immediately by:

    - open project in NIOSII IDE

    - open, alter and save a source file
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    NiosIIuser,

    I've had the same problem with 99% of the CPU time being gobbled up by the program. I had some minor success like Roger by recreating the project and then providing my own Makefile. Also, I found that if I've been working in the IDE for some time (5 to 7 hours) a restart of the board and entire machine seems to fix the problem for some time. It will also speed up the rate files are uploaded to the board. Since I'm using a USB Blaster, after many hours of uploading/resetting the CPU the uploads do take some more time to occur. Right now, that's the best 'solution' I can come up with. I hope this helps out.

    Roddy
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This problem has been bugging me for months, as well. I have posted details here before. Every second 'build' of our program causes the javaw.exe 99% cpu problem.

    AFAIK, the problem is in the Eclipse CDT 'indexer', which is why I'm really disappointed that NIOS IDE 1.1 doesn't include upgraded eclipse components.

    This problem is such a concern that I would not consider NIOS IDE for further projects.

    If you see your CPU stick at 50% rather than 100%, that's likely you have a hyperthreading CPU or a dual processor system. Check the windows task manager - you'll probably see 1 'cpu' @ 100%, and one idle.

    - Roddy P.