Xorg sometimes seems to use up CPU and only reboot will solve problem
Im running a Dell E6400 with 10.04-64bit desktop. I have a site on my work intranet which basically tries to run a java app but due to some java version problem it doesnt run correctly. Anyway, firefox spawns this java process which cranks up to 100% CPU, I qui firefox and also kill the java process so you would think that all should return to normal. However, for a while after it seems the Xorg process starts to eat up a lot of CPU% and continues to do so, slowing down everything thats running on the desktop.
I usually run compiz by selecting the regular "System --> Appearance --> Effects", and tried turning that off to "None". This does not seem to have any effect however. The only way I can workaround this problem is to either:
1. Wait for some time for the CPU% to settle down (this can take even an hour)
2. Shutdown and startup the PC
Heres some details on my system:
=======
sudo lshw -C display
*-display:0
description: VGA compatible controller
product: Mobile 4 Series Chipset Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 07
width: 64 bits
clock: 33MHz
resources: irq:30 memory:
*-display:1 UNCLAIMED
description: Display controller
product: Mobile 4 Series Chipset Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2.1
bus info: pci@0000:00:02.1
version: 07
width: 64 bits
clock: 33MHz
resources: memory:
... some other output from lshw...
homer
description: Portable Computer
product: Latitude E6400
vendor: Dell Inc.
serial: B97174J
width: 64 bits
capabilities: smbios-2.4 dmi-2.4 vsyscall64 vsyscall32
configuration: boot=normal chassis=portable uuid=44454C4C-
*-core
description: Motherboard
product: 0HT027
vendor: Dell Inc.
physical id: 0
serial: .B97174J.
*-firmware
vendor: Dell Inc.
physical id: 0
version: A11 (12/17/2008)
size: 64KiB
capacity: 1664KiB
*-cpu
product: Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz
vendor: Intel Corp.
physical id: 400
bus info: cpu@0
slot: Microprocessor
size: 800MHz
capacity: 800MHz
width: 64 bits
clock: 266MHz
*-cache:0
size: 128KiB
*-cache:1
size: 6MiB
clock: 66MHz (15.0ns)
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- ByteSoup
- Solved:
- 2011-11-03
- Last query:
- 2011-11-03
- Last reply:
- 2010-07-20
This highly experimental PPA may help, yu will get a later video driver and a later xorg version which may help:
sudo add-apt-repository ppa:xorg-
Use as a last ditch only but it may work. You could try it now butt if its bad you will need to reinstall.
| ByteSoup (bytesoup) said : | #2 |
Thanks. When you say I'll need to re-install, you mean if this PPA breaks something? I cant really afford to take this risk as this is my daily use machine. I could install and boot from a USB drive but it seems a lot of work, although I dont mind doing this.
I would like to know first if there were some easier way of diagnosing this, perhaps there would be something in the logs, could I cranks up some logs to debug level? Also coudl I exit to a TTY session and kill Xorg and restart?
Its a bit risky and is just VERY bleeding edge xorg and VERY bleeding edge intel drivers. It may work or it may REALLY break stuff.
It will upgrade the packages so a restart will not fix it
| ByteSoup (bytesoup) said : | #4 |
Thank you, but before I start using PPAs isnt there a recommended way to back out of the desktop, kill my Xorg process and restart things without rebooting? As I said, the machine runs fine if I avoid these certain sites and running these dodgy java apps (unintentionally of course)
| ByteSoup (bytesoup) said : | #5 |
I hit the problem again this morning and I killed the "X" process which had the effect of starting the desktop. However it seemed that the "Xorg" process after everything started up again just went up to around 80% CPU and the whole desktop was running very slowly. Is there anyway I can get around this, without shutting down and restarting?
| Launchpad Janitor (janitor) said : | #6 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
| ByteSoup (bytesoup) said : | #7 |
Hi, I tried the following:
sudo service gdm stop
sudo service x11-common stop
Then the same in reverse to start
sudo service x11-common start
sudo service gdm start
Does this seem like a feasible workaround?
| ByteSoup (bytesoup) said : | #8 |
Argh! This is really annoying. The workaround above does work sometimes but this time i used "startx" to restart the session it seems that X11 is hanging onto something even on a restart and even when it restarted gdm the desktop was very very sluggish. If you wait some time before restarting say 10 mins or so, it seems to be responsive again.
Perhaps if someone could point me to logs to check, but it seems I cannot find anything obvious under /var/logs.
I know here in the Linux word we pride ourselves on not having to restart all the time to recover from errors. Coming from a windows background initially I was used to restarting, since I used Linux its been refreshing not having to restart so much, but it seems im regressing and its making me sad :-(
Can anyone help with some advice?
| John Stevenson (jr0cket) said : | #9 |
Have you tried running under a different username? This could help identify if it something with the account or the system
You create a new user, or rename your usual account folder (/home/
If this action makes a difference, then maybe there is a configuration setting in your account folder that was causing the problem.
| ByteSoup (bytesoup) said : | #10 |
@JRocket, I gave this a go, added a new user, rebooted and logged in. I connected to my work VPN and visited the site which cause the problem. All seemed ok, I did see a java process ramping up in CPU useage but then it dropped again. I then added "noscript" to firefox as its an add-on i always use. I then was able to reproduce the problem
So, now I know the elements that seem to cause it, however as much as I could avoid this one site (and I do) I could easily stumble on another site. I need to know how to effectively corner this problem, reset or kill whatever is responsible for making Xorg eat up all the CPU and then resume my desktop session.
Note: simply restarting the X server does not seem to solve this problem. If stop X wait about 15 minutes and then start the X server things seem to resume ok. As you can see its quicker to reboot.
| ByteSoup (bytesoup) said : | #11 |
Perhaps this was indirectly fixed but im no longer seeing this issue... many updates later, so to all the developers, thank you! :-)

