Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse very sluggish with large java file
Eclipse very sluggish with large java file [message #87377] Wed, 20 August 2003 16:20 Go to next message
Eclipse UserFriend
Originally posted by: mike.miller.timera.com

Our project has a java file that contains alot of procedural code. The
file has over 13,000 lines of code. (I know, we need to split the file :)
) Trying to edit and debug this file brings my PC to its knees, the
windows task manager is a solid green box in the system tray! I tried
adjusting the Workbench preferences to not 'perform automatic builds on
resource modification' but that doesn't seem to help.

Any suggestions!
Re: Eclipse very sluggish with large java file [message #87407 is a reply to message #87377] Wed, 20 August 2003 17:12 Go to previous messageGo to next message
Eclipse UserFriend
> Our project has a java file that contains alot of procedural code. The
> file has over 13,000 lines of code. (I know, we need to split the file :)
> ) Trying to edit and debug this file brings my PC to its knees, the
> windows task manager is a solid green box in the system tray! I tried
> adjusting the Workbench preferences to not 'perform automatic builds on
> resource modification' but that doesn't seem to help.
Automatic build only takes place if you perform save action. Maybe you
can turn of linked with editor for your outliner (option
is it called somehow diffrent). The option I mean turnes off the outliner
updating if you change cursor location. Maybe that will bring you some
more speed.

> Any suggestions!
Take a notepad/simple editor and split it. Then use the fragments and
edit em. By the way is it a autogenerated file (like JavaCC etc.) maybe
you should work on it. Gosh 13,000 lines - that's totally crazy!!!

Martin (Kersten)
Re: Eclipse very sluggish with large java file [message #87446 is a reply to message #87407] Wed, 20 August 2003 17:59 Go to previous messageGo to next message
Eclipse UserFriend
Martin Kersten wrote:
> Take a notepad/simple editor and split it. Then use the fragments and
> edit em. By the way is it a autogenerated file (like JavaCC etc.) maybe
> you should work on it. Gosh 13,000 lines - that's totally crazy!!!
>

Especially when you have such a nice refactoring-tool as Eclipse.

Stein
Re: Eclipse very sluggish with large java file [message #87479 is a reply to message #87377] Wed, 20 August 2003 18:54 Go to previous messageGo to next message
Eclipse UserFriend
Mike Miller wrote:
> Our project has a java file that contains alot of procedural code. The
> file has over 13,000 lines of code. (I know, we need to split the file :)
> ) Trying to edit and debug this file brings my PC to its knees, the
> windows task manager is a solid green box in the system tray! I tried
> adjusting the Workbench preferences to not 'perform automatic builds on
> resource modification' but that doesn't seem to help.
>

Perhaps it helps to give more memory to the jvm?

Stein
Re: Eclipse very sluggish with large java file [message #87552 is a reply to message #87479] Thu, 21 August 2003 01:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ronm.p-cube.com

How do you give more memory to the Eclipse JVM?

Ron.

On Thu, 21 Aug 2003 00:54:10 +0200, Stein M. Eliassen <dulci@start.no>
wrote:

> Mike Miller wrote:
>> Our project has a java file that contains alot of procedural code. The
>> file has over 13,000 lines of code. (I know, we need to split the file
>> :)
>> ) Trying to edit and debug this file brings my PC to its knees, the
>> windows task manager is a solid green box in the system tray! I tried
>> adjusting the Workbench preferences to not 'perform automatic builds on
>> resource modification' but that doesn't seem to help.
>>
>
> Perhaps it helps to give more memory to the jvm?
>
> Stein
>
>



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: Eclipse very sluggish with large java file [message #87567 is a reply to message #87552] Thu, 21 August 2003 01:58 Go to previous messageGo to next message
Eclipse UserFriend
Ron Mertens wrote:
> How do you give more memory to the Eclipse JVM?
>

http://eclipsewiki.swiki.net/89#outofmemory

Stein
Re: Eclipse very sluggish with large java file [message #87727 is a reply to message #87479] Thu, 21 August 2003 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mike.miller.timera.com

Stein M. Eliassen wrote:

> Mike Miller wrote:
> > Our project has a java file that contains alot of procedural code. The
> > file has over 13,000 lines of code. (I know, we need to split the file :)
> > ) Trying to edit and debug this file brings my PC to its knees, the
> > windows task manager is a solid green box in the system tray! I tried
> > adjusting the Workbench preferences to not 'perform automatic builds on
> > resource modification' but that doesn't seem to help.
> >

> Perhaps it helps to give more memory to the jvm?

> Stein

I can try that. I already start it with -Xmx256m.
Re: Eclipse very sluggish with large java file [message #87742 is a reply to message #87727] Thu, 21 August 2003 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Mike Miller wrote:
> Stein M. Eliassen wrote:
>
>
>>Mike Miller wrote:
>>
>>>Our project has a java file that contains alot of procedural code. The
>>>file has over 13,000 lines of code. (I know, we need to split the file :)
>>>) Trying to edit and debug this file brings my PC to its knees, the
>>>windows task manager is a solid green box in the system tray! I tried
>>>adjusting the Workbench preferences to not 'perform automatic builds on
>>>resource modification' but that doesn't seem to help.
>>>
>
>
>>Perhaps it helps to give more memory to the jvm?
>
>
>>Stein
>
>
> I can try that. I already start it with -Xmx256m.
>

Take a look at (top/taskmgr) to see the memory usage.

Stein
Re: Eclipse very sluggish with large java file [message #87757 is a reply to message #87727] Thu, 21 August 2003 10:45 Go to previous messageGo to next message
Eclipse UserFriend
> > Mike Miller wrote:
> > > Our project has a java file that contains alot of procedural code.
The
> > > file has over 13,000 lines of code. (I know, we need to split the file
:)
> > > ) Trying to edit and debug this file brings my PC to its knees, the
> > > windows task manager is a solid green box in the system tray! I tried
> > > adjusting the Workbench preferences to not 'perform automatic builds
on
> > > resource modification' but that doesn't seem to help.
> > >
>
> > Perhaps it helps to give more memory to the jvm?
>
> > Stein
>
> I can try that. I already start it with -Xmx256m.

Add some crazy plugins and 256MBs are nothing ;)

Does this file contains more then one class?
Yes? Then split it! ;)

