Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Very frequent freezes with 100% cpu usage.(rendering it unusable on a clean xp installation)
Very frequent freezes with 100% cpu usage. [message #548292] Wed, 21 July 2010 07:45 Go to next message
Onur Safak is currently offline Onur Safak
Messages: 4
Registered: July 2010
Junior Member
Hey guys;

Trying to move to PDT. However I'm having hard time with it since the first installation, a few days ago. I have a clean XP installation just for PDT.

In the beginning I could barely run it for a minute till it crashed with a 'permgen space' error. Found we need to add '-xx:MaxPermSize=256m' to the ini, and this fixed those permgen errors. This should be written as a warning to the download page until it's fixed, as it's impossible to run it without this modification.

Now permgen errors are gone, it runs for more minutes, 5 or 10, then it suddenly stops responding and uses 100% cpu. Last time I had just opened it, and I was taking a look at 'preferences', and it stopped responding when I clicked on 'remote systems'. Clicking on it just didn't have an effect, so I don't know whether it freezed by the click, or before clicking. This happens very frequently and it barely runs for 5-10 minutes.

I don't know how this happens, it's perhaps the most clean and up-to-date XP system without involving beta releases, and it's a very common configuration, really strange. I guess there are people who can currently use it on XP without this problem. Thought it could be the java runtime; perhaps it's a new version and people use older versions, but I didn't try an older version as I was unsure how older should I go.

XP pro x86 sp3, up-to-date, no firewall
current sun java runtime 1.6.0_21
current PDT (Eclipse IDE for PHP Developers 1.3.0.20100617-0520)
core2-duo 3ghz, 1.5g ram (also tested with 2.5g)


Any help will be appreciated, thank you!
Re: Very frequent freezes with 100% cpu usage. [message #551360 is a reply to message #548292] Fri, 06 August 2010 03:17 Go to previous messageGo to next message
Maarten Kossen is currently offline Maarten Kossen
Messages: 4
Registered: June 2010
Junior Member
I'm having exactly the same problem, but on Ubuntu Lucid x64, both with OpenJDK and Sun's Java. Eclipse Helios is thus absolutely useless. After some weeks of discovering various bugs I wonder if anybody's ever even tested this or if it was just packed and offered as a download.
Re: Very frequent freezes with 100% cpu usage. [message #551426 is a reply to message #548292] Fri, 06 August 2010 07:43 Go to previous messageGo to next message
Onur Safak is currently offline Onur Safak
Messages: 4
Registered: July 2010
Junior Member
Well, tried older java runtimes, but the latest one is required by Helios.

Looks like it gets better if you wait for several minutes when you run it, before clicking anything. Then work very slowly and don't use the interface rapidly..
Re: Very frequent freezes with 100% cpu usage. [message #552769 is a reply to message #548292] Fri, 13 August 2010 09:15 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 17
Registered: June 2010
Junior Member
i have the same issue...

i can work for [random number] minutes, then everything freeze.

btw with previous versions of Eclipse everything was ok

Sad
Re: Very frequent freezes with 100% cpu usage. [message #554610 is a reply to message #552769] Mon, 23 August 2010 12:49 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2010-08-13 15:15, tampe125 wrote:
> i have the same issue...
> i can work for [random number] minutes, then everything freeze.
> btw with previous versions of Eclipse everything was ok
> :(

Maybe all of You are running out of memory?
First try to run eclipse in debug mode, turn on memory widget and find out that.
I changed my settings to 1GB of memory (not only thsi single setting!) and
eclipse is running smoothly. Memory is very cheap today! :)

dmc
Re: Very frequent freezes with 100% cpu usage. [message #554645 is a reply to message #554610] Mon, 23 August 2010 15:21 Go to previous messageGo to next message
sNop is currently offline sNop
Messages: 281
Registered: July 2009
Senior Member
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigCA6936FF88F38F4FC3F8982E
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi domonik,

can you pls attach yours eclipse.ini file ? I want to see how you setup 1=
GB memory, because I can't set 1GB, max. value which I can set is 640MB

My eclipse.ini file looks like this:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v 20100503
-product
org.eclipse.epp.package.php.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=3D1.5
-Xms128m
-Xmx640m

Thank you

On 23. 8. 2010 18:49, dominik wrote:
> I changed my settings to 1GB of memory (not only thsi single setting!) =
and
> eclipse is running smoothly. Memory is very cheap today! :)
>=20
> dmc


--------------enigCA6936FF88F38F4FC3F8982E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxyyj0ACgkQkCAxuhXMpxUTQACdHxfJ7KM+0QrbSplGZA8C ManF
9noAni8niR4GZ+qfOYVb6e78dgQPr8wT
=28VD
-----END PGP SIGNATURE-----

--------------enigCA6936FF88F38F4FC3F8982E--
Re: Very frequent freezes with 100% cpu usage. [message #554741 is a reply to message #554645] Tue, 24 August 2010 05:55 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2010-08-23 21:21, sNop wrote:
> Hi domonik,
>
> can you pls attach yours eclipse.ini file ? I want to see how you setup 1GB memory, because I can't set 1GB, max. value which I can set is 640MB

AFAIR ini files are not so universal that they will work on different versions.
My eclipse is configured to use max. 768MB of memory, but with highest usage
system is reporting 1GB (maybe java is taking some extra memory).
Right now my eclipse (running about two weeks with hibenration) is taking 675MB
of memory (this is reported from system), eclipse memory widget reports
~200-300MB of memory used out of 495MB allocated. This is normal state. As You
can see 256MB is too low! Memory widget never showed more than 500MB of memory
allocated so 768MB is safe value for me. On the other hand I have more than 30
project inside eclipse, great amount of plugins and additions. Everything is
working smoothly.
Here is most important part of my ini.

--launcher.XXMaxPermSize
768M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
768m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms80m
-Xmx768m

You have only 256MB of memory assigned for eclipse. That's why You are running
out of it. Replace that with 768 like me. Also I found out that xms is much
better to be about 80m :) I don't know if this will work for Your version -
sometimes there are problems with different builds.

I hope this will help :)

dmc
Re: Very frequent freezes with 100% cpu usage. [message #555214 is a reply to message #554741] Wed, 25 August 2010 16:53 Go to previous messageGo to next message
sNop is currently offline sNop
Messages: 281
Registered: July 2009
Senior Member
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig35B9D9A13D3FA65CEADF1853
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi dominik,

this is max. what I can set, I'm using WinXP 64-bit fully patched with 4G=
B ram:

--launcher.XXMaxPermSize
768M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=3D1.5
-Xms128m
-Xmx640m


768m for:
org.eclipse.platform
--launcher.XXMaxPermSize
256m

and 768m for:
-Dosgi.requiredJavaVersion=3D1.5
-Xms128m
-Xmx640m

doesn't work for me, Java VM popups a dialog with error


On 24. 8. 2010 11:55, dominik wrote:
> --launcher.XXMaxPermSize
> 768M
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 768m
> -vmargs
> -Dosgi.requiredJavaVersion=3D1.5
> -Xms80m
> -Xmx768m


--------------enig35B9D9A13D3FA65CEADF1853
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx1gr0ACgkQkCAxuhXMpxWEVQCfQTvyJmpNykcLAfwKPL1I VcfZ
OaoAmwUCkh1eTXA7v3OKog/xjXDLUnLM
=LJfB
-----END PGP SIGNATURE-----

--------------enig35B9D9A13D3FA65CEADF1853--
Re: Very frequent freezes with 100% cpu usage. [message #555410 is a reply to message #555214] Thu, 26 August 2010 09:43 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2010-08-25 22:53, sNop wrote:
> Hi dominik,
>
> this is max. what I can set, I'm using WinXP 64-bit fully patched with 4GB ram:

Hello,
I don't know about winXO 64bit (and why You needed to patch 64bit OS) but this
is working for Win7 Ultimate 64bit.
I think that You have different build of Eclipse.


> 768m for:
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
>
> and 768m for:
> -Dosgi.requiredJavaVersion=1.5
> -Xms128m
> -Xmx640m
>
> doesn't work for me, Java VM popups a dialog with error

This is common when configuration is wrong.

Please follow those links:
http://wiki.eclipse.org/Eclipse.ini
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_ available_to_Eclipse%3F
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_si ze_available_to_Eclipse%3F

I hope this will help :)

dmc
icon8.gif  Re: Very frequent freezes with 100% cpu usage. [message #555483 is a reply to message #548292] Thu, 26 August 2010 14:01 Go to previous messageGo to next message
Chris Charlton is currently offline Chris Charlton
Messages: 8
Registered: January 2010
Location: Los Angeles, CA
Junior Member
I am on Mac OS X 10.6.4, trying to use Helios + PDT 2.2 but my memory heap is filling up within seconds of opening a Drupal (PHP) project. I already increased my eclipse.ini memory settings a few times and no matter how large the pool is its always getting full. Eclipse then tells me that the Workspace needs to exit. When I restart and open a single file my heap goes up 1MB with every click in the document, literally with every single click. Then DLTK spins up and its bye-bye RAM.

Every version of Eclipse/PDT I have used has never been this bad and I'm very disappointed. I literally cannot work in Helios, and I even tried re-installing fresh copies of Eclipse, with and without plug-ins with the same results.

Honestly, I do not want to move to another editor and am shocked to find so many posts of people's Helios crapping out on them. One suspect I read was the DLTK, which is always indexing for me and filling up my RAM.


Chris Charlton - http://chrischarlton.us

Learn How To Make Drupal Themes Now - http://tinyurl.com/theme-drupal

Download Eclipse & Dreamweaver plugins at http://xtnd.us - xtnd urslf!
Re: Very frequent freezes with 100% cpu usage. [message #558299 is a reply to message #555483] Fri, 10 September 2010 17:18 Go to previous messageGo to next message
Chris Charlton is currently offline Chris Charlton
Messages: 8
Registered: January 2010
Location: Los Angeles, CA
Junior Member
After removing the JavaScript support of my PHP projects my Eclipse 3.6 + PDT 2.2 is now behaving and not eating up all my RAM.

UPDATE: It appears my Eclipse 3.6/PDT2.2 is only now sometimes filling up all the memory allocated to it. It still gets a loaded memory heap in large Drupal projects.

Mac OS X 10.6.4 - i5 CPU - 8GB DDR3 RAM - Eclipse 3.6 + PDT 2.2


Chris Charlton - http://chrischarlton.us

Learn How To Make Drupal Themes Now - http://tinyurl.com/theme-drupal

Download Eclipse & Dreamweaver plugins at http://xtnd.us - xtnd urslf!

[Updated on: Sat, 11 September 2010 13:57]

Report message to a moderator

Re: Very frequent freezes with 100% cpu usage. [message #631528 is a reply to message #558299] Thu, 07 October 2010 16:33 Go to previous messageGo to next message
bloc  is currently offline bloc
Messages: 3
Registered: October 2010
Junior Member
Turn off semantic highlighting.
Re: Very frequent freezes with 100% cpu usage. [message #662587 is a reply to message #631528] Thu, 31 March 2011 04:50 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 1
Registered: March 2011
Junior Member
what is Turn off semantic highlighting.?

how to Turn off semantic highlighting.?
Re: Very frequent freezes with 100% cpu usage. [message #664902 is a reply to message #548292] Tue, 12 April 2011 09:11 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 1
Registered: April 2011
Junior Member
I suppose you can find this option in :
General -> Editors -> Structured Text Editors
Re: Very frequent freezes with 100% cpu usage. [message #693093 is a reply to message #555214] Tue, 05 July 2011 15:09 Go to previous messageGo to next message
Dan Dascalescu is currently offline Dan Dascalescu
Messages: 2
Registered: July 2009
Location: Silicon Valley
Junior Member
sNop wrote on Wed, 25 August 2010 16:53

--launcher.XXMaxPermSize
768M


I'm using Eclipse 4.1 32-bit on Windows 7 64-bit, with PDT 3.0.0.v20110516, and I see very high CPU usage when simply switching tabs among 3 PHP files. My --launcher.XXMaxPermSize is 512m. Disabling semantic highlight didn't help.

I've enabled the heap memory widget in the status bar. While not doing anything with Eclipse, the heap size keeps jumps all the time from 41M of 121M, to 71M, and back, all within less than 5 seconds. Is this normal?

Also, how does one disable PDT's JavaScript support, when PDT is already installed?
UPDATE: I've deleted my PDT project and created a new one with the Javascript checkbox off. I still see very high CPU usage even when I just type code in a PHP file.

[Updated on: Thu, 07 July 2011 06:10]

Report message to a moderator

Re: Very frequent freezes with 100% cpu usage. [message #695245 is a reply to message #693093] Mon, 11 July 2011 07:15 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2011-07-05 21:09, Dan Dascalescu wrote:
>> --launcher.XXMaxPermSize
>> 768M
> I'm using Eclipse 4.1 32-bit on Windows 7 64-bit, with PDT 3.0.0.v20110516, and
> I see very high CPU usage when simply switching tabs among 3 PHP files. My
> --launcher.XXMaxPermSize is 512m. Disabling semantic highlight didn't help.

Go to progress view and check in options to see background tasks, probably
Eclipse is working on something in background (building project?).


> I've enabled the heap memory widget in the status bar. While not doing anything
> with Eclipse, the heap size keeps jumps all the time from 41M of 121M, to 71M,
> and back, all within less than 5 seconds. Is this normal?

Yes,
Double check all memory settings, maybe You should increase other values?
Memory is cheap today, I assigned 2GB for eclipse and that helped a lot with
many tasks.


> Also, how does one disable PDT's JavaScript support, when PDT is already installed?

In project settings there is a checkbox "enable javascript support for this
project" - will this help You?

/dmc
Re: Very frequent freezes with 100% cpu usage. [message #695867 is a reply to message #548292] Tue, 12 July 2011 13:17 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik Bartolini
Messages: 15
Registered: July 2010
Location: Italy
Junior Member
This post seems to be contemporary and still valid, because one year later, I still have to cope with this problem.

This post seems to be contemporary and still valid, because one year later, I still have to cope with this problem.

Quote:
I'm having exactly the same problem, but on Ubuntu Lucid x64, both with OpenJDK and Sun's Java. Eclipse Helios is thus absolutely useless. After some weeks of discovering various bugs I wonder if anybody's ever even tested this or if it was just packed and offered as a download.

Same configuration, same problem.
Workstation I7
Ubuntu Lucid 64 bit
OpenJdk or Java selectable.
4GB of RAM

No matter how big is the file opened.

I think with some test I could find the exact operation to do to create the 100% CPU (core) freeze. At the moment it seems related to PHP validator because it seems to happen when I'm writing and stop for a moment with a line left uncompleted... something like
$a="blah blah blah' .
   "blah blah


Whatever the case, the problem ends up with Java process 100% CPU load (in the case below 199% Laughing )
index.php/fa/3338/0/
  • Attachment: javaloop.jpg
    (Size: 57.11KB, Downloaded 7736 times)

[Updated on: Tue, 12 July 2011 13:18]

Report message to a moderator

Re: Very frequent freezes with 100% cpu usage. [message #696660 is a reply to message #695867] Thu, 14 July 2011 10:04 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2011-07-12 19:17, Rik wrote:
> I think with some test I could find the exact operation to do to create the 100% CPU (core) freeze. At the moment it seems related to PHP validator because it seems to happen when I'm writing and stop for a moment with a line left uncompleted... something like
> $a="blah blah blah' .
> "blah blah
>
> Whatever the case, the problem ends up with Java process 100% CPU load.

Is there anything running on progress window? Can You turn on all, ecen usually
hidden proceses there?
I saw such behavior several times, eclipse was building workspace over network
on remote site, cpu load was 100% and everything ws caused just by network.
First You need to be sure that Eclipse is not processing anything.

For test create new workspace and small project with one, phpinfo only file. Is
it still hanging?

/dmc
Re: Very frequent freezes with 100% cpu usage. [message #696699 is a reply to message #548292] Thu, 14 July 2011 12:11 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik Bartolini
Messages: 15
Registered: July 2010
Location: Italy
Junior Member
Uhmmm... I think the guys above were right: it seems to be random.
Investigation in progress...
Re: Very frequent freezes with 100% cpu usage. [message #722288 is a reply to message #548292] Mon, 05 September 2011 05:08 Go to previous messageGo to next message
Antoine Robert is currently offline Antoine Robert
Messages: 3
Registered: July 2009
Junior Member
I have a similar problem on large Php Project.

Informations :
- OS : Windows Xp
- Eclipse 3.6 + PDT 2.2.1 AND Eclipse 3.7 + PDT 3.0.0

Typically the problem occurs when I press Ctrl + C, or Ctrl + Click on the Php Editor.

I give a try with both Eclipse 3.6 + PDT 2.2.1 and Eclipse 3.7 + PDT 3.0.0
(In both case , i have the same issue)

My java JVM version is : 1.6.0_24-b07

My Project is connected to SVN.

I tried to run Eclipse with -clean option --> Same problem
I tried the following cache cleaner : www.eclipsezone.com/servlet/JiveServlet/download/18111-61566-91981882-3716/Clean%20Eclipse%20Cache.bat --> Same problem.
I tried ti swith my project in a fresh new workspace -> Same problem.


BUT i unchecked everything in "General -> Editors -> Structured Text Editors" and that seems to work better --> No random freeze on "ctrl key" use.

Re: Very frequent freezes with 100% cpu usage. [message #722393 is a reply to message #722288] Mon, 05 September 2011 11:49 Go to previous messageGo to next message
dominik is currently offline dominik
Messages: 122
Registered: July 2009
Senior Member
On 2011-09-05 11:08, Antoine Robert wrote:
> BUT i unchecked everything in "General -> Editors -> Structured Text Editors"
> and that seems to work better --> No random freeze on "ctrl key" use.

How much memory You assigned to Eclipse?
Also try some fresh night builds, they are bit better, some bugs were corrected.

/dmc
Re: Very frequent freezes with 100% cpu usage. [message #728772 is a reply to message #695867] Fri, 23 September 2011 17:51 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 6
Registered: September 2011
Junior Member
Rik wrote on Tue, 12 July 2011 13:17
This post seems to be contemporary and still valid, because one year later, I still have to cope with this problem.

I think with some test I could find the exact operation to do to create the 100% CPU (core) freeze. At the moment it seems related to PHP validator because it seems to happen when I'm writing and stop for a moment with a line left uncompleted... something like
$a="blah blah blah' .
   "blah blah


Whatever the case, the problem ends up with Java process 100% CPU load (in the case below 199% Laughing )



Yes, the last I encountered this bug... I remember following google searches to some bug in DLTK and PHP validation. It's been a while since I've used PDT though... too unstable to use for me at the moment.

I was running it on both Ubuntu lucid 64 and Windows 7 x64. Sun-JVM (update 21 or so I believe back then)
Re: Very frequent freezes with 100% cpu usage. [message #752637 is a reply to message #728772] Wed, 26 October 2011 09:13 Go to previous messageGo to next message
abhijack is currently offline abhijack
Messages: 7
Registered: October 2011
Junior Member
thanks for suggestions..
Re: Very frequent freezes with 100% cpu usage. [message #752744 is a reply to message #752637] Wed, 26 October 2011 09:59 Go to previous messageGo to next message
Rik Bartolini is currently offline Rik Bartolini
Messages: 15
Registered: July 2010
Location: Italy
Junior Member
At the moment, I've never had that specific problem. I don't know why. Smile Maybe some auto-update of Ubuntu... maybe OpenJdk?
I'm still using Eclipse Helios and Ubuntu Lucid x64 with OpenJDK.


However there is another problem: when I open VirtualBox (just to run IE or FF from Windows to test a page on the Host), sometime, even with a lot of free RAM, Ecplise crash while I'm editing. Even closing and reopening doesn't work. I use
pkill java
to have eclipse working again.
It happens even with a project with only 1 file and 10 rows.
It didn't happen before. So I "solved" a problem but I have a new one and... anyway it's a good barter! Smile
Re: Very frequent freezes with 100% cpu usage. [message #779596 is a reply to message #548292] Mon, 16 January 2012 01:03 Go to previous messageGo to next message
randoum randoum is currently offline randoum randoum
Messages: 1
Registered: January 2012
Junior Member
Guys, this solution seemed to work for me. Try it and let me know:

Disable the Eclipse internal clipboard and let the system handle it.

To do so:
Open Preferences window, go in General / Keys
Search for "Copy" (tere is 2 shortcuts), select it and click Unbind
Do the same for "Paste"

Cheers
Re: Very frequent freezes with 100% cpu usage. [message #919356 is a reply to message #548292] Fri, 21 September 2012 19:25 Go to previous message
techmom ho is currently offline techmom ho
Messages: 1
Registered: September 2012
Junior Member
Smile Awesome, The proposed workaround to unbind the short cut works.
However, is this a bug in eclipse?
Previous Topic:Editor misbehaving when line exceeds screen width
Next Topic:Getting xDebug working
Goto Forum:
  


Current Time: Fri Jul 25 08:59:35 EDT 2014

Powered by FUDForum. Page generated in 0.02846 seconds