facebook

java.lang.OutOfMemoryError: Java heap space

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

    Ducks
    Member

    Hi,

    Could anyone have a look at error below and any suggestion will be highly appreciated.

    I got error below when I run a web project in MyEclipse Enterprise Workbench Version: 6.6.0


    org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Blocking Servlet threw exception
    java.lang.OutOfMemoryError: Java heap space”

    my system information listed below

    *** System properties:
    awt.toolkit=sun.awt.windows.WToolkit
    birt.viewer.working.path=C:\Documents and Settings\fgao\myWorkSpace\.metadata\.plugins\org.eclipse.birt.report.viewer
    eclipse.buildId=M20080221-1800
    eclipse.commands=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.5\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata
    1270_7c
    -clean
    -vm
    C:\Program Files\MyEclipse 6.5\jre\bin\javaw.exe
    eclipse.ee.install.verify=false
    eclipse.product=com.genuitec.myeclipse.product.ide
    eclipse.startTime=1350931796316
    eclipse.vm=C:\Program Files\MyEclipse 6.5\jre\bin\javaw.exe
    eclipse.vmargs=-Xms512m
    -Xmx1024m
    -Duser.language=en
    -XX:PermSize=128M
    -XX:MaxPermSize=256M

    if I change -XX:MaxPermSize=256M to 512M, myClipse cannot start, BTW, My computer has 2GB memory.

    Thank you in advance,
    Feng

    #331579 Reply

    support-swapna
    Moderator

    Feng,

    Sorry that you are seeing this issue.

    1. Can you check to see if these settings work for you ?

    -vmargs
    -Xmx768m
    -XX:MaxPermSize=384m

    2. I see that you are working with a very old installation of MyEclipse. Our latest release is 10.6 which has over 3-4 years of latest developments, enhancements and fixes.

    I strongly recommend you install 10.6 to take advantage of the developments we have done over the past few years.

    You can download the 10.6 installer from here :
    https://www.myeclipseide.com/index.php?name=Recommend_Us&req=Download&version=ME

    You can install 10.6 alongside 6.6 without uninstalling 6.6. The license you hold for ME 6.6 is valid for ME 10.6 too as our licenses are time based and not version based.

    Alternatively you can use Pulse to install MyEclipse 10.6 :
    https://www.genuitec.com/forums/topic/installation-how-to-install-myeclipse-from-pulse/

    The FAQ is based on a previous version of MyEclipse. Select ‘Eclipse 3.7 – Indigo’ from the Explore section and MyEclipse 10.6 and follow the wizard.

    Let us know how it works for you.

    #331646 Reply

    Ducks
    Member

    Hi Swapna,

    Thanks for your suggestions.
    I tried to change parameter like below, sitll doesn’t work (got java.lang.OutOfMemoryError: Java heap space error)
    -vmargs
    -Xmx768m
    -XX:MaxPermSize=384m

    Also I installed MyEclipse 10.6, no good news for me.

    I do have a question about Apache Tomcat/6.0.13, which is used by MyEclipse, how can I do configuration about it? The reason I am asking is I have no problem if I am using Apache Tomcat/6.0.18.

    Any input will be appreciated.

    Feng

    #331663 Reply

    Ducks
    Member

    I found this helps and no more Java heap space error.

    ..
    Window > Preferences > MyEclipse > Servers > Integrated Sandbox > MyEclipse Tomcat > JDK. In the Optional VM Arguments section you can try addingCode:
    -Xmx1024M

    Cheers,
    Feng

    #331670 Reply

    support-swapna
    Moderator

    Feng,

    Glad that you got it working.
    Do let us know if you see any issues.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: java.lang.OutOfMemoryError: Java heap space

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