- This topic has 7 replies, 5 voices, and was last updated 20 years, 11 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 ?
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 Support
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?
No OperationMemberalso the JDK version *IS* important to know.
and always use the “-server” option!NOP
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.
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.
LAs3RMemberok m8,
gonna try it so 😛
tx
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