facebook

Add deployment: OutOfMemoryError: Java heap space

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #339615 Reply

    hahagal
    Participant

    Hi,

    When I add deployment, I get this OutOfMemoryError: Java heap space error. I have attached the installation details and deployment log. How can we resolve this?

    Installation details
    *** Date:
    Monday, June 3, 2013 6:01:06 PM SGT

    ** System properties:
    OS=WindowsVista
    OS version=6.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Blue Edition
    Version: 10.0 Blue
    Build id: 10.0-Blue-20111028

    *** Eclipse details:
    MyEclipse Blue Edition

    Version: 10.0 Blue
    Build id: 10.0-Blue-20111028

    Eclipse Platform

    Version: 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
    Build id: I20110613-1736

    Eclipse Java Development Tools

    Version: 3.7.0.v20110520-0800-7z8gFchFMTdFYKuLqBLqRja9B15B
    Build id: I20110613-1736

    Eclipse Plug-in Development Environment

    Version: 3.7.0.v20110504-0800-7b7qFVpFEx2XnmYtj_9RfO7
    Build id: I20110613-1736

    Eclipse Graphical Editing Framework GEF

    Version: 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
    Build id: 201105020958

    Eclipse RCP

    Version: 3.7.0.v20110216-9DB5Fm1FpBGy_AaVz-mFamgY
    Build id: I20110613-1736

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\myeclipse-blue.exe
    -name
    Myeclipse-blue
    –launcher.library
    C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201103301700\eclipse_3215.dll
    -startup
    C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    -install
    C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10
    -configuration
    C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\configuration
    -vm
    C:\Users\admin\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    deployment.log

    --------------------------------------------------------------------------------------------------------------------------
    MyEclipse: deployment START exploded project: Belsize server: websphere8Server#AppSrv01 time: Mon Jun 03 17:54:45 SGT 2013
    --------------------------------------------------------------------------------------------------------------------------
    WASX7209I: Connected to process "server1" on node admin-PCNode05 using SOAP connector;  The type of process is: UnManagedProcess
    WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[C:\\IBM_8\\WebSphere\\AppServer\\profiles\\AppSrv01\\installableApps\\Belsize.ear, admin-PCNode05Cell, admin-PCNode05, server1, Belsize, {{"BelsizeWeb.war" "BelsizeWeb.war,WEB-INF/web.xml" default_host}}, {{.* .* AppDeploymentOption.Yes 1}}, true, true, true, C:/Users/admin/AppData/Local/Genuitec/MyEclipse Blue Edition 10/configuration/org.eclipse.osgi/bundles/19/1/.cp/scriptutil/scriptutil.jar, C:/IBM_8/WebSphere/AppServer/profiles/AppSrv01/installedApps/admin-PCNode05Cell/Belsize.ear/BelsizeEJB.jar, 6.0, true]"
    C:\IBM_8\WebSphere\AppServer\profiles\AppSrv01\installableApps\Belsize.ear
    admin-PCNode05Cell
    admin-PCNode05
    server1
    Belsize
    {"BelsizeWeb.war" "BelsizeWeb.war,WEB-INF/web.xml" default_host}
    {.* .* AppDeploymentOption.Yes 1}
    -nopreCompileJSPs -distributeApp -server "server1" -useMetaDataFromBinary -deployejb -appname "Belsize" -createMBeansForResources -reloadEnabled -reloadInterval 1 -deployws -validateinstall off -processEmbeddedConfig -filepermission .*.dll=755#.*.so=755#.*.a=755#.*.sl=755  -buildVersion Unknown  -noallowDispatchRemoteInclude  -noallowServiceRemoteInclude  -MapWebModToVH {{"BelsizeWeb.war" "BelsizeWeb.war,WEB-INF/web.xml" default_host}} -JSPReloadForWebMod {{.* .* AppDeploymentOption.Yes 1}}
    true
    true
    true
    C:/Users/admin/AppData/Local/Genuitec/MyEclipse Blue Edition 10/configuration/org.eclipse.osgi/bundles/19/1/.cp/scriptutil/scriptutil.jar
    C:/IBM_8/WebSphere/AppServer/profiles/AppSrv01/installedApps/admin-PCNode05Cell/Belsize.ear/BelsizeEJB.jar
    -deployejb
    -processEmbeddedConfig
    JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2013/06/03 17:55:42 - please wait.
    JVMDUMP032I JVM requested System dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\core.20130603.175542.6872.0001.dmp' in response to an event
    JVMDUMP010I System dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\core.20130603.175542.6872.0001.dmp
    JVMDUMP032I JVM requested Heap dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\heapdump.20130603.175542.6872.0002.phd' in response to an event
    JVMDUMP010I Heap dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\heapdump.20130603.175542.6872.0002.phd
    JVMDUMP032I JVM requested Java dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\javacore.20130603.175542.6872.0003.txt' in response to an event
    JVMDUMP010I Java dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\javacore.20130603.175542.6872.0003.txt
    JVMDUMP032I JVM requested Snap dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\Snap.20130603.175542.6872.0004.trc' in response to an event
    JVMDUMP010I Snap dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\Snap.20130603.175542.6872.0004.trc
    JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
    WASX7017E: Exception received while running file "C:\Users\admin\AppData\Local\Genuitec\Common\plugins\com.genuitec.eclipse.blue.websphere8_9.0.0.me201110171954\installEAR_EJB3.jacl"; exception information: com.ibm.websphere.management.application.client.AppDeploymentException: com.ibm.websphere.management.application.client.AppDeploymentException:  [Root exception is java.lang.OutOfMemoryError: Java heap space]
    java.lang.OutOfMemoryError: java.lang.OutOfMemoryError: Java heap space
    
    JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2013/06/03 17:55:57 - please wait.
    JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2013/06/03 17:55:57 - please wait.
    JVMDUMP032I JVM requested Heap dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\heapdump.20130603.175557.6872.0005.phd' in response to an event
    JVMDUMP010I Heap dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\heapdump.20130603.175557.6872.0005.phd
    JVMDUMP032I JVM requested Heap dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\heapdump.20130603.175557.6872.0006.phd' in response to an event
    JVMDUMP010I Heap dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\heapdump.20130603.175557.6872.0006.phd
    JVMDUMP032I JVM requested Java dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\javacore.20130603.175557.6872.0007.txt' in response to an event
    JVMDUMP010I Java dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\javacore.20130603.175557.6872.0007.txt
    JVMDUMP032I JVM requested Snap dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\Snap.20130603.175557.6872.0009.trc' in response to an event
    JVMDUMP010I Snap dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\Snap.20130603.175557.6872.0009.trc
    JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
    JVMDUMP032I JVM requested Java dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\javacore.20130603.175557.6872.0008.txt' in response to an event
    JVMDUMP010I Java dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\javacore.20130603.175557.6872.0008.txt
    JVMDUMP032I JVM requested Snap dump using 'C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\Snap.20130603.175557.6872.0010.trc' in response to an event
    JVMDUMP010I Snap dump written to C:\Users\admin\AppData\Local\Genuitec\MyEclipse Blue Edition 10\Snap.20130603.175557.6872.0010.trc
    JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
    Exception in thread "Thread-10" Exception in thread "Thread-11" java.lang.OutOfMemoryError: Java heap space
        at org.eclipse.jst.j2ee.commonarchivecore.internal.util.DeleteOnExitUtility$1.run(DeleteOnExitUtility.java:140)
        at java.lang.Thread.run(Thread.java:773)
    java.lang.OutOfMemoryError: Java heap space
        at java.lang.StringCoding.encode(StringCoding.java:595)
        at java.lang.String.getBytes(String.java:692)
        at org.apache.soap.rpc.SOAPContext.setRootPart(SOAPContext.java:401)
        at org.apache.soap.transport.TransportMessage.save(TransportMessage.java:303)
        at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:422)
        at org.apache.soap.rpc.Call.WASinvoke(Call.java:464)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient$8.run(SOAPConnectorClient.java:844)
        at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplateOnce(SOAPConnectorClient.java:837)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:682)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:672)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:658)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:480)
        at com.sun.proxy.$Proxy0.invoke(Unknown Source)
        at com.ibm.ws.management.AdminClientImpl.invoke(AdminClientImpl.java:224)
        at com.ibm.websphere.management.configservice.ConfigServiceProxy.getUnsavedChanges(ConfigServiceProxy.java:216)
        at com.ibm.ws.scripting.AdminConfigClient.hasChanges(AdminConfigClient.java:3096)
        at com.ibm.ws.scripting.WasxShell.leaving(WasxShell.java:1049)
        at com.ibm.ws.scripting.WasxShell.leaving(WasxShell.java:1007)
        at com.ibm.ws.scripting.WasxShell$1.run(WasxShell.java:1106)
    ---------------------------------------------------------------------------------------------------------------
    MyEclipse: deployment END project: Belsize server: websphere8Server#AppSrv01 time: Mon Jun 03 17:56:05 SGT 2013
    ---------------------------------------------------------------------------------------------------------------
    
    #339617 Reply

    support-swapna
    Moderator

    hahagal,

    Can you answer some more questions for us ?

    1) What version of WAS are you using? Is this the developer edition or the complete production version?

    2) What deployment mode are you using for your application? Classic, Enhanced or In-workspace? If you are not deploying using in-workspace deployment, can you check if deploying using the In-Workspace mode helps ?

    3) How large is your application (approximately, if, for instance, you had exported it as an EAR) ? Can you check if the application can be deployed without any issues to WAS outside of MyEclipse Blue ?

    4) You can try increasing the -Xmx256m to a higher value in ..\IBM\WebSphere\AppServer\bin\wsadmin.bat cmd file and see if it helps.

    5) If you have jars from classpath being packaged into EAR/WAR , Please modify workspace preferences. Go to: Window > Preferences > MyEclipse > Java Enterprise Projects > Web Project. Here you should uncheck option “JARs from the build path”. This should prevent MyEclipse from packing runtime (and any other from the classpath) Jars into EAR.

    in case, that you have some others jars attached to the build path, you have two options:
    1. You can use “Deployment assembly” to specify what and where should be packed into war (Project > Properties > MyEclipse > Deployment Assembly)
    2. You can create User Library for WebSphere Runtime. Go to: Window -> Preferences -> Java -> Build Path -> User Libraries, configure User Library and add it to project path (Project -> Properties > Java build path -> Libraries -> Add library -> Select User library). Go once again to Deployment Settings (Window > Preferences > MyEclipse > Java Enterprise Projects > Web Project) and uncheck “Jars from users libraries” and “User library jars exported from dependent java projects” making sure, that two others are checked, in that case.

    Let us know how it works for you.

    #340888 Reply

    hahagal
    Participant

    Hi swapna

    1) WAS 8.0.0.6. Not the developer version

    2) Classic. The in-workspace mode works

    3) I can’t remember the exact earfile size but its quite big. The ear deployed via MEB to the WAS directory is about 90+MB. If I deployed the earfile via WAS console no problem.

    4) I increase it to -Xmx1024m and is work when I deployed via the classic mode.

    5) I have WebSphere 8 runtime in EJB and Web project. I have created a user library for WebSphere 8 runtime and added it as library to EJB and Web. I follow 5.2) Uncheck “Jars from users libraries” and “User library jars exported from dependent java projects” and the other two checked. I also realise after setting the 5.2) the earfile size created and the ear deployed via MEB to the WAS directory is imuch more smaller than previous.

    #340956 Reply

    support-piotr
    Participant

    Hahagal,

    I believe the memory change you did have resolved the issue, as we have confirmed through ticket system. Let us know if you see it again!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Add deployment: OutOfMemoryError: Java heap space

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