100% CPU load on guest - Win XP

Discussions related to using VirtualBox on Windows hosts.
StefanF
Posts: 8
Joined: 25. Jan 2010, 22:52
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows
Location: Hamburg, Germany

100% CPU load on guest - Win XP

Post by StefanF »

Hi all,

I installed a VM with Windows XP Pro SP3 and some usual tools like Akrobat, WinZIP and a virus scanner Mcafee.
Now I have 100% CPU load for the whole time making it nearly impossible to work with it.
I am quite sure, that this was not from beginning, but I can*t remember when it started.

Anyone an idea?

Guest has 1 core of the dual-core CPU, 1.5GB RAM
Host is Windows 7 Ultimate.

Thanks in advance.
StefanF
Posts: 8
Joined: 25. Jan 2010, 22:52
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows
Location: Hamburg, Germany

Re: 100% CPU load on guest - Win XP

Post by StefanF »

Update:

It seems, that after Windows is finished with booting, the process "jqs.exe" (Java quick start) claims most of CPU percentage.
Stopping this task with the task manager removes the problem, only approx. 10% CPU usage left.

And: I just installed Jave a few days ago.
gsearle
Posts: 36
Joined: 27. Oct 2009, 16:26
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: 100% CPU load on guest - Win XP

Post by gsearle »

Version Mismatch: Java can't load properly and will consume the CPU if the version of your Virtual Box Guest Additions does not match your version of VirtualBox and you have the 3-D extensions installed. The solution is to uninstall Guest Additions, restart in Safe Mode and reinstall Guest Additions. Just reinstalling without uninstalling won't do it.
larsbjo
Posts: 1
Joined: 3. Mar 2010, 19:08
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: 100% CPU load on guest - Win XP

Post by larsbjo »

I have a similar problem. I tried to fix it by removing the Guest Additions, restart in Safe Mode and install Guest Additions with 3D extensions.
When I reboot to Windows XP i still have the same problem. If I double-click on the Java icon in Control Panel nothing seems to happen. In the task manager javaw.exe turns up using 99% CPU. I just installed the latest Java version (version 6 update 18) earlier today.

I tried removing Guest Additions both from "normal" and Safe Mode but it doesn't resolve the problem. When I start Java after removing the Guest Additions everything works fine.

I guess the current Guest Additions isn't compatible with the latest Java version.

I've heard that returning to version 3.1.2 resolves the problem. Does anyone have a solution that works on version 3.1.4?

(Im running Ubuntu 9.10 with a windows XP sp3 guest.)
hkim823
Posts: 9
Joined: 19. May 2009, 19:51
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Ubuntu 9.04

Re: 100% CPU load on guest - Win XP

Post by hkim823 »

Is it McAfee Enterprise? That's what I'm having trouble getting VirtualBox to play nice with.
hkim823
Posts: 9
Joined: 19. May 2009, 19:51
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Ubuntu 9.04

Re: 100% CPU load on guest - Win XP

Post by hkim823 »

I can report that VirusScan Enterprise 8.7 with Patch 2 or higher seems to fix this issue. It's not perfect, but it's a hell of a lot better. Patch 3 seems even better and more stable.
jeembo@kohl.com
Posts: 2
Joined: 28. Apr 2010, 21:03
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: WinXP

Re: 100% CPU load on guest - Win XP

Post by jeembo@kohl.com »

Hey Gang,

I've been fighting with this issue for quite a while, and today I _finally_ found the culprit! :-D

The 3D Acceleration in VirtualBox seems to be hosed, and this creates problems with
some WinXP applications that want to do DirectX things - _even_ just DirectDraw...! :-o

I've been trying to install/use the latest Sun Java JRE inside my WinXP VM in Vbox,
and I could never get it to work - I couldn't open the Java Console, and I kept
getting all sorts of Java-related processes hanging up, and sucking down 100% CPU,
including java.exe, javaw.exe and javaws.exe, etc.

It turns out, duh, that these silly little Java service programs use *DirectDraw* to
display their GUIs in WinXP, and the 3D Acceleration in Vbox was preventing
these apps from running. The clincher was when I tried to run "dxdiag" (Start->Run...)
and _it_ hung, and complained about Direct3D problems. A-Ha! :-)

So I shut down my WinXP VM, turned off the 3D Acceleration option and rebooted.

Remarkably, *Everything Worked* and I was able to install and run Java stuff,
without sucking down 100% of the CPU...

I hate to say it, because I Love VirtualBox, but the 3D Acceleration stuff seems
to be a real "black eye", it just doesn't work, and breaks lots of other stuff... :-b

