Out of memory - solutions? [message #106013] |
Thu, 16 October 2003 06:28  |
Eclipse User |
|
|
|
Originally posted by: john.starfriend.net
Hi,
This is my third posting in the last 3-4 days. I don't understand why I
don't get a reply...
Anyway, all my problems seem to come from things getting out of synch and
loss of data when Eclipse runs out of memory. I get out of memory errors
more and more often. Maybe I can use Eclipse for half an hour before it
crashes ....this is really holding me back!
Anyway, maybe the issue will be addressed in a future version.
Trawling through these messages, I see that one cause can be frequently
running ant scripts. I use ant a lot - long involved scripts, deleting and
creating a database, then adding some sample data, and then running some
Java to do a load of calculations to put more data into the db....I have
seen a suggestion to run ant in a separate vm. Is there a handy way to do
this in Eclipse, or do I need to create a script to run ant outside of
Eclipse.
And might it be a good idea to uninstall some plug-ins? If so, how do I go
about doing that?
Thanks in advance,
John Pedersen
|
|
|
Re: Out of memory - solutions? [message #106090 is a reply to message #106013] |
Thu, 16 October 2003 07:29   |
Eclipse User |
|
|
|
Originally posted by: hcs33.egon.gyaloglo.hu
Hi,
Maybe you don't get reply for your first 2 postings because people had not
got a good answer...
For out of memory:
1. You can run ant in separate vm since Eclipse 3.0 M3 (see the JRE tab in
an ant build configuration). For 2.1 you have to write a .bat file (assuming
Windows platform) which call ant and run this file as an External Tool.
2. Have you set the amount of memory Eclipse can use? You can do this using
the -vmargs parameter (ie. eclipse.exe -vmargs -Xmx256M). If no, you have
to, the default is not enough for work. If yes, try to increase the number
you set (if you have more :-)).
For the out of sync:
I assume you have out of sync problems because of running ant. In 3.0 (and
maybe in 2.1.x) you can force an ant run to refresh the workspace upon
completion (see External Tools, select an ant build and go to the Refresh
tab).
Uninstalling plugins maybe help but I don't think so. Afaik a plugin is
loaded only when it is first activated (so if you have plugins installed but
not used, they don't reserve much memory).
HTH,
Regards,
Csaba
"John Pedersen" <john@starfriend.net> wrote in message
news:bmlrrv$8u3$1@eclipse.org...
> Hi,
>
> This is my third posting in the last 3-4 days. I don't understand why I
> don't get a reply...
>
> Anyway, all my problems seem to come from things getting out of synch and
> loss of data when Eclipse runs out of memory. I get out of memory errors
> more and more often. Maybe I can use Eclipse for half an hour before it
> crashes ....this is really holding me back!
>
> Anyway, maybe the issue will be addressed in a future version.
>
> Trawling through these messages, I see that one cause can be frequently
> running ant scripts. I use ant a lot - long involved scripts, deleting and
> creating a database, then adding some sample data, and then running some
> Java to do a load of calculations to put more data into the db....I have
> seen a suggestion to run ant in a separate vm. Is there a handy way to do
> this in Eclipse, or do I need to create a script to run ant outside of
> Eclipse.
>
> And might it be a good idea to uninstall some plug-ins? If so, how do I go
> about doing that?
>
> Thanks in advance,
>
> John Pedersen
>
|
|
|
|
|
Re: Out of memory - solutions? [message #106844 is a reply to message #106465] |
Fri, 17 October 2003 04:37  |
Eclipse User |
|
|
|
Originally posted by: john.starfriend.net
Great - thanks for the help folks! Since I switched to running Ant from a
batch file as an external tool, I have had no problems with Eclipse
ruuning out of memory.
However, I am still juggling things around so that some java processes I
fire off using Ant can find all their resources (I had it all nicely set
up before!), so I haven't been building so much. Still, this is another
issue I hope to resolve pretty soon, and then I should be able to get back
to some more productive work.
Your help much appreciated!
John
|
|
|
Powered by
FUDForum. Page generated in 0.02943 seconds