WebLogic 7.0sp4 - Console Servlet causes java.lang.OutOfMemoryError
I downloaded various copies of WebLogic. I'm trying to work with WebLogic 7.0sp4
on a Windows 2000 Server machine, but it's not working well at all. I have a
very simple set-up - one JDBC connection pool to an Oracle database, and one EAR
file. This should work easily.
I have a WebLogic 6.0 produced EAR file. The EAR files contains about 110 Entity
BMP EJBs, about 35 Stateless Session EJBs, and 1 Stateful Session EJB, as well
as a collection of supporting Java classes.
WebLogic 6.0 imports the EAR and deploys the beans with no problem. AND after
deploying the beans, WebLogic 6.0 still lets you start a WebLogic Administrative
Console to interact with and manage the WebLogic server. WebLogic 6.0 doesn't
seem to have any problems.
WebLogic 7.0 imports the EAR file, recompiles the beans, and deploys them. If
you DON'T start an admin console, then you can ping the server, ask the server
for its state, etc. - and everything seems fine. Once you start an admin console
and try to get to the login page of the admin console, THEN WebLogic 7.0 runs
out of memory. I've already bumped the minimum heapsize up to 350MB and maxsize
to over 600MB. The application never even uses more than 100MB of real memory
before it crashes with an out-of-memory error. Something about starting the admin
console is crashing the server. The console servlet runs out of memory. Why?
Is there a separate setting to increase the Heap Size used by the Console Servlet?
I'm already using the "-Xms350m -Xmx600m" options when starting WebLogic to set
aside at least 350MB of heap space.
I'm including:
- log files
- config.xml
- startweblogic.cmd
[files.zip]
I do not think this is the right group for your issue. Please post it in the appropriate
one.
"Bill Horan" <[email protected]> wrote:
>
>
>
I downloaded various copies of WebLogic. I'm trying to work with WebLogic
7.0sp4
on a Windows 2000 Server machine, but it's not working well at all.
I have a
very simple set-up - one JDBC connection pool to an Oracle database,
and one EAR
file. This should work easily.
I have a WebLogic 6.0 produced EAR file. The EAR files contains about
110 Entity
BMP EJBs, about 35 Stateless Session EJBs, and 1 Stateful Session EJB,
as well
as a collection of supporting Java classes.
WebLogic 6.0 imports the EAR and deploys the beans with no problem.
AND after
deploying the beans, WebLogic 6.0 still lets you start a WebLogic Administrative
Console to interact with and manage the WebLogic server. WebLogic 6.0
doesn't
seem to have any problems.
WebLogic 7.0 imports the EAR file, recompiles the beans, and deploys
them. If
you DON'T start an admin console, then you can ping the server, ask the
server
for its state, etc. - and everything seems fine. Once you start an admin
console
and try to get to the login page of the admin console, THEN WebLogic
7.0 runs
out of memory. I've already bumped the minimum heapsize up to 350MB
and maxsize
to over 600MB. The application never even uses more than 100MB of real
memory
before it crashes with an out-of-memory error. Something about starting
the admin
console is crashing the server. The console servlet runs out of memory.
Why?
Is there a separate setting to increase the Heap Size used by the Console
Servlet?
I'm already using the "-Xms350m -Xmx600m" options when starting WebLogic
to set
aside at least 350MB of heap space.
I'm including:
- log files
- config.xml
- startweblogic.cmd
Similar Messages
-
Open the console link I have following error:
Error opening /jsp/contentheader/ContentMenu.jsp.
The source of this error is:
javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:523)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:552)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
at jsp_servlet._framework._skeletons._wlsconsole.__nolayout._jspService(__nolayout.java:119)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
at jsp_servlet._framework._skeletons._wlsconsole.__twocollayout._jspService(__twocollayout.java:205)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:211)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:196)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.bea.console.utils.MBeanUtilsInitSingleFileServlet.service(MBeanUtilsInitSingleFileServlet.java:47)
at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: java.lang.OutOfMemoryError: PermGen space
Caused by:
java.lang.OutOfMemoryError: PermGen space
I saw this:
http://www.oracle.com/technetwork/java/javase/memleaks-137499.html#gbyuu
The Oracle JVM Is Crashing Due to an OutOfMemory Error of the Permanent Generation (Doc ID 1077698.1)
How can I check the -XX:MaxPermSize option ?
Thank you
EugenHi Daniele,
ps -ef |grep java
oracle 2566 2519 23 Feb23 pts/1 2-17:35:39 /home/oracle/BIP111170/BIP1117/Oracle_BI1/jdk/bin/java -server -Xms256m -Xmx2048m -XX:MaxPermSize=512m -XX:-UseSSE42Intrinsics -Dweblogic.Name=AdminServer -Djava.security.policy=/home/oracle/BIP111170/BIP1117/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/home/oracle/BIP111170/BIP1117/wlserver_10.3 -Dwls.home=/home/oracle/BIP111170/BIP1117/wlserver_10.3/server -Dweblogic.home=/home/oracle/BIP111170/BIP1117/wlserver_10.3/server -Dcommon.components.home=/home/oracle/BIP111170/BIP1117/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain -Djrockit.optfile=/home/oracle/BIP111170/BIP1117/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.server.config.dir=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/config/fmwconfig/servers/AdminServer -Doracle.domain.config.dir=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/config/fmwconfig -Digf.arisidbeans.carmlloc=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/config/fmwconfig/carml -Digf.arisidstack.home=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/servers/AdminServer/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/home/oracle/BIP111170/BIP1117/oracle_common/modules/oracle.ossoiap_11.1.1,/home/oracle/BIP111170/BIP1117/oracle_common/modules/oracle.oamprovider_11.1.1,/home/oracle/BIP111170/BIP1117/oracle_common/modules/oracle.jps_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dbi.oracle.home=/home/oracle/BIP111170/BIP1117/Oracle_BI1 -DEPM_ORACLE_HOME=/home/oracle/BIP111170/BIP1117/Oracle_BI1 -Dweblogic.MaxMessageSize=50000000 -DEPM_ORACLE_HOME=/home/oracle/BIP111170/BIP1117/Oracle_BI1 -DHYPERION_HOME=/home/oracle/BIP111170/BIP1117/Oracle_BI1 -DEPM_ORACLE_INSTANCE=novalue -Dhyperion.home=/home/oracle/BIP111170/BIP1117/Oracle_BI1 -DEPM_REG_PROPERTIES_PATH=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/config/fmwconfig -Depm.useApplicationContextId=false -Doracle.biee.search.bisearchproperties=/home/oracle/BIP111170/BIP1117/Oracle_BI1/bifoundation/jee/BISearchConfig.properties -Dweblogic.management.clearTextCredentialAccessEnabled=true -Doracle.notification.filewatching.interval=2000 -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.SSL.enableJSSE=true -Dfile.encoding=utf-8 -Doracle.ecsf.security.service=oracle.biee.search.security.BISearchSecurityService -Doracle.ecsf.configuration.class=oracle.biee.search.services.BISearchServiceConfiguration -Dxdo.server.config.dir=/home/oracle/BIP111170/BIP1117/user_projects/domains/bifoundation_domain/config/bipublisher -DXDO_FONT_DIR=/home/oracle/BIP111170/BIP1117/Oracle_BI1/common/fonts -Dem.oracle.home=/home/oracle/BIP111170/BIP1117/oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/home/oracle/BIP111170/BIP1117/patch_wls1035/profiles/default/sysext_manifest_classpath weblogic.Server
oracle 4716 2818 0 Feb23 ? 00:20:32 /home/oracle/BIP111170/BIP1117/Oracle_BI1/jdk/bin/java -Doracle.opmn.uid=1092569638 -Doracle.opmn.index=1 -Doracle.process.uid=1092569638 -Doracle.process.index=1 -Doracle.component.configpath=/home/oracle/BIP111170/BIP1117/instances/instance1/config/OracleBIJavaHostComponent/coreapplication_obijh1 -Doracle.component.logpath=/home/oracle/BIP111170/BIP1117/instances/instance1/diagnostics/logs/OracleBIJavaHostComponent/coreapplication_obijh1/ -Doracle.instance.name=instance1 -Doracle.instance.uid=1092569638@instance1 -Doracle.admin.host=10.171.48.35 -Doracle.admin.port=7001 -Doracle.admin.protocol=N/A -Doracle.admin.username=weblogic -Doracle.admin.registered=true -Dcommon.components.home=/home/oracle/BIP111170/BIP1117/oracle_common -server -Xmx1024M -Xrs -Djava.security.manager=default -DXDO_FONT_DIR=/home/oracle/BIP111170/BIP1117/Oracle_BI1/common/fonts -Djava.security.policy=/home/oracle/BIP111170/BIP1117/instances/instance1/config/OracleBIJavaHostComponent/coreapplication_obijh1/java.policy -Djava.util.logging.config.class=oracle.core.ojdl.logging.LoggingConfiguration -Doracle.core.ojdl.logging.config.file=/home/oracle/BIP111170/BIP1117/instances/instance1/config/OracleBIJavaHostComponent/coreapplication_obijh1/logging-config.xml -Doracle.home=/home/oracle/BIP111170/BIP1117/Oracle_BI1 -Doracle.instance=/home/oracle/BIP111170/BIP1117/instances/instance1 -Doracle.component.type=OracleBIJavaHostComponent -Doracle.component.name=coreapplication_obijh1 -classpath /home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.odl_11.1.1/ojdl.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/bifoundation/javahost/lib/core/sautils.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/bifoundation/javahost/lib/core/mad.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/bifoundation/javahost/lib/core/sawconnect.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/bifoundation/javahost/lib/core/javahost.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/opmn/lib/ons.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.jps_11.1.1/jps-manifest.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.jps_11.1.1/jps-api.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.jps_11.1.1/jps-common.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n-collation.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n-mapping.jar:/home/oracle/BIP111170/BIP1117/Oracle_BI1/../oracle_common/modules/oracle.dms_11.1.1/dms.jar com.siebel.analytics.javahost.standalone.Main
oracle 8771 8731 0 13:06 pts/5 00:00:00 grep java
java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (rhel-1.45.1.11.1.el6-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Thank you
Eugen -
Big ANE causes java.lang.OutOfMemoryError when packaging Air application
Hi,
I'm working on an Air mobile game that uses ANE on iOS and Android. I'm in the process of creating a new ANE and face a problem on the Android side.
My ANE requires an external framework (Burstly, http://burstly.com). If I just link the Android project to Burstly's .jar file, I get errors in "adb logcat", like:
I/dalvikvm(16074): Could not find method com.burstly.lib.BurstlySdk.init, referenced from method com.freshplanet.burstly.functions.InitBurstlyFunction.call
In order to include Burstly's files in my own .jar, I unzip Burstly's .jar file and repackage them with my compiled code in a unique .jar (following advice on http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries).
Problem: Burstly's SDK includes thousands of files. It doesn't create any trouble when packaging the ANE, but when I try to package the Air application, I get the following error:
dx tool failed:
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at com.android.dx.util.IntList.<init>(IntList.java:87)
at com.android.dx.rop.code.RopMethod.calcPredecessors(RopMethod.java:174)
at com.android.dx.rop.code.RopMethod.labelToPredecessors(RopMethod.java:95)
at com.android.dx.ssa.back.IdenticalBlockCombiner.process(IdenticalBlockCombiner.java:74)
at com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:132)
at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:76)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:103)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
at com.android.dx.command.dexer.Main.processClass(Main.java:299)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:278)
at com.android.dx.command.dexer.Main.access$100(Main.java:56)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
at com.android.dx.command.dexer.Main.processOne(Main.java:247)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
at com.android.dx.command.dexer.Main.run(Main.java:139)
at com.android.dx.command.dexer.Main.main(Main.java:120)
at com.android.dx.command.Main.main(Main.java:89)
I read that the solution to eliminate this error is to give Java the parameters "-Xms...M -Xmx...M", with "..." being a high-enough number. Note that I'm working on a machine with 8GB of RAM. I tried to package the app in command line to be able to pass these parameters:
/usr/bin/java -Xms512M -Xmx4096M -jar "/Applications/Adobe Flash Builder 4.6/sdks/4.6.0air31/lib/adt.jar" -package -target apk -storetype pkcs12 -keystore [...].p12 Main.apk Main-app.xml Main.swf -extdir "/Users/alex/Documents/Adobe Flash Builder 4.6/.metadata/.plugins/com.adobe.flexbuilder.project.ui/ANEFiles/front-end-mobile/com.ado be.flexide.multiplatform.ios.platform"
But when I run a "ps -ef | grep java", I can see that adt runs another Java program (dx) without transmitting my -Xms -Xmx parameters:
/usr/bin/java -jar /Applications/Adobe Flash Builder 4.6/sdks/4.6.0air31/lib/android/bin/dx.jar --dex --output=/private/var/folders/t9/3kw74cx14nv2xg9tgmx9m1jc0000gp/T/b5757d93-1e93-439c-8f6d -c93e4933f6f1/outputDEX.dex [... bunch of jars]
Any idea to solve this issue?
Thanks
AlexI solved my issue by setting the _JAVA_OPTIONS environment variable. (Note: there are two underscores)
I added the following line to my .bash_profile:
export _JAVA_OPTIONS="-Xms1024m -Xmx4096m -XX:MaxPermSize=512m"
Now everytime a Java program is launched from the command line, I see the following message:
Picked up _JAVA_OPTIONS: -Xms1024m -Xmx4096m -XX:MaxPermSize=512m
And my application packaging runs just fine now.
I still have an issue though: this trick solved the problem for packaging the app from the command line, but the _JAVA_OPTIONS are not picked up when packaging from Flash Builder, so it still crashes there.
Note that my Adobe Flash Builder 4.6.ini contains the following options:
-Xms512m
-Xmx1676m
-XX:MaxPermSize=512m
-XX:PermSize=64m
1676m is the highest number I can put before Flash Builder refuses to launch. I'm not sure if these parameters are actually passed to the VM that runs de dx.jar program, or if it's just for the ActionScript compiler. But anyway my app packaging still crashes in Flash Builder.
If someone knows a way to force Flash Builder to pickup the _JAVA_OPTIONS set in the command line, let me know :-)
Thanks
Alex -
WebLogic startup --- java.lang.OutOfMemoryError
Hello,
after many Error's i get now this trace.
Until now, i fixed the MBean error, and the Permgen error. [Link | https://kr.forums.oracle.com/forums/thread.jspa?threadID=2306365 ]
But now i get this ... and google dont help me with the printed errors.
Does anyone of you got a hint for me?
greets Jens
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
starting weblogic with Java version:
java version "1.7.0_19"
OpenJDK Runtime Environment (rhel-2.3.9.1.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
Starting WLS with line:
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/bin/java -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/opt/oracle/wlserver_12.1/server/lib/weblogic.policy -Djava.endorsed.dirs=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64/jre/lib/endorsed:/opt/oracle/wlserver_12.1/endorsed -da -Dplatform.home=/opt/oracle/wlserver_12.1 -Dwls.home=/opt/oracle/wlserver_12.1/server -Dweblogic.home=/opt/oracle/wlserver_12.1/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/opt/oracle/patch_wls1211/profiles/default/sysext_manifest_classpath:/opt/oracle/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic.Server
<May 27, 2013 2:56:51 PM CEST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<May 27, 2013 2:56:51 PM CEST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<May 27, 2013 2:56:51 PM CEST> <Notice> <WebLogicServer> <BEA-000395> <The following extensions directory contents added to the end of the classpath:
/opt/oracle/user_projects/domains/weblogic/lib/hsql.jar:/opt/oracle/user_projects/domains/weblogic/lib/portal-service.jar:/opt/oracle/user_projects/domains/weblogic/lib/portlet.jar.>
<May 27, 2013 2:56:52 PM CEST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with OpenJDK 64-Bit Server VM Version 23.7-b01 from Oracle Corporation.>
<May 27, 2013 2:56:53 PM CEST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012
WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012
WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012
WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012
WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012
WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012
WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012
WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012
WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012
WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012
WebLogic Server 12.1.1.0 Wed Dec 7 08:40:57 PST 2011 1445491 >
<May 27, 2013 2:56:56 PM CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<May 27, 2013 2:56:56 PM CEST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
<May 27, 2013 2:56:56 PM CEST> <Notice> <LoggingService> <BEA-320400> <The log file /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/logs/AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms, such as Windows.>
<May 27, 2013 2:56:56 PM CEST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/logs/AdminServer.log00012. Log messages will continue to be logged in /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/logs/AdminServer.log.>
<May 27, 2013 2:56:56 PM CEST> <Notice> <Log Management> <BEA-170019> <The server log file /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<May 27, 2013 2:57:01 PM CEST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<May 27, 2013 2:57:05 PM CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
<May 27, 2013 2:57:05 PM CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
May 27, 2013 2:57:22 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Detected server weblogic
Loading zip:/opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay_Deployment/wdm7jy/war/WEB-INF/lib/portal-impl.jar!/system.properties
May 27, 2013 2:57:23 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Global shared lib directory /opt/oracle/modules/
May 27, 2013 2:57:23 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Global lib directory /opt/oracle/user_projects/domains/weblogic/lib/
May 27, 2013 2:57:23 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Portal lib directory /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay_Deployment/wdm7jy/war/WEB-INF/lib/
May 27, 2013 2:57:23 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
INFO: Properties for portal loaded from [file:/opt/oracle/user_projects/domains/portal-ext.properties, zip:/opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay_Deployment/wdm7jy/war/WEB-INF/lib/portal-impl.jar!/portal.properties]
Loading zip:/opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay_Deployment/wdm7jy/war/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/opt/oracle/user_projects/domains/portal-ext.properties
<May 27, 2013 2:57:58 PM CEST> <Warning> <HTTP> <BEA-101342> <liferay_Deployment: Error(s) encountered while precompiling JSP jspURI
configuration.jsp:17:18: Error in "init.jsp" at line 249: The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
<%@ include file="/html/portlet/asset_publisher/init.jsp" %>
^--------------------------------------^
>
<May 27, 2013 2:57:59 PM CEST> <Warning> <J2EE> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: javax.crypto, referenced from: /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay_Deployment/wdm7jy/war/WEB-INF/lib/_wl_cls_gen.jar]. Ensure that the referenced optional package has been deployed as a library.>
14:58:20,366 INFO [[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'][DialectDetector:71] Determine dialect for Oracle 11
14:58:20,556 INFO [[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'][DialectDetector:136] Found dialect org.hibernate.dialect.Oracle10gDialect
May 27, 2013 2:58:33 PM net.sf.ehcache.Cache initialise
WARNING: Cache: com.liferay.portal.service.impl.PortletLocalServiceImpl has a maxElementsInMemory of 0. In Ehcache 2.0 this has been changed to mean a store with no capacity limit. Set it to 1 if you want no elements cached in memory
May 27, 2013 2:59:17 PM org.quartz.impl.StdSchedulerFactory instantiate
INFO: Using default implementation for ThreadExecutor
^X ^X^X^X^XException in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception in thread "[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception in thread "[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception in thread "[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'"
>
<May 27, 2013 2:57:59 PM CEST> <Warning> <J2EE> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: javax.crypto, referenced from: /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay_Deployment/wdm7jy/war/WEB-INF/lib/_wl_cls_gen.jar]. Ensure that the referenced optional package has been deployed as a library.>
14:58:20,366 INFO [[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'][DialectDetector:71] Determine dialect for Oracle 11
14:58:20,556 INFO [[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'][DialectDetector:136] Found dialect org.hibernate.dialect.Oracle10gDialect
May 27, 2013 2:58:33 PM net.sf.ehcache.Cache initialise
WARNING: Cache: com.liferay.portal.service.impl.PortletLocalServiceImpl has a maxElementsInMemory of 0. In Ehcache 2.0 this has been changed to mean a store with no capacity limit. Set it to 1 if you want no elements cached in memory
May 27, 2013 2:59:17 PM org.quartz.impl.StdSchedulerFactory instantiate
INFO: Using default implementation for ThreadExecutor
^X ^X^X^X^XException in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception in thread "[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'"
Edited by: 1008097 on 28.05.2013 00:12I think you should consider increasing heap size and check whether you still face the OOM. In addition to that you can consider implementing GC logging using: -verbose:gc -XX:PrintGCTimeStamps and other parameters..
http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html
You can consider implementing -XX:HeapDumpOnOutOfMemory or capture heap dump using jmap etc and check out the contents in the heap using MAT to understand the possible suspects.
https://blogs.oracle.com/alanb/entry/heap_dumps_are_back_with
The above are the basic stuff that needs to be looked into to understand the cause of this issue.
Cheers!!
AJ
Edited by: AJ on May 28, 2013 4:28 PM -
Java.lang.OutOfMemoryError: PermGen space
<Oct 25, 2011 12:15:53 AM IST> <Error> <netuix> <BEA-423405> <An exception [java.lang.OutOfMemoryError: PermGen space] w
as thrown while rendering the content at [jsp/changemgmt/ChangeManager.jsp].
javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:523)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.ja
va:119)
Truncated. see log file for complete stacktrace
Caused By: java.lang.OutOfMemoryError: PermGen space
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
at java.security.AccessController.doPrivileged(Native Method)
Truncated. see log file for complete stacktrace
>
<Oct 25, 2011 12:15:53 AM IST> <Error> <netuix> <BEA-423137> <There was an error loading the requested URI /jsp/changemg
mt/ChangeManager.jsp.>
<Oct 25, 2011 12:16:14 AM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@22272290[app:consoleapp module:console path:
/console spec-version:2.5]] Root cause of ServletException.
java.lang.OutOfMemoryError: PermGen space
>
<Oct 25, 2011 12:16:15 AM IST> <Error> <HTTP> <BEA-101107> <[ServletContext@22272290[app:consoleapp module:console path:
/console spec-version:2.5]] Problem occurred while serving the error page.
java.lang.OutOfMemoryError: PermGen space
>
Exception in thread "[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '1' fo
r queue: 'weblogic.kernel.Default (self-tuning)'"
Exception in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '0' fo
r queue: 'weblogic.kernel.Default (self-tuning)'"
Exception in thread "[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '3' fo
r queue: 'weblogic.kernel.Default (self-tuning)'"
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler-
the VM may need to be forcibly terminated
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler-
the VM may need to be forcibly terminated
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler-
the VM may need to be forcibly terminated
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler-
the VM may need to be forcibly terminated
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler-
the VM may need to be forcibly terminated
Java HotSpot(TM) Client VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal UNKNOWN to handler-
the VM may need to be forcibly terminated
Environment:
OS: Windows Vista
Weblogic 10.3.5
JDK: java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
I created a new domain and when access the Admin console I get the " OutOfMemory " Error
I revisited the domain creation steps and identified that when selecting the available JDK it shows " JRockit SDK 1.7.0 @ E:\Development\Java\jdk1.7.0"
But if I do a java-version I get Sun JDK
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
Start-up Argument
JAVA Memory arguments: -Xms512m -Xmx512m
WLS Start Mode=Production
CLASSPATH=D:\BEA_HOME\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\BEA_HOME\patch_ocp360\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\DEVELO~1\Java\JDK17~1.0\lib\tools.jar;D:\BEA_HOME\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\BEA_HOME\WLSERV~1.3\server\lib\weblogic.jar;D:\BEA_HOME\modules\features\weblogic.server.modules_10.3.5.0.jar;D:\BEA_HOME\WLSERV~1.3\server\lib\webservices.jar;D:\BEA_HOME\modules\ORGAPA~1.1/lib/ant-all.jar;D:\BEA_HOME\modules\NETSFA~1.0_1/lib/ant-contrib.jar;D:\BEA_HOME\WLSERV~1.3\common\derby\lib\derbyclient.jar;D:\BEA_HOME\WLSERV~1.3\server\lib\xqrl.jar;.;C:\Program Files\Java\jre7\lib\ext\QTJava.zip
PATH=D:\BEA_HOME\patch_wls1035\profiles\default\native;D:\BEA_HOME\patch_ocp360\profiles\default\native;D:\BEA_HOME\WLSERV~1.3\server\native\win\32;D:\BEA_HOME\WLSERV~1.3\server\bin;D:\BEA_HOME\modules\ORGAPA~1.1\bin;E:\DEVELO~1\Java\JDK17~1.0\jre\bin;E:\DEVELO~1\Java\JDK17~1.0\bin;D:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\QuickTime\QTSystem\;D:\BEA_HOME\WLSERV~1.3\server\native\win\32\oci920_8
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
starting weblogic with Java version:
Starting WLS with line:
E:\DEVELO~1\Java\JDK17~1.0\bin\java -Xms512m -Xmx512m -Dweblogic.Name=MyAdmin -Djava.security.policy=D:\BEA_HOME\WLSERV~1.3\server\lib\weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=D:\BEA_HOME\WLSERV~1.3 -Dwls.home=D:\BEA_HOME\WLSERV~1.3\server -Dweblogic.home=D:\BEA_HOME\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=D:\BEA_HOME\patch_wls1035\profiles\default\sysext_manifest_classpath;D:\BEA_HOME\patch_ocp360\profiles\default\sysext_manifest_classpath weblogic.Server
<Oct 25, 2011 12:24:20 AM IST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Oct 25, 2011 12:24:20 AM IST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Oct 25, 2011 12:24:21 AM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 21.0-b17 from Oracle Corporation>
<Oct 25, 2011 12:24:22 AM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
Any possible pointers to the issue. Is it a issue with incompatible JDK 1.7 with weblogic 10.3.5.I just checked on the Oracle Support site. Oracle WebLogic Server 10.3.5.0.0 is certified with Oracle JDK (1.6.0_24+). There are other JDKs listed but they're all in the Java 6 family, no Java 7.
Also, Oracle WebLogic Server 12.1.1.0.0 shows as certified with Oracle JDK 1.6.0_29+.
Of course, this is all as of this writing.
D -
Java.lang.OutOfMemoryError: Perm Space in Weblogic10.3
Hi Friends
I installed an weblogic server on my machine with 1GB RAM, windows XP sp2.
I made simple application and deployed it on the server just after few sec of usage the weblogic server is giving this error
java.lang.OutOfMemoryError: Perm Space
i deployed the application in new domain that i created and the application is using the jdbc connection in weblogic rather then the urlI am also getting the error
Weblogic 10.3 gives out of memory
Followings thing I have done
1) Increased the -Xms512m
2) Increased the -Xmx1024m
3) Increased the max perm size in setdomainenv.bat
Is there any other way to resolve this issue I have a 2 GB system .
It is a production machine and the size of the log is around 4 GB .When analysed the log I found many connection refused error
INSIDE Exception
com.logging.LogRuntimeException: Failed to create a socket on 12.356.78.91:1112
at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.j
ava:187)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterce
ptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionIntercepto
r.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:15)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:30)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:8
9)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterce
ptor.java:126)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionIntercepto
r.java:114)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy160.getCurrentMibValue(Unknown Source)
at com.ServiceBean_asn8tg_WSOImpl.__WL_get_WS(ServiceBean_asn8tg
_WSOImpl.java:9966)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.server.ejb.WsEjb.invoke(WsEjb.java:50)
at weblogic.wsee.jaxws.WLSEjbInstanceResolver$WLSEjbInvoker.invoke(WLSEjbInstanceResolver.java:187)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:71)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:272)
at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:185)
at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:209)
Please help me to fix this issue -
Java.lang.OutOfMemoryError + java.lang.VerifyError
Hi all,
We are working on an ADF 11g application where several transient attributes are feeded by Groovy expressions. Once deployed on a standalone WLS, we're getting java.lang.VerifyError and java.lang.OutOfMemoryError exceptions.
Need some help with JVM tuning on Weblogic Server: SUSE Linux Enterprise Server 11 (x86_64) with 4GB RAM
Here are the current JVM arguments for the managed server:
-Xms256m -Xmx512m -XX:MaxPermSize=512m ...
Has anybody ever seen this before? Any help will be appreciated.
Version
ADF Business Components 11.1.1.56.60
Java(TM) Platform 1.6.0_18
Oracle IDE 11.1.1.3.37.56.60
[2010-12-10T11:10:42.614+01:00] [mserver1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000InFkhRAFGBO5yjw0yW1CxDpG0006Zk,0] [APP: Adoapp#20101210_9515_9510] [dcid: 7e59a3b02e4976f0:7c638206:12c9c80c29a:-8000-0000000000007c4e] Server Exception during PPR, #1[[
javax.servlet.ServletException: java.lang.OutOfMemoryError
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
Caused by: java.lang.OutOfMemoryError
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at bc4j.com_ado_model_mng_queries_BudgetView_ImpAn1Sum.gs.run(bc4j.com_ado_model_mng_queries_BudgetView_ImpAn1Sum.gs.groovy:1)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:816)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:867)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:761)
at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2029)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1671)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1831)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:796)
at oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(ViewRowImpl.java:878)
at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:826)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1139)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:733)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getInputValueInRow(JUCtrlValueBinding.java:2798)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getInputValue(JUCtrlValueBinding.java:2702)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getInputValue(JUCtrlValueBinding.java:2691)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.getInputValue(FacesCtrlAttrsBinding.java:185)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:2273)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.internalGet(FacesCtrlAttrsBinding.java:277)
at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:750)
at javax.el.MapELResolver.getValue(MapELResolver.java:164)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRenderer.java:184)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
... 35 more
[2010-12-10T11:10:49.258+01:00] [mserver1] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000InFkj3YFGBO5yjw0yW1CxDpG0006Zl,0] [APP: Adoapp#20101210_9515_9510] [dcid: 7e59a3b02e4976f0:7c638206:12c9c80c29a:-8000-0000000000007c4f] Server Exception during PPR, #2[[
javax.servlet.ServletException: java.lang.VerifyError: (class: org/codehaus/groovy/runtime/ArrayUtil, method: createArray signature: ()[Ljava/lang/Object;) Illegal type in constant pool
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.VerifyError: (class: org/codehaus/groovy/runtime/ArrayUtil, method: createArray signature: ()[Ljava/lang/Object;) Illegal type in constant pool
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:200)
at bc4j.run(bc4j.groovy:1)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:816)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:867)
at oracle.jbo.ExprEval.getCurrentDate(ExprEval.java:542)
at oracle.jbo.ExprEval$ExprValueSupplierGroovyBinding.getVariable(ExprEval.java:426)
at groovy.lang.Binding.getProperty(Binding.java:93)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:237)
at bc4j.bindDataCP.gs.run(bc4j.bindDataCP.gs.groovy:1)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:816)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:867)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:761)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
... 35 moreEdited by: Barbara Gelabert on 27-dic-2010 6:21Could you give me more detail about that?now I run the main.fx in the eclipse project,the jnlp file existed in the dist directory in the project after run successfully.
My problem is that the outofMemories ofter proudces when my server push data to client. -
"java.lang.OutOfMemoryError: Java heap space" while trying to read Excel.
Hi Experts,
Here is my query. I'm trying to upload excel data into database table. This excel contains more than 20000 records. I'm storing this data in a vector after reading it & passing this vector as a parameter to another method(not mentioned in the below code) which writes into the database. The code works for records <4000, but fails to read beyond that & throws exception as below.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Java heap space
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:433)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.ServletException: Java heap space
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.readexcelsap_jsp._jspService(readexcelsap_jsp.java:365)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.OutOfMemoryError: Java heap space
Below is the code for reference. Kindly Help me in getting this heap space error rectified or suggest me alternate ways.
I tried increasing Heap space as googled but in vain.
<%!
private Vector readExcelSheet(String uploadedFilePath, int sheetNo) throws IOException
Vector allRowInfo = null;
try
HSSFSheet sheet= getWorkSheet(uploadedFilePath,sheetNo);
//System.out.println(uploadedFilePath);
//System.out.println(sheetNo);
//System.out.println("--Sheet--"+sheet);
//System.out.println("--Sheet--"+sheet.getLastRowNum());
if(sheet!=null)
allRowInfo = new Vector();
for(int i=0;i<=sheet.getLastRowNum();i++)
HSSFRow row= sheet.getRow(i);
Vector eachRowInfo = new Vector();
for(short j=0;j<row.getLastCellNum();j++)
eachRowInfo.add(getCellContents(row.getCell(j)));
//System.out.println("--"+row.getCell(j));
allRowInfo.add(eachRowInfo);
else
allRowInfo = null;
//return allRowInfo;
catch (FileNotFoundException ex)
System.out.println("-- Error in reading--getWorkSheet -- 1--"+ex);
allRowInfo = null;
catch (IOException ex)
System.out.println("-- Error in reading--getWorkSheet-- 2 --"+ex);
allRowInfo = null;
catch (IndexOutOfBoundsException ex)
System.out.println("-- Error in reading--getWorkSheet-- 2 --"+ex);
allRowInfo = null;
catch (NullPointerException ex)
System.out.println("-- Error in reading--getWorkSheet --"+ex);
allRowInfo = null;
catch(Exception e)
System.out.println(e.getMessage());
e.printStackTrace();
allRowInfo = null;
return allRowInfo;
%>
<%!
private HSSFSheet getWorkSheet(String uploadedFilePath, int sheetNo) throws IOException
HSSFSheet sheet = null;
try
FileInputStream inputStream=new FileInputStream(uploadedFilePath);
POIFSFileSystem poisFile=new POIFSFileSystem(inputStream);
HSSFWorkbook workBook= new HSSFWorkbook(poisFile);
sheet = workBook.getSheetAt(sheetNo);
catch (FileNotFoundException ex)
System.out.println("-- Error in reading--getWorkSheet --"+ex);
sheet = null;
catch (IOException ex)
System.out.println("-- Error in reading--getWorkSheet --"+ex);
sheet = null;
catch (IndexOutOfBoundsException ex)
System.out.println("-- Error in reading--getWorkSheet --"+ex);
sheet = null;
catch (NullPointerException ex)
System.out.println("-- Error in reading--getWorkSheet --"+ex);
sheet = null;
catch(Exception e)
System.out.println(e.getMessage());
e.printStackTrace();
sheet = null;
return sheet;
%>
<%!
public String getCellContents(HSSFCell cell)
String cellValue="";
String cellValue1="";
if(cell!=null)
int cellType= cell.getCellType();
if(cellType==HSSFCell.CELL_TYPE_NUMERIC)
cellValue=(float)cell.getNumericCellValue()+"";
if(cellType==HSSFCell.CELL_TYPE_STRING)
cellValue1=cell.getStringCellValue();
StringBuffer sb = new StringBuffer();
for(int i = 0; i < cellValue1.length(); i++)
sb.append(cellValue1.charAt(i));
if(cellValue1.charAt(i)=='\'')
sb.append('\'');
cellValue = sb.toString();
return cellValue;
%>
<html>
<body>
<%
String file_Name="Myexcel.xls";
String path = "D://Test Upload//"+file_Name;
Vector list = readExcelSheet(path,0);
</html>
</body>Regards
Venky
Edited by: Venky_86 on Jun 17, 2009 6:05 AMHOW did you increase the heap space? As that is the only solution you have in this case really.
It is a known fact that POI can use up a lot of memory for big spreadsheets. If at all possible, I would try to switch to plain text comma separated files / tab delimited files. If you cannot do that, I would try to put a size restriction on the sheets that your application will process to get rid of the heap space risk. A sheet can contain 20000 records, or four sheets can contain 5000 records; in both cases you process the exact same data, but at only 25% of the total memory usage. -
Java.lang.OutOfMemoryError when viewing JSP with records from Oracle DB
Hi,
I did an import of data from my damp file.I have exported the file from my other Oracle10g database I have the following error after I try to access data from my table I populated with import:
javax.servlet.ServletException: Servlet execution threw an exception
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
root cause
java.lang.OutOfMemoryError: Java heap space
oracle.jdbc.driver.DateTimeCommonAccessor.getDate(DateTimeCommonAccessor.java:105)
oracle.jdbc.driver.OracleResultSetImpl.getDate(OracleResultSetImpl.java:737)
oracle.jdbc.driver.OracleResultSet.getDate(OracleResultSet.java:1637)
org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.getDate(DelegatingResultSet.java:255)
com.myapp.app.OrderHelper.getAllOrders(OrderHelper.java:4137)
com.myapp.app.GetOrderDO.execute(GetOrderDO.java:172)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
a fragment of my OrderHelper with line where error occurs (line 4137):
public class Orders {
public List getAllOrders(){
List lineOrders = new ArrayList();
Connection conn = null;
Statement stat = null;
ResultSet rst = null;
OrdersDTO order = null;
String select = "SELECT * FROM TBL_ORDERS";
DbConnection dbConn = new DbConnection();
try {
conn = dbConn.getDbConnection(Constants.MY_JNDI);
stat = conn.createStatement();
rst = stat.executeQuery(select);
while(rst.next()){
order = new OrdersDTO();
order.setOrderAsmtDate(rst.getDate("order_asmt_date"));////line: 4137
lineOrders.add(order);
}catch (SQLException ex) {
ex.printStackTrace();
} finally{
SQLHelper.cleanUp(rst, stat, conn);
return lineOrders;
GetOrderDO.java is just my action class which calls the getAllOrders method for my JSP to list orders. Am using Apache Tomcat/5.5.17 and struts 1.2.9 and Orcale10g.
thnx,
xsiyezthank you Avi and Bipin for the responce. I have installed Oracle on my RedHat Enterprise Linux 4 box and did an export of the TBL_ORDERS table from my database on Windows Vista . Am not getting this error when running my application on this machine. I get the error on when I run it on windows vista where I have also installed Oracle 10g and running tomcat.
Yes Avi the ArrayList object is actually getting to big. Its returning more than 100 000 rows. I am using displaytag to do pegination. Any guidelines on how I can increase jvm heap memory on of tomcat?
Thanx. -
Java.lang.OutOfMemoryError in UCM
hi all,
We are getting the following error in Oracle UCM since last night:
Event generated by user 'weblogic' at host 'CIS'. System code execution error. java.lang.OutOfMemoryError: getNewTla. [ Details ]
An error has occurred. The stack trace below shows more information.
!csUserEventMessage,weblogic,CIS!csSystemCodeExecutionError!syJavaExceptionWrapper,java.lang.OutOfMemoryError: getNewTla
intradoc.common.ServiceException:
at intradoc.server.ServiceManager.onError(ServiceManager.java:703)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:303)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.OutOfMemoryError: getNewTla
at java.nio.CharBuffer.wrap(CharBuffer.java:133)
at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:246)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
at java.io.PrintStream.newLine(PrintStream.java:495)
at java.io.PrintStream.println(PrintStream.java:774)
at java.lang.Throwable.printStackTrace(Throwable.java:461)
at java.lang.Throwable.printStackTrace(Throwable.java:451)
at intradoc.common.DefaultReportDelegator.message(DefaultReportDelegator.java:160)
at intradoc.common.Report.messageInternal(Report.java:170)
at intradoc.common.Report.message(Report.java:145)
at intradoc.common.Report.error(Report.java:397)
at intradoc.server.ServiceRequestImplementor.logErrorWithHostInfo(ServiceRequestImplementor.java:1850)
at intradoc.server.Service.logErrorWithHostInfo(Service.java:2151)
at intradoc.server.Service.logFileRequestError(Service.java:2276)
at intradoc.server.FileService.logError(FileService.java:1625)
at intradoc.server.ServiceRequestImplementor.reportError(ServiceRequestImplementor.java:1806)
at intradoc.server.ServiceRequestImplementor.handleErrorResponse(ServiceRequestImplementor.java:1762)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:816)
at intradoc.server.Service.doRequest(Service.java:1865)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
... 4 more
This is happening too many times. We are able to start the server and it is up for sometime and then it gives the mentioned error. This is urgent. Please help.
Thanks and Regards,
NithyaHi ,
Please find the details below:
1. What version of UCM server is this issue seen ?
UCM 11g
2. What specific action is when the out of memory shows up ? As in is it during checking in , searching etc .
Portal uses RIDC API to get data files from UCM. So this happens while fetching data files.
3. What are the Java memory arguments provided to the system or is it running the default settings ?
The machine we are running Oracle UCM on is 4 GB and it has no other applcation running on it.
Please find below the memory details provided in the setDomainenv file:
set XMS_SUN_64BIT=1024
set XMS_SUN_32BIT=1024
set XMX_SUN_64BIT=1024
set XMX_SUN_32BIT=1024
set XMS_JROCKIT_64BIT=1024
set XMS_JROCKIT_32BIT=1024
set XMX_JROCKIT_64BIT=1024
set XMX_JROCKIT_32BIT=1024
if "%JAVA_VENDOR%"=="Sun" (
set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512m
set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
) else (
set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx512m
set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
if "%JAVA_VENDOR%"=="Oracle" (
set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_JROCKIT_64BIT%m -Xmx%XMX_JROCKIT_64BIT%m
set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_JROCKIT_32BIT%m -Xmx%XMX_JROCKIT_32BIT%m
) else (
set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_SUN_64BIT%m -Xmx%XMX_SUN_64BIT%m
set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_SUN_32BIT%m -Xmx%XMX_SUN_32BIT%m
Please advice.
Thanks
Nithya -
Java.lang.OutOfMemoryError and PermGen errors
We are getting outOfMemoryErrors and cannot find the cause. Does anybody know how to solve this? Every day we get OutOfMemory and PermGen errors, and nobody seems to be able to solve them. This is from our logs:
<2008-11-18 13:45:04,627> <ERROR> <crps.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
javax.ejb.EJBException: java.lang.OutOfMemoryError
at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:317)
at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.resolveCallback(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.delivery.ResolveCallbackMessageHandler.handle(ResolveCallbackMessageHandler.java:46)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
at oracle.classloader.SharedCodeSource.ensureOpen(SharedCodeSource.java:948)
at oracle.classloader.SharedCodeSource.getResourceBytes(SharedCodeSource.java:967)
at oracle.classloader.CodeSourceSearchPolicy.findResourceBytes(CodeSourceSearchPolicy.java:57)
at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1455)
at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass(SearchPolicy.java:396)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at java.sql.DriverManager.getCallerClass(DriverManager.java:442)
at java.sql.DriverManager.getDrivers(DriverManager.java:336)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:587)
at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:116)
at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:75)
at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1377)
at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
at oracle.j2ee.connector.ConnectionPoolImpl$FixedWaitPoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1455)
at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1575)
at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1520)
at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1465)
at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
at com.collaxa.cube.engine.data.ConnectionFactory$ConnectionFactoryImpl.getConnection(ConnectionFactory.java:336)
at com.collaxa.cube.engine.data.ConnectionFactory.getConnection(ConnectionFactory.java:140)
at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.__loadCallback(BaseDeliveryPersistenceAdaptor.java:368)
at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadCallback(BaseDeliveryPersistenceAdaptor.java:247)
at com.collaxa.cube.engine.data.DeliveryPersistenceMgr.loadCallback(DeliveryPersistenceMgr.java:48)
at com.collaxa.cube.engine.delivery.DeliveryService.resolveCallback(DeliveryService.java:598)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.resolveCallback(CubeDeliveryBean.java:307)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
... 28 more
<2008-11-18 13:45:04,650> <ERROR> <crps.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
at oracle.classloader.SharedCodeSource.ensureOpen(SharedCodeSource.java:948)
at oracle.classloader.SharedCodeSource.getResourceBytes(SharedCodeSource.java:967)
at oracle.classloader.CodeSourceSearchPolicy.findResourceBytes(CodeSourceSearchPolicy.java:57)
at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1455)
at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass(SearchPolicy.java:396)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1050)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:925)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:762)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142)
at com.collaxa.cube.engine.dispatch.DispatchException.<clinit>(DispatchException.java:39)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
<2008-11-18 13:45:07,781> <ERROR> <crps.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
javax.ejb.EJBException: java.lang.OutOfMemoryError
at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:317)
at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.resolveCallback(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.delivery.ResolveCallbackMessageHandler.handle(ResolveCallbackMessageHandler.java:46)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
at oracle.classloader.SharedCodeSource.ensureOpen(SharedCodeSource.java:948)
at oracle.classloader.SharedCodeSource.getResourceBytes(SharedCodeSource.java:967)
at oracle.classloader.CodeSourceSearchPolicy.findResourceBytes(CodeSourceSearchPolicy.java:57)
at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1455)
at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass(SearchPolicy.java:396)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at java.sql.DriverManager.getCallerClass(DriverManager.java:442)
at java.sql.DriverManager.getDrivers(DriverManager.java:336)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:587)
at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:116)
at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:75)
at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1377)
at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
at oracle.j2ee.connector.ConnectionPoolImpl$FixedWaitPoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1455)
at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1575)
at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1520)
at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1465)
at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
at com.collaxa.cube.engine.data.ConnectionFactory$ConnectionFactoryImpl.getConnection(ConnectionFactory.java:336)
at com.collaxa.cube.engine.data.ConnectionFactory.getConnection(ConnectionFactory.java:140)
at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.__loadCallback(BaseDeliveryPersistenceAdaptor.java:368)
at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadCallback(BaseDeliveryPersistenceAdaptor.java:247)
at com.collaxa.cube.engine.data.DeliveryPersistenceMgr.loadCallback(DeliveryPersistenceMgr.java:48)
at com.collaxa.cube.engine.delivery.DeliveryService.resolveCallback(DeliveryService.java:598)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.resolveCallback(CubeDeliveryBean.java:307)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
... 28 more
<2008-11-18 13:45:07,782> <ERROR> <crps.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)Marc Kelderman wrote:
Make sure you set in heap size correctly.
I do not know how large the heap size is. But I suggest to increase is.
Oracle EM -> oc4j_soa -> administrtation -> Server
set min / max equal to 1GB
and the -XX:MaxPermSize is 256 M
Marc
>Make sure you set in heap size correctly.
I do not know how large the heap size is. But I suggest to increase is.
Oracle EM -> oc4j_soa -> administrtation -> Server
set min / max equal to 1GB
and the -XX:MaxPermSize is 256 M
Marc
Hi Tlwi and Marc,
Im facing the same error in my environment. This is an Oracle Application Server which hosts a J2EE envionment. The application works fine without any issues, but all of a sudden the following error comes up and stalls the application. I have to restart the conatiner to handle the situation, but this is not the solution.
Based on my searching it reveals that this error does not mean that the jvm is running out of heap space instead it uses some memory outside the heap to unzip the zip files.
Can you let me know on the solution that you had applied or what can be done to fix this as i have enough heap space.
09/03/11 14:58:23.851 APPNAME: Servlet error
java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
Thanks, -
OC4J 10.1.3 java.lang.OutOfMemoryError: PermGen space
Hi All,
I am getting OutOfMemoryError while trying to deploy a War file on OC4J 10.1.3 on Win XP 32-bit OS (4GB) machine. The same configuration of OC4J 10.1.3 on Sun Solaris the war file is getting deployed properly.
I did tried the recommendation provided on the below link:
https://community.oracle.com/thread/616067
However was not able to fix the issue. Could someone give more recommendations on this issue please ?
The oc4j_opmn.xml is this:
<ias-component id="OC4J">
<process-type id="home" module-id="OC4J" status="enabled">
<module-data>
<category id="start-parameters">
<data id="java-options" value="-server -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
</category>
<category id="stop-parameters">
<data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
</category>
</module-data>
<start timeout="600" retry="2"/>
<stop timeout="120"/>
<restart timeout="720" retry="2"/>
<port id="default-web-site" range="12501-12600" protocol="ajp"/>
<port id="rmi" range="12401-12500"/>
<port id="jms" range="12601-12700"/>
<process-set id="default_group" numprocs="1"/>
</process-type>
</ias-component>
Web console deployment log:
[Feb 23, 2015 5:52:32 PM] Application Deployer for xxx STARTS.
[Feb 23, 2015 5:52:32 PM] Copy the archive to D:\product\10.1.3\OracleAS_2\j2ee\home\applications\xxx.ear
[Feb 23, 2015 5:52:32 PM] Initialize D:\product\10.1.3\OracleAS_2\j2ee\home\applications\xxx.ear begins...
[Feb 23, 2015 5:52:32 PM] Unpacking xxx.ear
[Feb 23, 2015 5:52:32 PM] Done unpacking xxx.ear
[Feb 23, 2015 5:52:32 PM] Unpacking xxx.war
[Feb 23, 2015 5:52:33 PM] Done unpacking xxx.war
[Feb 23, 2015 5:52:33 PM] Initialize D:\product\10.1.3\OracleAS_2\j2ee\home\applications\xxx.ear ends...
[Feb 23, 2015 5:52:33 PM] Starting application : xxx
[Feb 23, 2015 5:52:33 PM] Initializing ClassLoader(s)
[Feb 23, 2015 5:52:33 PM] Initializing EJB container
[Feb 23, 2015 5:52:33 PM] Loading connector(s)
[Feb 23, 2015 5:52:33 PM] Starting up resource adapters
[Feb 23, 2015 5:52:33 PM] Initializing EJB sessions
[Feb 23, 2015 5:52:33 PM] Committing ClassLoader(s)
[Feb 23, 2015 5:52:33 PM] Initialize xxx begins...
[Feb 23, 2015 5:52:33 PM] Initialize xxx ends...
[Feb 23, 2015 5:52:33 PM] Started application : xxx
[Feb 23, 2015 5:52:33 PM] Binding web application(s) to site default-web-site begins...
[Feb 23, 2015 5:52:33 PM] Binding xxx web-module for application xxx to site default-web-site under context root xxx
Error log:
15/02/23 15:14:23.817 10.1.3.0.0 Started
15/02/23 15:14:28.98 ascontrol: 10.1.3.0.0 Started
15/02/23 15:19:56.511 ascontrol: Servlet error
java.lang.OutOfMemoryError: PermGen space
15/02/23 15:21:59.982 10.1.3.0.0 Started
15/02/23 15:22:03.341 ascontrol: 10.1.3.0.0 Started
15/02/23 15:41:55.911 ascontrol: 10.1.3.0.0 Stopped
15/02/23 15:42:05.755 10.1.3.0.0 Started
15/02/23 15:42:09.255 ascontrol: 10.1.3.0.0 Started
15/02/23 15:44:42.461 ascontrol: Servlet error
java.lang.OutOfMemoryError: PermGen space
15/02/23 15:44:51.602 ascontrol: Servlet error
java.lang.OutOfMemoryError: PermGen space
15/02/23 16:29:16.453 10.1.3.0.0 Started
15/02/23 16:29:20.749 ascontrol: 10.1.3.0.0 Started
15/02/23 17:51:01.600 ascontrol: 10.1.3.0.0 Stopped
15/02/23 17:51:08.679 10.1.3.0.0 Started
15/02/23 17:51:12.101 ascontrol: 10.1.3.0.0 Started
15/02/23 17:53:11.978 ascontrol: Servlet error
15/02/23 17:53:12.962 ascontrol: Servlet error
15/02/23 17:53:24.166 ascontrol: Servlet error
java.lang.OutOfMemoryError: PermGen space
Really appreciate any kind of suggestions.
Thank youIt looks like you're still missing a few of the arguments from the thread, make sure to have the following as well in the java options: -Xms512m -Xmx750m
Thanks,
Joe -
Constantly getting java.lang.OutOfMemoryError when submitting the form.
Hello,
I know this doesn't exactly pertain to Form Server, but maybe someone has some insight.
I set up JBoss 3.2.5 with Java 1.4.2.11 on a seperate machine to do a remote connection to my LiveCycle environment.
I am using the SOAPClient sample from the developer guide to save my form. I am able to save the submitted form for just fine, but I can only do so once and the second time I always get am error: "javax.servlet.ServletException: Servlet execution threw an exception" root cause: "java.lang.OutOfMemoryError"
Even with just the code from the guide, I get this error. Does anyone have any insight into fixing this? I really don't know what to fix in the code since I used the sample from the guide and they close the objects if that was an issue. If it matters, the pdf file I am submitting to be saved is about 800KB and then the saved file size is about 1400KB
I already tried setting within the run.conf file the following: JAVA_OPTS="-server -Xms1028m -Xmx1028m" but I still get the same out of Memory error. The only error within the server.log file is the following:
2007-01-10 15:46:19,125 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[SubmitPart1]: Servlet.service() for servlet SubmitPart1 threw exception
java.lang.OutOfMemoryError
Thanks,
JenniferHi Jennifer,
If the problem is not yet resolved here is my suggestion.
With my interaction with Adobe I came to know that SOAP has a limitation of handling a max of 10 MB and in real-time you may stitch the forms more than 10MB.
Use the EJBClient instead of SOAPClient.
You may set this is in FormServerDefinition class.
Thanks,
Vijay -
Getting java.lang.outofmemoryerror: Java heap space error
I am using coldfusion 8. I frequently get the error 'java.lang.outofmemoryerror: Java heap space'. Can anyone help me?
Error Details :
500
Root cause:
java.lang.outofmemoryerror: Java heap space
javax.servlet.servletException: Root Cause:
java.lang.outofmemoryerror: Java heap space
Thanks in advance,
Regards,
Satheesh.Well... what does the error message tell you is wrong? You're running out of memory. I presume you understand how computer memory works, if not specifically how Java memory allocation works. So... you have x amount of memory, and you're trying to use >x amount of memory. You can't do that. There are two approaches to dealing with a problem like this:
a) have more memory;
b) use less memory.
What are your JVM memory settings? They're in jvm.config dir, which'll be - by default - in your Jrun4/bin dir for a multi-server install, or somewhere like ColdFusion/runtime/bin or something like that on a stand-alone install.
Next... what are you loading into memory? This is trickier to answer. But every variable you create takes up memory. People often load up the application or session scopes with stuff that's "convenient" to store in shared-scope memory, but really chew through it. Putting CFC instances in the session scope is a really good way to waste memory, as they seem to have quite a large footprint.
It's really impossible to say what's eating the memory based on what info you've given us (basically: none), but you can use things like FusionReactor to examine what's going into memory. Or CF* Enterprise has some of its own memory profiling stuff... I've never used it but it might be of some use.
Have you googled "coldfusion java.lang.outofmemory"?
Adam -
Server startup - java.lang.OutOfMemoryError: PermGen space
Version: WebLogic Server 10.3.2.0
JVM Sun 6 64
OS Windows Server 2008 64
Hi there,
I got the following error from a managed server startup. The AdminManager e NodeManager instances are up and runnig and the startup comand is performed from the web gui.
I tried to play with JVM arguments (web gui, not on script) increasing the amount to -Xms512m -Xmx1024m, but with not success and because the instance hasn't got any application deployed I felt reasonable put them back to -Xms512m -Xmx512m.
<13-Jan-2010 22:35:12 o'clock GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<13-Jan-2010 22:35:12 o'clock GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<13-Jan-2010 22:35:14 o'clock GMT> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file D:\ORACLE\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
Exception in thread "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Exception in thread "Timer-1" The WebLogic Server encountered a critical failure
java.lang.OutOfMemoryError: PermGen space
Reason: PermGen space
<13-Jan-2010 22:35:27> <FINEST> <NodeManager> <Waiting for the process to die: 3624>
<13-Jan-2010 22:35:27> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<13-Jan-2010 22:35:27> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
Thanks in advance for any help.Hi,
As you have mentioned that you tried to play with JVM arguments (web gui, not on script) increasing the amount to -Xms512m -Xmx1024m.....
In case of OutOfMemoryError in PermGen Sapace ...increasing only the Heap Size will not solve anything...
Just a Bit Explaination:
Formula:
(OS Level)Process Size = Java Heap Native Space (2-3% OS related Memory)
PermSize : It's a Native Memory Area Outside of the Heap, Where ClassLoading kind of things happens.... In an operating System like Windows Default Process Size is 2GB (2048MB) default (It doesnt matter How much RAM do u have 2GB or 4GB or more)...until we dont change it by setting OS level parameter to increase the process size..Usually in OS like Solaris/Linux we get 4GB process size as well.
Now Lets take the default Process Size=2GB (Windows), Now if you have set the -Xmx512M, we can assume that rest of the memory 1536 Mb is available for Native codes.
(ProcessSize (-) HeapSize) = Native (+) (2-3% OS related Memory)
2048 MB (-) 512 MB = 1536 MB
THUMB RULES:
MaxPermSize = (Xmx/3) ---- Very Special Cases (One Third of maximum Heap Size)
MaxPermSize = (Xmx/4) ---- Recommended (One Fourth Of maximum Heap Size)
So finally you need to increase the PermGen Size... like -Xmx1024m -Xms1024m -XX:MaxPermSize256m
But again these are not the Final values ... It depends on ther Environments
Thanks
Jay SenSharma
Edited by: Jay SenSharma on Jan 14, 2010 5:36 PM
Maybe you are looking for
-
Hi All, While trying to deploy webdynpro application in NWDS 7.3.1 i get the below exception. com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: NodeInfo(path=Sample_Comp/Custom_Search.Sample_Data_Input.T_data, class="com".sap.tc.w
-
RFC_ERROR_INTERNAL (when trying to set values on my remote function)
Hi everyone, I've been playing with JCo for a few days now, and I got it to work to a certain point, that being, I am able to query my sap tables and add records to them. My problem is: I've set a function with two import parameters, let's say USERNA
-
Inbox downloading non-existent emails endlessly
A few days ago the red "unread mail" counter began rising and rising without downloading any messages. The loading spiral next to the "Inbox" indicates that it thinks it's downloading, and it does not stop. The number began at 300 (I keep a lot of un
-
Is this logging code faster than using a standard logging API like log4J
is this logging code faster than using a standard logging API like log4J or the logging API in java 1.4 As you can see my needs are extremely simple. write some stuff to text file and write some stuff to dos window. I am thinking about using this wit
-
Looking for freelance Captivate programmers - LA/OC area
Urgent need! Looking for freelance Captivate programmers - LA/OC area - For development of e-learning programs for Large Corporations. Please contact me if you have the skill set and are in the area. Thank you