facebook

OutOfMemoryError with taglib [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #200550 Reply

    badre
    Member

    lo 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 ?

    #200557 Reply

    Scott Anderson
    Participant

    Badre,

    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

    #200633 Reply

    Riyad Kalla
    Member

    I 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?

    #200901 Reply

    No Operation
    Member

    also the JDK version *IS* important to know.
    and always use the “-server” option!

    NOP

    #200962 Reply

    LAs3R
    Member

    lo,

    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.

    #200981 Reply

    Riyad Kalla
    Member

    p.s.> You can’t just add those to your command line, you have to prefix with vmargs, argument. like this:
    eclipse.exe -vmargs -Xms256m -Xmx256m

    Atleast I had to (WinXP) otherwise it ignored all my settings. now Eclipse flies, very cool.

    #200997 Reply

    LAs3R
    Member

    ok m8,
    gonna try it so 😛
    tx

    #201015 Reply

    Riyad Kalla
    Member

    np, 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.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: OutOfMemoryError with taglib [Closed]

You must be logged in to post in the forum log in