| Summary: | Eclipse causes Xorg to use 100% CPU Usage | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Steve Ramage <vcolo> | ||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | arunkumar.thondapu, cloutier.jo, david.matejcek, emond.papegaaij, ericwill, fnfhspwanv, gheorghe, giacomo.fonderico, hurzl, john.arthorne, lshanmug, ludovic.smadja, matavulj, matt, parilinsa, pmi, pwebster, Silenio_Quarti, spamme, zanetu, _druid | ||||||
| Version: | 4.2.1 | Keywords: | triaged | ||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Steve Ramage
Thanx Steve. Could you take 2 more thread dumps if you get in that state again? PW Happened again this time while I was editing something in Mylyn Here are a bunch of thread dumps and there full timestamps. Basically I kept hitting it in sequence. -rw-rw-r-- 1 sjr sjr 39721 2013-01-09 03:19:36.849912708 -0800 threaddump10.txt -rw-rw-r-- 1 sjr sjr 43494 2013-01-09 03:19:41.449912532 -0800 threaddump11.txt -rw-rw-r-- 1 sjr sjr 38872 2013-01-09 03:19:48.405912265 -0800 threaddump12.txt -rw-rw-r-- 1 sjr sjr 42332 2013-01-09 03:19:53.445912073 -0800 threaddump13.txt -rw-rw-r-- 1 sjr sjr 39611 2013-01-09 03:19:06.037913886 -0800 threaddump2.txt -rw-rw-r-- 1 sjr sjr 38125 2013-01-09 03:19:12.033913657 -0800 threaddump3.txt -rw-rw-r-- 1 sjr sjr 39395 2013-01-09 03:19:15.433913527 -0800 threaddump4.txt -rw-rw-r-- 1 sjr sjr 39395 2013-01-09 03:19:19.017913390 -0800 threaddump5.txt -rw-rw-r-- 1 sjr sjr 39375 2013-01-09 03:19:21.205913306 -0800 threaddump6.txt -rw-rw-r-- 1 sjr sjr 39289 2013-01-09 03:19:23.261913227 -0800 threaddump7.txt -rw-rw-r-- 1 sjr sjr 39374 2013-01-09 03:19:25.377913146 -0800 threaddump8.txt -rw-rw-r-- 1 sjr sjr 39395 2013-01-09 03:19:29.557912986 -0800 threaddump9.txt Created attachment 225375 [details]
THread dumps 2 through 13
I have the same problem on my OpenSUSE 12.2 (x86). Eclipse IDE for C/C++ Developers Version: Indigo Service Release 2 Build id: 20120216-1857 I have the same issue with a kubuntu 12.10 I have the same problem with Lubuntu 12.10. I'm using Eclipse Juno. The problem is intense, every dozen of minutes I have to restart the IDE as it becomes extremely slow opening dialogs. Xorg tops the process list with up to 90% CPU usage share. I have NVIDIA graphics and I experimented with different graphics drivers, but nothing helped. As Eclipse is my primary tool at work, I'm considering switching to Windows OS. Seems that this issue linked with Nvidia card somehow. I have identical kubuntu setup on my Intel HD 4000 powered laptop and the same eclipse. On laptop it works perfectly. As the original bug poster, I disagree as my laptop is an Intel HD Graphics 4000. Hmm.. I have a nVidia video card too. (2 display configuration) I also have the problem with other aplications. Like Wireshark. Can it be some bug in GTK? Someone should to profile a x11 server I wonder if it's a dual display issue, as I run my laptop in dual displays. I also often change my display layout. I wonder if that is the common theme. I have double display desktop box too. And as I said, when I use laptop with single display this issue seems not reproduce. Additionally, I have noticed that this effect appears when I select all projects in Package Explorer. For example I select all projects and the do the right mouth click and context menu appears extremely slowly. Xorg uses 10%-11% of my 4-core i7 processor, e.g. occupies one core for 100% for a while. Guys, Seems I fixed the problem (for me) I switched to another GTK Style. (oxygen-gtk -> Adwaita) OpenSUSE 12.2 (x86) Happens on Kubuntu 12.10 amd64 for me. Eclipse package version = 3.8.0~rc4-1ubuntu1 I believe this has something to do with XML editor plugin. I realized this problems only happens when I am opening XML files. Can anyone confirm this ? (In reply to comment #15) > I believe this has something to do with XML editor plugin. > I realized this problems only happens when I am opening XML files. Can > anyone confirm this ? The issue definitely happens during Java development as well, it is not restriced to the XML editor. BUT I have observed the issue for the first time when doing XML editing so the probability of the issue appearing is maybe higher with the XML editor. With Java, I typically suffer from it at least once per hour. Only restarting Eclipse fixes it then. It definitely happens only with oxygen-gtk theme. It's completely disappearing when Adwaita theme is used. It occurs with GTK and Classic at least, but it is affected by many things. The problem comes sooner when (ordered by the effect): - too many open projects (using m2e) - doing many refactorings - Eclipse can slowdown after several minutes when moving classes. Finally the preview hangs. - using diff tool, too often comparing files, changes, anything - editing XML files - using lower heap limit - but the dependency is not linear, very high heap does not help, you can even have free memory in system. End even when you have 8GB RAM, 3 GB free, 1,5GB heap limit, finally system swap reports lower and lower free space (cca 5 MB/s), CPU is used mostly by Xorg (4core i5 goes to 20%), disk temperature goes high and system response is very slow. Still having same free RAM. After killing the Eclipse with SIGTERM everything goes normal and even Eclipse starts normally and I can do the same thing without any problem. It seems it is somehow related to opening and closing windows and tabs, GUIs and related things. It seems that after closing a window (or tab, etc.) the content is not properly disposed. Hi all, the problem is also in Eclipse 4.3, but today I have found this bug: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/238629 I have changed the file /etc/X11/xorg.conf - added the second Option and Eclipse did not crash or hang from the system restart (Kubuntu 13.10 64bit). UI is also much faster and does not cause CPU load (which is pretty low). Section "Device" Identifier "Default Device" Option "NoLogo" "True" Option "AccelMethod" "xaa" EndSection I hope it will stay so good as it is now also tomorrow :-) I want to share with you that I have completely eliminated this problem by switching from the WTP XML editor plugin to XMLBuddy plugin. It's been months now that I'm using XMLBuddy and the issue has never occurred again. Ubuntu 14.04 Zend Eclipse for PHP Developers Version: 3.2.0 For me bug happen opening javascript files. Disabling javascript validator have no effect. Editing javascript file take 100% CPU and after 10 minutes eclipse crash I'm also seeing this behaviour with CDT in Luna under Ubuntu 12.04. This is with GWT classic (i.e. SWT_GTK3=0) to work around other bugs. I'd be happy to post any extra information if needed. Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800 This has been plaguing me for a long time, it comes and goes, and I've narrowed it down to this: When using the c++ text editor if there is any kind of markup on the screen, the responsiveness and the typing entry goes incredibly slow and there is a LOT of cursor flicker. If the indexer detects an error and hilights something, or if there's an #ifdef that makes code unused, even highlights from the search box. anything that causes any kind of markup to the text in the displayable area of the screen makes it go slow. What appears to be happening is that all that markup is getting updated every time I type a key. Probably it would be better if that work got queued up until the typing stopped, because doing lots of updates on every keypress is killing the cpu. I have a 4k monitor for my main screen and a second regular 1080p monitor as my seconday, and I use xubuntu, not ubuntu. Hope it helps. Please help though because eclipse becomes unusable, when it gets cranky like this. xubuntu 16.04 Eclipse IDE for C/C++ Developers Version: Mars.2 Release (4.5.2) Build id: 20160218-0600 (In reply to Stu Mising name from comment #23) > This has been plaguing me for a long time, it comes and goes, and I've > narrowed it down to this: > > When using the c++ text editor if there is any kind of markup on the screen, > the responsiveness and the typing entry goes incredibly slow and there is a > LOT of cursor flicker. > > If the indexer detects an error and hilights something, or if there's an > #ifdef that makes code unused, even highlights from the search box. anything > that causes any kind of markup to the text in the displayable area of the > screen makes it go slow. > > What appears to be happening is that all that markup is getting updated > every time I type a key. Probably it would be better if that work got queued > up until the typing stopped, because doing lots of updates on every keypress > is killing the cpu. > > I have a 4k monitor for my main screen and a second regular 1080p monitor as > my seconday, and I use xubuntu, not ubuntu. Hope it helps. Please help > though because eclipse becomes unusable, when it gets cranky like this. > > xubuntu 16.04 > > Eclipse IDE for C/C++ Developers > Version: Mars.2 Release (4.5.2) > Build id: 20160218-0600 Please try a 4.8 I-build, it's possible you are experiencing a Webkit1 issue. Closing this ticket now. Please re-open this ticket if the issue is reproducible on 4.8 with GTK3.22. This still happens with: eclipse.buildId=4.9.0.I20180906-0745 org.eclipse.swt.internal.gtk.theme=Breeze org.eclipse.swt.internal.gtk.version=3.22.30 I'm in a virtualbox vm, with two virtual screens 1920x1080, running on archlinux. I mostly use java development tools which include java code, jsp and xml file editors. I noticed that reducing the windows does lower the cpu from kwin and Xorg. It takes a few hours before those two processes use about 20% cpu each. Considering my virtual box setting (4cpu available at 80%) I'd say they both use completely one core. (In reply to Jonatan Cloutier from comment #26) > This still happens with: > eclipse.buildId=4.9.0.I20180906-0745 > org.eclipse.swt.internal.gtk.theme=Breeze > org.eclipse.swt.internal.gtk.version=3.22.30 > > I'm in a virtualbox vm, with two virtual screens 1920x1080, running on > archlinux. I mostly use java development tools which include java code, jsp > and xml file editors. I noticed that reducing the windows does lower the cpu > from kwin and Xorg. It takes a few hours before those two processes use > about 20% cpu each. Considering my virtual box setting (4cpu available at > 80%) I'd say they both use completely one core. Does it happen with a blank (fresh) workspace? |