Anyway, if you can live without the 3D... Everything else can at least work...? :-}

Hope this helps some other frazzled struggling Vbox users. :-)

All the Best,

Jeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeem ;)
everheul
Posts: 1
Joined: 28. Nov 2009, 00:48
Primary OS: MS Windows 2003
VBox Version: OSE other
Guest OSses: XP, Ubuntu

Re: 100% CPU load on guest - Win XP

Post by everheul »

I run a XP guest with VirtualBox 3.1.6 on Windows 2003 64 bit. Turning off 3D accelleration did not help. However uninstalling the VirtualDisk additions did. Java 1.6.0-20 works fine with 2D and 3D accelleration on.
daflame
Posts: 2
Joined: 27. Aug 2009, 21:10
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows

Re: 100% CPU load on guest - Win XP

Post by daflame »

I also had the same problem. The solution for me was to uninstall the guest additions completely while logged in normally, reboot into safe mode and reinstall the guest additions (including experimental 3D support). This solved the issue and 3D acceleration was back too. I tried just reintalling over top, that didn't fix it. It needed the removal and reboot it seems.
lesliev
Posts: 1
Joined: 15. Oct 2010, 12:14
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP

Re: 100% CPU load on guest - Win XP

Post by lesliev »

I cannot get 3D working no matter what I do. I have just upgraded to 3.2.10, uninstalled the guest additions and installed the new ones in safe mode. No difference. When I set the screensaver to 3D pipes, the screen saver process hangs with 98-100% CPU usage. Any java app, even the control panel app causes a hang with the process consuming maximum CPU.

My guest is Windows XP SP2, my host is Ubuntu 10.04 with a Radeon graphics card. The last three releases of Virtualbox have had this problem, 3D did work as some point in the past, I can't say exactly when.

Reinstalling the guest additions (in safe mode) WITHOUT 3D support does properly disable direct-X and allow Java to run. As far as I remember that didn't work with 3.2.8. VMWare 3D does work on this same hardware.


PS: Virtualbox is amazing, thanks for all the hard work!
jo512
Posts: 1
Joined: 26. Nov 2010, 01:45
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: 3

Re: 100% CPU load on guest - Win XP

Post by jo512 »

folks,

all you have to do is to disable direct3d in java. easiest way is to set the environment-variable J2D_D3D to 'false' (yes, the text, like in 'set J2D_D3D=false'). can be done in control-panel->system properties->environment-variables, system-wide or per user. works on xp and win7.

grz
dandelrabe
Posts: 2
Joined: 10. Mar 2011, 08:24
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Oracle VM Server 2.2

Re: 100% CPU load on guest - Win XP

Post by dandelrabe »

I tried all the things that was done to resolve this issue but javaw still not working for me. I'm using Virtualbox 3.2.8 on Win7, XP as my VM and using Java 1.6.
dj_palindrome
Posts: 8
Joined: 1. Jun 2011, 20:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Knoppix, Debian, Windows XP

Re: 100% CPU load on guest - Win XP

Post by dj_palindrome »

This issue still persists. Regressions in 4.0.8 appear to have in fact made it even worse.

Host: Windows 7 Ultimate x64 SP1; VBOX 4.0.8
Guest: Windows XP Professional x86 SP3; VBOX Guest Additions 4.0.8; JRE Version 6 Update 25
Symptom: Launching Java control-panel applet causes 100% guest CPU usage in javaw.exe
Workaround: Disable Direct3D in Java (set J2D_D3D Environment Variable to 'false')
Vjetar
Posts: 9
Joined: 28. Jun 2011, 12:08
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Debian, MacOS X, Windows server 2008 R2, SuSe, Fedora, Windows 8

Re: 100% CPU load on guest - Win XP

Post by Vjetar »

jo512 wrote:all you have to do is to disable direct3d in java. easiest way is to set the environment-variable J2D_D3D to 'false' (yes, the text, like in 'set J2D_D3D=false'). can be done in control-panel->system properties->environment-variables, system-wide or per user. works on xp and win7.
This solution solved all my problems with Java on guest Windows XP sp3. Host is Windows 7 x64, VirtualBox 4.0.10.
puke76
Posts: 17
Joined: 11. Jun 2009, 02:53
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP SP3

Re: 100% CPU load on guest - Win XP

Post by puke76 »

This is still an issue on 4.0.12 (64 bit Linux host, XP guest) - resolved with the J2D_D3D environment variable fix.
Post Reply