Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Juno typing lag on OS X Lion

this is mostly to raise awareness and promote certain bugs on the Eclipse team I guess.

Env:

  • MacOSX 10.7.4 -Eclipse Juno final 64bit
  • Core2Duo MacBookPro 2009
  • SSD main HD.
  • Java 6 SDK used (latest revision from Apple Update)

It seems on quite large Java source files (1-2klines), typing of any code anywhere is causing

  • 1) Extreme CPU load (peaks)
  • 2) Quite a lag on typing

I have tried to disable autocomplete, line printing, and other features, reduce or increase memory settings on eclipse.ini, but nothing resolved it.

Anyone else with the same problem?

Eclipse Bugzilla search query.

like image 874
javapapo Avatar asked Jun 29 '12 10:06

javapapo


Video Answer


2 Answers

I noticed this on Windows 7 as well. I checked my task manager and eclipse was paging out from memory. Edit the eclipse.ini file (found right next to the eclipse executable). I up the memory limit to:

-Xms1024m
-Xmx2048m

Depending on how much RAM you machine has, you can first try

-Xms512m
-Xmx1024m

I have 16GB of RAM so I went higher.

It helped me, hopefully it works for you too.

like image 123
ashishp Avatar answered Oct 01 '22 01:10

ashishp


Thanks for the input...

I'm pretty sure that much of what you're seeing is caused by

https://bugs.eclipse.org/bugs/show_bug.cgi?id=389019

This was causing us to execute some very heavy-weight code on every character. It's been fixed (as of 2012-09-20) and will be available in 4.2.2. Should you want to test to see if this solves your issue it's available in any 'M' build later than that date.

like image 24
Eric Moffatt Avatar answered Oct 01 '22 00:10

Eric Moffatt