I think there are some O(n)>=n
Re: Eclipse very sluggish with large java file [message #90038 is a reply to message #87757] Thu, 28 August 2003 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Martin Kersten wrote:

>Add some crazy plugins and 256MBs are nothing ;)
>
Can you name them?

Dani
Re: Eclipse very sluggish with large java file [message #90156 is a reply to message #90038] Thu, 28 August 2003 09:42 Go to previous messageGo to next message
Eclipse UserFriend
> >Add some crazy plugins and 256MBs are nothing ;)
> >
> Can you name them?
Sure thing. Biggest hitter is a measurement plugin I guess. It's
measuring code quality in the background and connects to a
database server to store the stuff. Seams that it caches most
of the calculates to instantly react on build command.

Well another one is a profiler which gives me a footshot
everytime I profile a plugin collection under development.

Currently I have 1024MB installed and every eclipse session
gets max 512 as memory setting and I have two eclipse sessions
+ one debugsession constantly open. Also a tomcat is meowing
in the background.

Now I guess you know what I mean by crazy plugins ;)


Martin (Kersten)
Re: Eclipse very sluggish with large java file [message #91969 is a reply to message #90156] Wed, 03 September 2003 21:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: don_clark.onsetcomp.com

It appears that no one knows why Eclipse is so sluggish. I started on Mac
OS X with Eclipse 2.0 and performance was okay. Migrated to 2.1.1 and
performance was obviously slower, but not too bad. The project has gotten
bigger (50 classes, maybe 3k lines in largest) and Eclipse has gotten
slower. I tried various option settings to no avail. On a whim I
downloaded and installed 2.1.1 again, into a new directory. Performance was
back to the 2.1.1 starting level, but deteriorated again over a couple of
days. It's gotten so that now I can go for coffee while the debugger
single-steps. As you can imagine, this isn't acceptable, so I can either
find a fix (any ideas?) or find another tool. IntelliJ seems to handle this
same project okay, so I suspect there is some Eclipse background activity
that needs to be curtailed to get performance back to an acceptable level.

/Don

"Martin Kersten" <Martin.Kersten@student.uni-magdeburg.de> wrote in message
news:bil0nd$735$1@eclipse.org...
>
> > >Add some crazy plugins and 256MBs are nothing ;)
> > >
> > Can you name them?
> Sure thing. Biggest hitter is a measurement plugin I guess. It's
> measuring code quality in the background and connects to a
> database server to store the stuff. Seams that it caches most
> of the calculates to instantly react on build command.
>
> Well another one is a profiler which gives me a footshot
> everytime I profile a plugin collection under development.
>
> Currently I have 1024MB installed and every eclipse session
> gets max 512 as memory setting and I have two eclipse sessions
> + one debugsession constantly open. Also a tomcat is meowing
> in the background.
>
> Now I guess you know what I mean by crazy plugins ;)
>
>
> Martin (Kersten)
>
>
Re: Eclipse very sluggish with large java file [message #92709 is a reply to message #91969] Fri, 05 September 2003 07:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi Don,

> It appears that no one knows why Eclipse is so sluggish. I started on Mac
> OS X with Eclipse 2.0 and performance was okay. Migrated to 2.1.1 and
> performance was obviously slower, but not too bad. The project has gotten
> bigger (50 classes, maybe 3k lines in largest) and Eclipse has gotten
> slower. I tried various option settings to no avail. On a whim I
> downloaded and installed 2.1.1 again, into a new directory. Performance
was
> back to the 2.1.1 starting level, but deteriorated again over a couple of
> days. It's gotten so that now I can go for coffee while the debugger
> single-steps. As you can imagine, this isn't acceptable, so I can either
> find a fix (any ideas?) or find another tool. IntelliJ seems to handle
this
> same project okay, so I suspect there is some Eclipse background activity
> that needs to be curtailed to get performance back to an acceptable level.
>
Sound like you need a new maximum memory setting ;) Performance normaly
decreases over the time you are using eclipse because of histories and more
complex programms to keep in memory. I have a max memory setting of 512mb
and everything works smooth within a project containing a couple of mbs of
source and a lot more libraries attached with it.

