- This topic has 7 replies, 5 voices, and was last updated 21 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
badreMemberlo all,
i have a java.lang.OutOfMemoryError when i compile jsp that contain uri for taglib and i have to restart my eclipse after each compilation 😥
This pb appear with the 2.6.4 plugin (i had nopb with 2.6.2)anyone have an idea ?
December 8, 2003 at 9:34 am #200557
Scott AndersonParticipantBadre,
This could either be a bug, or simply that you run Eclipse very close to its memory limit and the compilation just pushes it over the edge. Do you start Eclipse’s VM with memory options? You can make more memory available to Eclipse by modifying the alias you use to start it and adding something like: -Xms128M -Xmx384M to the commandline.
Does this resolve the issue? If not, can you please post your full configuration information as we request in the Posting Guidelines thread? That will enable us to dig a bit deeper to help diagnose this.
–Scott
MyEclipse SupportDecember 9, 2003 at 10:35 pm #200633
Riyad KallaMemberI am using MyEclipse 2.6.4 with Eclipse 2.1.2 on a medium sized struts app (lots of taglibs) and don’t run into any mem problems (I don’t use any command line VM args).
Badre, can you monitor the mem usage of the eclipse process when you begin a compile and see if infact the memory is just getting nudged over the limit (100+meg) or if its exploding (60mb -> 100+mb) which might signify a memory leak or infinite cycle somewhere?
December 15, 2003 at 1:29 am #200901
No OperationMemberalso the JDK version *IS* important to know.
and always use the “-server” option!NOP
December 16, 2003 at 7:34 am #200962
LAs3RMemberlo,
thanx all for replying 🙂
i installed eclipse 2.1.2 with a mate and now it seems to be ok.
btw even with the commandline Xms128M -Xmx384M or something, i had an outOfMemoryError.
take care mates.
laterz.
Badre.
December 16, 2003 at 11:26 am #200981
Riyad KallaMemberp.s.> You can’t just add those to your command line, you have to prefix with vmargs, argument. like this:
eclipse.exe -vmargs -Xms256m -Xmx256mAtleast I had to (WinXP) otherwise it ignored all my settings. now Eclipse flies, very cool.
December 16, 2003 at 3:55 pm #200997
LAs3RMemberok m8,
gonna try it so 😛
txDecember 16, 2003 at 8:29 pm #201015
Riyad KallaMembernp, and NOP thanks for the server suggestion, that helped too!
P.S.> People that don’t know: you can only use this option with the JRE if you copy the jre/bin/server dir out of the JDK install and into your JRE install dir (usually in C:\Program Files\Java\blahblah). On linux it comes with both I think…
OR just point your apps to use the javaw.exe in the jdk/jre install dir.
-
AuthorPosts