For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 10 replies, 3 voices, and was last updated 21 years, 1 month ago by
Marcus Beyer.
-
AuthorPosts
-
Marcus BeyerMemberHello,
more than once a day I get an “out of memory” when I do run “MyEclipse->Run XDoclet”, forcing me to restart Eclipse.
AFAIK you run an ant script that does the work. And Ant allows forking.
Can I configure MyEclipse to fork when running XDoclet / Ant?
thanx!
MarcusFebruary 12, 2004 at 10:58 am #203252
Riyad KallaMemberMarcus,
I’ve checked with Scott/Michael aboutt his, but in the mean time you can give more memory to Eclipse via the “-vmargs” command line argument, something like this:eclipse.exe -vmargs -Xms64m -Xmx128m
February 13, 2004 at 9:25 am #203288
Scott AndersonParticipantThe answer is “no” in Eclipse 2.1 and “yes, automatically” in 3.0M6.
February 13, 2004 at 9:51 am #203291
Marcus BeyerMember@support-rkalla wrote:
Marcus,
I’ve checked with Scott/Michael aboutt his, but in the mean time you can give more memory to Eclipse via the “-vmargs” command line argument, something like this:eclipse.exe -vmargs -Xms64m -Xmx128m
funny, my args are already:
-vmargs -Xconcurrentio -Xms640m -Xmx640m@scott wrote:
The answer is “no” in Eclipse 2.1 and “yes, automatically” in 3.0M6.
oh, unfortunately I am forced to use 2.1 …
thanx!
MarcusFebruary 13, 2004 at 10:07 am #203294
Scott AndersonParticipantOut of curiosity, are you really intending to give Eclipse 640M on initial startup? Does the JVM appear to take up this much ram? I’m wondering if the numbers are being ignored. Just for kicks, can you remove the -Xconcurrentio flag and change the memory args to -Xms128M -Xmx640M?
Also, I just executed ‘java -X’ on my 1.4.2_01 installation and -Xconcurrentio does not appear to be a valid flag. Is this an old one that has gone away?
February 13, 2004 at 2:13 pm #203303
Marcus BeyerMember@scott wrote:
Out of curiosity, are you really intending to give Eclipse 640M on initial startup? Does the JVM appear to take up this much ram?
Well, on my last job we had many thousand classes in memory, so …
But now I started from scratch again (new employer), so I could lower these values.@scott wrote:
I’m wondering if the numbers are being ignored. Just for kicks, can you remove the -Xconcurrentio flag and change the memory args to -Xms128M -Xmx640M?
Doesn’t seem to change the behaviour. The -Xmx640M has an interesting Effekt: when I do Help -> About Eclipse Platform -> Configuration Details, javaw.exe grows from ~80000k to ~688000k and Eclipse ends with an Out of memory error. I tried this again and again.
I am using always the same values for -Xms and -Xmx, because I read somewhere that this improves Java performance …
Then I reduced the two values to 256M. Pressing the “Configuration Details” button, javaw.exe grows to ~300000K and Eclipse does not colapse. An empty page is displayed. Hmm, strange. By the way: I am using Eclipse 2.1.2.
@scott wrote:
Also, I just executed ‘java -X’ on my 1.4.2_01 installation and -Xconcurrentio does not appear to be a valid flag. Is this an old one that has gone away?
Possible. Thanks for that hint!
Marcus
February 13, 2004 at 3:21 pm #203305
Riyad KallaMemberMarcus this is very strange indeed and sounds awefully memory-leaky… what JDK version are you using? Are you on Windows XP? 2k?
February 16, 2004 at 3:35 am #203424
Marcus BeyerMember@support-rkalla wrote:
Marcus this is very strange indeed and sounds awefully memory-leaky… what JDK version are you using? Are you on Windows XP? 2k?
Windows XP
JDK 1.4.2_03Cheers!
MarcusJuly 2, 2004 at 9:13 am #209341
Marcus BeyerMember@support-scott wrote:
The answer is “no” in Eclipse 2.1 and “yes, automatically” in 3.0M6.
This week I upgraded to Eclipse 3. Again I had these out of mem problems. Forking is not done automatically there: one has to select “Separate JRE” in the “Builders” config of a project. No out of mem anymore 🙂
Marcus
July 2, 2004 at 9:16 am #209343
Riyad KallaMemberAhh, Marcus thank you for the heads up about the setting!
July 2, 2004 at 9:32 am #209346
Marcus BeyerMemberYou’re welcome!
-
AuthorPosts