So my reflex advice would be: Check your memory setting ;)

Martin (Kersten)
>
> "Martin Kersten" <Martin.Kersten@student.uni-magdeburg.de> wrote in
message
> news:bil0nd$735$1@eclipse.org...
> >
> > > >Add some crazy plugins and 256MBs are nothing ;)
> > > >
> > > Can you name them?
> > Sure thing. Biggest hitter is a measurement plugin I guess. It's
> > measuring code quality in the background and connects to a
> > database server to store the stuff. Seams that it caches most
> > of the calculates to instantly react on build command.
> >
> > Well another one is a profiler which gives me a footshot
> > everytime I profile a plugin collection under development.
> >
> > Currently I have 1024MB installed and every eclipse session
> > gets max 512 as memory setting and I have two eclipse sessions
> > + one debugsession constantly open. Also a tomcat is meowing
> > in the background.
> >
> > Now I guess you know what I mean by crazy plugins ;)
> >
> >
> > Martin (Kersten)
> >
> >
>
>
Re: Eclipse very sluggish with large java file [message #93988 is a reply to message #92709] Wed, 10 September 2003 11:27 Go to previous message
Eclipse UserFriend
Originally posted by: foo.msn.com

I've set the memory setting in the Eclipse 3.0 Mac package,
setting -Xmx512M. Performance improved slightly, but not enough to really
be useful. I'm seeing long delays on single stepping in JDT, long delays in
response to clicking on icons (Resume, Terminate, etc),. Code execution
between breakpoints is very slow as well (it's much faster when running
under control of another IDE like IntelliJ, so it isn't my code ;-) .

/Don

"Martin Kersten" <Martin.Kersten@student.uni-magdeburg.de> wrote in message
news:bj9qca$72e$1@eclipse.org...
> Hi Don,
>
> > It appears that no one knows why Eclipse is so sluggish. I started on
Mac
> > OS X with Eclipse 2.0 and performance was okay. Migrated to 2.1.1 and
> > performance was obviously slower, but not too bad. The project has
gotten
> > bigger (50 classes, maybe 3k lines in largest) and Eclipse has gotten
> > slower. I tried various option settings to no avail. On a whim I
> > downloaded and installed 2.1.1 again, into a new directory. Performance
> was
> > back to the 2.1.1 starting level, but deteriorated again over a couple
of
> > days. It's gotten so that now I can go for coffee while the debugger
> > single-steps. As you can imagine, this isn't acceptable, so I can
either
> > find a fix (any ideas?) or find another tool. IntelliJ seems to handle
> this
> > same project okay, so I suspect there is some Eclipse background
activity
> > that needs to be curtailed to get performance back to an acceptable
level.
> >
> Sound like you need a new maximum memory setting ;) Performance normaly
> decreases over the time you are using eclipse because of histories and
more
> complex programms to keep in memory. I have a max memory setting of 512mb
> and everything works smooth within a project containing a couple of mbs of
> source and a lot more libraries attached with it.
>
> So my reflex advice would be: Check your memory setting ;)
>
> Martin (Kersten)
Previous Topic:how to find implemented interfaces
Next Topic:Newbie looking for help
Goto Forum:
  


Current Time: Sat May 10 09:59:48 EDT 2025

Powered by FUDForum. Page generated in 0.04197 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top