facebook

[Closed] java.lang.OutOfMemoryError

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #239051 Reply

    Ufuk COBAN
    Member

    Run-time exception java.lang.OutOfMemoryError occurred during validation. The validator being run was JSP Validator and the message thrown was .

    what validator can cause this? what is the solution?

    #239056 Reply

    Brian Fernandes
    Moderator

    atmuc,

    Could you please post all the information requested in Posting Guidelines?

    As a top off suggestion, increase the memory given to the JVM while starting eclipse use: eclipse.exe -vmargs -Xmx512m

    Though we really need the above questions answered to address your issue correctly.

    Best,
    Brian.

    #239057 Reply

    Ufuk COBAN
    Member

    project is a web application with additional features; hibernate,spring
    i installed plugins: spring, wst, tptp

    *** Date: Mon Oct 10 11:47:32 EEST 2005

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.4.2_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.1 GA
    Build id: 20050930-4.0.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Platform

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Java Development Tools

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Plug-in Development Environment

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse Project SDK

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse RCP

    Version: 3.1.1
    Build id: M20050929-0840

    Eclipse startup command=-data
    O:\repository\pro_rec\eclipse
    -os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    O:\repository\programming\eclipse-3.1.1\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    b7c_38
    -vm
    C:\WINDOWS\system32\javaw.exe

    #239058 Reply

    What toolsets were you using? (JSF, Struts, etc)

    #239068 Reply

    Ufuk COBAN
    Member

    struts and jstl

    #239116 Reply

    Scott Anderson
    Participant

    Eclipse probably really is legitimately running out of memory since the default heapsize for Java applications is quite small for such a large application. Can you try restarting Eclipse with these arguments and see if that remedies the problem:
    eclipse.exe -vmargs -Duser.language=en -Xms128M -Xmx512M

    #240145 Reply

    Paul Devine
    Member

    I’m frequently running into this problem. A friend of mine is too. I’ve been running with -Xms512M -Xmx768M, my friend runs with a heap up to 1Gb. I’m running Eclipse 3.1, MyEclipse 4.0.2. I haven’t tracked Eclipse memory usage over time. At this point I’m not sure what to do other than try disabling MyEclipse.

    #240746 Reply

    georgraffer
    Member

    We also have the OutOfMemoryError when using MyEclipse 4.02
    It seems that compiling / validating a huge amount of jsps causes the problem.
    Please fix this, I have to restart my eclipse multiple times a day.

    I’m currently using 768 MB of heap.

    kind regards.

    #240757 Reply

    Scott Anderson
    Participant

    All,

    The issue is often not the heap itself but the Perm space for classes. Please try these startup arguments:
    eclipse.exe -vmargs -Duser.language=en -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M

    That should do the trick. Oh, and 4.0.3 had enhancements for JSP compilation so you should update if you haven’t already. Please see the announcement here: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-9793.html

    #241222 Reply

    Thank you that works perfect!

    kind regards,

    Georg Raffer

    #310473 Reply

    Gain
    Member

    This is due to the fact that your workspace is overloaded. As a solution give a new workspace while starting MyEclipse and it should be fine.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: [Closed] java.lang.OutOfMemoryError

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