Reg: java.lang.outOfMemoryError in Console alone

Dear All,
I was getting the trace, java.lang.outOfMemoryError. Even i have incresed the heap size of the JVM as
java -Xrs -Xms1024m -Xmx1024m ReportServer
But getting java.lang.outOfMemoryError in the command prompt.
But it is not caught in the catch block of my application.
HTML <-> Java Class <-> ReportServer Class <->DB
Even that error message in not caught in the catch block of ReportServer Class.
Please suggest me how can i trap that error message to the end user in the front end.
Eraianban.

The exception will throw a null value, if thrown in the following catch, we can throw a new user exception instead..
catch(java.lang.OutOfMemoryError e)
               System.out.println("Inside OutOfMemoryError");
               try {
                    throw new UserException("System Exception OutOfMemoryError");//UserException extends Exception
               } catch (UserException e1) {
                    System.out.println("USER EXCEPTION MESSAGE: " + e1.getErrormessage());
                    throw e1;
          }

Similar Messages

  • Trouble with  "java.lang.OutOfMemoryError: Java heap space"

    Hello,
    I use a Java-based modeling tool that very few out there are probably familiar with. This tool allows me to run models (program) from within the development environment, to create Applets or create jar files that can be executed in a stand-alone fashion.
    I am using a database on my local harddrive to read in some data using JDBC, so am not using the Applet option with certificates. The development environment is expensive, so can't be distributed. That leaves the stand-alone option.
    The model (program) I've written runs perfectly fine in the development environment and, previously, has worked fine as a stand-alone program. However, the stand-alone option isn't working anymore, because I keep getting this error.
    I am not much of a Java programmer; I'm learning as I go along. If anyone can help me solve this, I'll be most appreciative
    From my cmd prompt:
    C:\Documents and Settings\072\Desktop\TA\for\for Applet Files>cd "C:\D
    ocuments and Settings\072\Desktop\TA\for\for Applet Files"
    C:\Documents and Settings\072\Desktop\TA\for\for Applet Files>java -cl
    asspath enterprise_library.jar;business_graphics_library.jar;for.jar;xjanylog
    ic5engine.jar for/Main$Simulation
    Started...
    AnyLogic simulation engine has started [$Id: Engine.java,v 1.134 2004/12/03 08:4
    9:39 basil Exp $]
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception during root.courseQueue-1556 startup: java.lang.OutOfMe
    moryError: Java heap space
    thread = Thread[Model Creation Thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap spac
    e
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception during startup: java.lang.OutOfMemoryError: Java heap s
    pace
    thread = Thread[Model Creation Thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception in statechart 'root.courseExit-0.inputProcessor' entry
    actions: java.lang.OutOfMemoryError: Java heap space
    thread = Thread[AnyLogic main thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception in statechart 'root.courseDelay-0.inputProcessor' entry
    actions: java.lang.OutOfMemoryError: Java heap space
    thread = Thread[AnyLogic main thread,5,main]
    engine = com.xj.anylogic.Engine@1099257
    java.lang.OutOfMemoryError: Java heap space
    setting error: Exception in statechart 'root.courseDelay-1.inputProcessor' entry
    actions: java.lang.OutOfMemoryError: Java heap space
    thread = Thread[AnyLogic main thread,5,main]Exception in thread "AWT-EventQueu
    e-0"
    java.lang.OutOfMemoryError: Java heap space
    engine = com.xj.anylogic.Engine@1099257

    Hi I am ancountering the same problem with the 'heap space'.
    Is there any way I can find out what it is set to for my system? I dont believe its 32Mb and dont want to increase it randomly to too large a size if theres no need for it.
    Thanks,
    Bobby

  • Java.lang.OutOfMemoryError: unable to create new native thread

    Hi All,
    I have installed weblogic server 8 sp4 in production environment . I am facing problems with JVM issues .
    JVM is crashing very frequently with the following errro :
    ####<Jun 18, 2009 10:58:22 AM IST> <Info> <Common> <IMM90K-21> <SalesCom> <ExecuteThread: '24' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-000628> <Created "1" resources for pool "PIConnectionPool", out of which "1" are available and "0" are unavailable.>
    ####<Jun 18, 2009 11:00:09 AM IST> <Info> <EJB> <IMM90K-21> <SalesCom> <ExecuteThread: '23' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-010051> <EJB Exception occurred during invocation from home: payoutCheck.ejb.payoutCheck_s6v3so_HomeImpl@121a735 threw exception: java.lang.OutOfMemoryError: unable to create new native thread
    java.lang.OutOfMemoryError: unable to create new native thread
         at java.lang.Thread.start(Native Method)
         at payoutCheck.classes.MyThread2.MyThreadv(PayoutCheckBOImpl.java:249)
         at payoutCheck.classes.PayoutCheckBOImpl.genSP(PayoutCheckBOImpl.java:184)
         at payoutCheck.ejb.PayoutCheckSLSB.genSP(PayoutCheckSLSB.java:191)
         at payoutCheck.ejb.payoutCheck_s6v3so_EOImpl.genSP(payoutCheck_s6v3so_EOImpl.java:315)
         at payoutCheck.ejb.payoutCheck_s6v3so_EOImpl_CBV.genSP(Unknown Source)
         at payoutCheck.deligate.PayoutCheckBD.genSP(PayoutCheckBD.java:226)
         at ui.action.SearchAction.callFilter(SearchAction.java:378)
         at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:220)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    The above mentioned is coming several times , anybody please help out to get rid of this issue.
    Thanks in advance ,
    Krikar.

    This only tells you that the JVM is running out of heap space. It doesn't tell you what is causing the problem. You likely have a memory leak, but you could also try increasing the max heap size of the JVM (-Xmx command line option). It would help to watch the % mem in use statistic, but only immediately after a garbage collection cycle (you can force a GC from the admin console). If the % mem in use after the GC is increasing over time, then that likely confirms you have a memory leak. Note that looking at that statistic during the server startup probably is irrelevant. You'd need to wait until the server finishes starting up, and likely processed a few messages (to load static data).
    If you get to the point of confirming that you have a memory leak, that requires doing detailed analysis with a Java profiler (JProfiler, JProbe, YourKit, etc.) to track down the source of the leak.

  • Java.lang.OutOfMemoryError in iGrid

    Hi,
    In XMII 12, i tried to get the customer information from SAP thru BAPI and to show it in iGrid. I am successfully getting information from SAP. But when i tried to show the result in iGrid thru xacute query, in iGrid java console it is showing error as Error: java.lang.OutOfMemoryError. How to solve this?
    Regards,
    Senthil

    Hi
    You can go through this thread:
    Re: ERROR - Problem Reading Data From Server - java.io.EOFException
    Hope this may help you.

  • OSB Problem: java.lang.OutOfMemoryError: getNewTla

    Hi there,
    Yesterday I posted a problem related to the OSB console not loading and giving an error (<BEA-381951> JCA inbound request only invocation failed
    Since then I've looked harder at the problem and realised that the real problem was the following exception:
    ####<28/Jul/2010 11H16m BST> <Error> <Kernel> <Server> <AdminServerOsb> <[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <a7acfb4f5f216892:-3c87e2be:12a1882fb62:-8000-000000000001fc60> <1280312179687> <BEA-000802> <ExecuteRequest failed
    java.lang.OutOfMemoryError: getNewTla.
    java.lang.OutOfMemoryError: getNewTla
         at java.util.concurrent.ConcurrentHashMap$KeySet.iterator(ConcurrentHashMap.java:1169)
         at weblogic.socket.SocketMuxer.getSocketsIterator(SocketMuxer.java:610)
         at weblogic.socket.SocketMuxer$TimerListenerImpl.timerExpired(SocketMuxer.java:955)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
         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)
    This exception is occurring every time I make a request to the weblogic server.
    I can't find any explanation about this problem anywhere so I'm asking for some help.
    Best Regards,
    Daniel Alves

    sorry for interfering but this kind of issues should be accompanied by analysis done with JRockit Mission Control Runtime Analysis (Flight Recording)
    http://download.oracle.com/docs/cd/E15289_01/doc.40/e15070/toc.htm
    take also advantage of the oomdiagnostics flag of JRockit.
    JRockit contains WONDERFUL diagnostics tools, if you learn how to use them you are the King of Persia.
    unless you determine the cause it's very difficult to address it by trial and error. Besides, if (if!) you have a memory leak there is no point in changing the JVM parameters....

  • Weblogic server start error: java.lang.OutOfMemoryError

    Hi:
              when i start weblogic server, i met following error !
              java.lang.OutOfMemoryError
              <<no stack trace available>>
              why?
              thanks!
              starting output as follow :
              C:\bea7\user_projects\zhudomain>startweblogic
              C:\bea7\user_projects\zhudomain>echo off
              CLASSPATH=C:\bea7\jdk131_03\lib\tools.jar;C:\bea7\weblogic700\integration\li
              b\wl
              pi-worklist.jar;C:\bea7\weblogic700\samples\server\eval\pointbase\lib\pbserv
              er42
              ECF172.jar;C:\bea7\weblogic700\server\lib\weblogic_sp.jar;C:\bea7\weblogic70
              0\se
              rver\lib\weblogic.jar;
              PATH=.;C:\bea7\weblogic700\server\bin;C:\bea7\jdk131_03\bin;C:\PROGRA~1\RATI
              ONAL
              \RATION~1\NUTCROOT\bin;C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin\x11;C:\PRO
              GRA~
              1\RATIONAL\RATION~1\NUTCROOT\mksnt;c:\Oracle\Ora81\bin;C:\WINNT\system32;C:\
              WINN
              T;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\CTEX\MiKTeX\TeXMF\miktex\bi
              n;C:
              \CTEX\MiKTeX\LocalT~1\cct\bin;C:\Program Files\Rational\common;C:\Program
              Files\
              Rational\ClearQuest;C:\Program Files\Rational\Rose\TopLink\;C:\Program
              Files\Rat
              ional\Rational Test;C:\bea7\jdk131_03\bin
              * 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 *
              C:\bea7\user_projects\zhudomain>"C:\bea7\jdk131_03\bin\java" -hotspot -Xms32
              m -X
              mx200m -Dweblogic.security.SSL.trustedCAKeyStore=C:\bea7\weblogic700\server\
              lib\
              cacerts -Dweblogic.Name=myserver -Dbea.home="C:\bea7" -Dweblogic.management.
              user
              name= -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled= -Dja
              va.s
              ecurity.policy="C:\bea7\weblogic700\server\lib\weblogic.policy"
              weblogic.Server
              <2002-11-13 ÏÂÎç04ʱ21·Ö01Ãë> <Info> <Security> <090065> <Getting boot
              identity
              from user.>
              Enter username to boot WebLogic server:system
              Enter password to boot WebLogic server:
              Starting WebLogic Server...
              <2002-11-13 ÏÂÎç04ʱ21·Ö08Ãë> <Notice> <Management> <140005> <Loading
              configurat
              ion C:\bea7\user_projects\zhudomain\.\config.xml>
              java.lang.OutOfMemoryError
              <<no stack trace available>>
              

    Hi JLK,
    Now as you can see that you are getting "java.lang.OutOfMemoryError: PermGen space" during the activation on an application it means that you are application needs more space in the non-heap part of the JVM which is PermGen to create the Classes, Class Structures, Methods and Reflection Objects of this applications hence you are getting this issue.
    Now how to solve this issue you try the following check list which would help you resolve this issue and overcome same type of issue in future
    1). Make Sure that the PermGen Area is not set to a very less value.
    2). Usually if an Application has Many JSP Pages in that case every JSP will be converted to a *.class file before JSP Request Process. So a large number of JSPs causes generation of a Large number of *.class files all these classes gets loaded in the PermGen area.
    3). While allocating the -XX:MaxPermSize make sure that you follow a rough Formula… which works in most of the Application Servers.
    MaxPermSize = (Xmx/3) —- Very Special Cases (One Third of maximum Heap Size)
    MaxPermSize = (Xmx/4) —- Recommended (One Fourth Of maximum Heap Size
    To get more information on this I would suggest you to have look at the below link which would surely help you in this case
    Topic: OutOfMemory Causes and First Aid Steps?
    http://middlewaremagic.com/weblogic/?p=4464
    Regards,
    Ravish Mody

  • 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:12

    I 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: Java heap space While deploying 'ear' file

    I am using below code to deploy an 'ear' file on weblogic 10.3
    package com.qasource;
    import java.io.*;
    import java.util.Hashtable;
    import weblogic.deploy.api.tools.*;  //SesionHelper
    import weblogic.deploy.api.spi .*;  //WebLogicDeploymentManager
    import javax.enterprise.deploy.spi.TargetModuleID;
    import javax.enterprise.deploy.spi.status.ProgressObject;
    import javax.enterprise.deploy.spi.status.DeploymentStatus;
    import javax.enterprise.deploy.shared.ModuleType;
    import javax.enterprise.deploy.spi.Target;
    import javax.management.MBeanServerConnection;
    import javax.management.remote.JMXConnector;
    import javax.management.remote.JMXConnectorFactory;
    import javax.management.remote.JMXServiceURL;
    import javax.naming.Context;
    public class WeblogicTest
         public static void main(String ar[]) throws Exception
              System.out.println("Start Deploying");
              WebLogicDeploymentManager deployManager=SessionHelper.getRemoteDeploymentManager( "t3", "10.0.0.47", "7003", "weblogic",
              "weblogic123");
              System.out.println("Deploy Manager  :  " + deployManager);
              DeploymentOptions options = new DeploymentOptions();
              options.setName("TC33");          //TODO
              Target targets[] = deployManager.getTargets();
              System.out.println("Target  :  " + targets);
              Target deployTargets[]=new Target[1];     
              int temp=0;
              for (temp=0; temp < targets.length; temp++){
                   if(targets[temp].getName().equals("new_ManagedServer_1")){
                        deployTargets[0]=targets[temp];
              ProgressObject processStatus=deployManager.distribute(deployTargets, new                
                        File("\\\\10.0.0.47\\Builds\\VertexTest\\domain1\\tc3.3b74_6.2.2011.19\\test-3.3.0.0074.ear"), null,options);
              DeploymentStatus deploymentStatus=processStatus.getDeploymentStatus() ;
              System.out.println("UnDeploymentStayus.getMessage(): "+deploymentStatus.getMessage() );
              Thread.sleep(5000);
              TargetModuleID[] targetModuleIDs=deployManager.getAvailableModules(ModuleType.EAR, deployTargets);
              System.out.println("\n\t targetModuleIDs [] = "+targetModuleIDs);
              for (int j=0;j<targetModuleIDs.length;j++){
                   System.out.println("\n\t "+targetModuleIDs[j]);
                   deployManager.start(targetModuleIDs);
                   deployManager.start(targetModuleIDs);
    }My environment: Window XP
    Weblogic: 11g
    ear file size: 97886 KB
    Admin server arguments: -Xms=512m Xmx=512m
    Managed server arguments: -Xms=512m Xmx=512m
    But above code is showing java.lang.OutOfMemoryError: Java heap space:
    below is the log statements:
    Start Deploying
    Deploy Manager : [email protected]eb5
    Target : [Ljavax.enterprise.deploy.spi.Target;@fd918a
    <Jun 3, 2011 11:20:17 AM IST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating distribute operation for application, TC33 [archive: \\10.0.0.47\Builds\VertexTest\domain1\tc3.3b74_6.2.2011.19\test-ear-3.3.0.0074.ear], to new_ManagedServer_1 .>
    UnDeploymentStayus.getMessage(): java.lang.OutOfMemoryError: Java heap space
         targetModuleIDs [] = null
    Exception in thread "main" java.lang.NullPointerException
         at com.qasource.WeblogicTest.main(WeblogicTest.java:48)
    <Jun 3, 2011 11:21:21 AM IST> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>
    Can any tell me how to resolve this issue.
    Edited by: 861978 on Jun 2, 2011 10:51 PM
    Edited by: 861978 on Jun 2, 2011 10:52 PM

    Hi,
    Yes,René van Wijk has said rite..
    Just open the Weblogic console,
    expand Environment-->Server-->(ur managed server)-->Server Start tab
    Just enter the below lines in Arguments:
    -Xms1024m -Xmx1024m -XX:MaxPermSize=256m
    Then bounce your managed server
    This should solve your problem
    Regards
    Fabian

  • 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 you

    It 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

  • Javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space

    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
    Eugen

    Hi 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

  • Java.lang.AssertionError: java.lang.OutOfMemoryError: PermGen space

    Given:
    fabio@nodo1:/Middleware/user_projects/domains/domain1/bin$ grep USER_MEM_ARGS setDomainEnv.sh
    # USER_MEM_ARGS - The variable to override the standard memory arguments
    USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=512m"
    export USER_MEM_ARGS
    # IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
    if [ "${USER_MEM_ARGS}" != "" ] ; then
         MEM_ARGS="${USER_MEM_ARGS}"
    fabio@nodo1:/Middleware/user_projects/domains/domain1/bin$
    Then, in Weblogic admin console, I start the ManagedServer registered in cluster1 asigned to that UnixMachine.
    ManagedServer1.log reports:
    ####<May 26, 2010 10:01:40 AM CST> <Notice> <WebLogicServer> <nodo1> <ManagedServer1> <main> <<WLS Kernel>> <> <> <1274889700427> <BEA-000365> <Server state changed to FAILED>
    ####<May 26, 2010 10:01:40 AM CST> <Error> <WebLogicServer> <nodo1> <ManagedServer1> <main> <<WLS Kernel>> <> <> <1274889700428> <BEA-000383> <A critical service failed. The server will shut itself down>
    ####<May 26, 2010 10:01:40 AM CST> <Notice> <WebLogicServer> <nodo1> <ManagedServer1> <main> <<WLS Kernel>> <> <> <1274889700465> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    ####<May 26, 2010 10:01:41 AM CST> <Error> <JMX> <nodo1> <ManagedServer1> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1274889701769> <BEA-149500> <An exception occurred while registering the MBean com.bea:ServerRuntime=ManagedServer1,Name=ManagedServer1_/uddiexplorer,ApplicationRuntime=uddiexplorer,Type=WebAppComponentRuntime.
    javax.management.RuntimeErrorException: Error thrown in preRegister method
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preRegisterInvoke(DefaultMBeanServerInterceptor.java:1015)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:938)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:714)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.mbeanservers.internal.JMXContextInterceptor.registerMBean(JMXContextInterceptor.java:448)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:712)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServer.registerMBean(WLSMBeanServer.java:444)
         at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:45)
         at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:106)
         at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
         at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
         at weblogic.management.provider.core.RegistrationManagerBase.register(RegistrationManagerBase.java:110)
         at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:310)
         at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:248)
         at weblogic.j2ee.ComponentRuntimeMBeanImpl.<init>(ComponentRuntimeMBeanImpl.java:57)
         at weblogic.servlet.internal.WebAppRuntimeMBeanImpl.<init>(WebAppRuntimeMBeanImpl.java:53)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1118)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:449)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:924)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:356)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:39)
         at weblogic.application.internal.BackgroundDeploymentService$1.next(BackgroundDeploymentService.java:348)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.BackgroundDeploymentService$BackgroundDeployAction.run(BackgroundDeploymentService.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.AssertionError: java.lang.OutOfMemoryError: PermGen space
         at weblogic.management.jmx.modelmbean.NotificationTranslatorBuilder.instantiateNotificationTranslator(NotificationTranslatorBuilder.java:51)
         at weblogic.management.jmx.modelmbean.NotificationTranslatorBuilder.instantiateNotificationTranslator(NotificationTranslatorBuilder.java:22)
         at weblogic.management.jmx.modelmbean.WLSModelMBean.bindNotifications(WLSModelMBean.java:116)
         at weblogic.management.jmx.modelmbean.WLSModelMBean.preRegister(WLSModelMBean.java:1147)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preRegisterInvoke(DefaultMBeanServerInterceptor.java:1010)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:938)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:714)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.mbeanservers.internal.JMXContextInterceptor.registerMBean(JMXContextInterceptor.java:448)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:712)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServer.registerMBean(WLSMBeanServer.java:444)
         at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:45)
         at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:106)
         at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
         at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
         at weblogic.management.provider.core.RegistrationManagerBase.register(RegistrationManagerBase.java:110)
         at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:310)
         at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:248)
         at weblogic.j2ee.ComponentRuntimeMBeanImpl.<init>(ComponentRuntimeMBeanImpl.java:57)
         at weblogic.servlet.internal.WebAppRuntimeMBeanImpl.<init>(WebAppRuntimeMBeanImpl.java:53)
         at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1118)
         at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:449)
         at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:924)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:356)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:39)
         at weblogic.application.internal.BackgroundDeploymentService$1.next(BackgroundDeploymentService.java:348)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.BackgroundDeploymentService$BackgroundDeployAction.run(BackgroundDeploymentService.java:273)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.lang.OutOfMemoryError: PermGen space
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
         at java.lang.Class.getMethod0(Class.java:2670)
         at java.lang.Class.getMethod(Class.java:1603)
         at weblogic.management.jmx.modelmbean.PropertyChangeNotificationTranslator.<init>(PropertyChangeNotificationTranslator.java:66)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at weblogic.management.jmx.modelmbean.NotificationTranslatorBuilder.instantiateNotificationTranslator(NotificationTranslatorBuilder.java:45)
         at weblogic.management.jmx.modelmbean.NotificationTranslatorBuilder.instantiateNotificationTranslator(NotificationTranslatorBuilder.java:22)
         at weblogic.management.jmx.modelmbean.WLSModelMBean.bindNotifications(WLSModelMBean.java:116)
         at weblogic.management.jmx.modelmbean.WLSModelMBean.preRegister(WLSModelMBean.java:1147)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preRegisterInvoke(DefaultMBeanServerInterceptor.java:1010)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:938)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:714)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.mbeanservers.internal.JMXContextInterceptor.registerMBean(JMXContextInterceptor.java:448)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:712)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServer.registerMBean(WLSMBeanServer.java:444)
         at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:45)
         at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:106)
         at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
         at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
         at weblogic.management.provider.core.RegistrationManagerBase.register(RegistrationManagerBase.java:110)
         at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:310)
    >
    ####<May 26, 2010 10:01:41 AM CST> <Info> <Cluster> <nodo1> <ManagedServer1> <main> <<WLS Kernel>> <> <> <1274889701790> <BEA-000158> <Server has stopped sending cluster heartbeats and announcements. It is still receiving heartbeats and announcements from other cluster members.>
    ####<May 26, 2010 10:01:41 AM CST> <Notice> <Cluster> <nodo1> <ManagedServer1> <main> <<WLS Kernel>> <> <> <1274889701793> <BEA-000163> <Stopping "async" replication service>
    What is the exact tuning I need to start up a simple managedserver in Weblogic 10.3.2, Linux Ubuntu ?

    Hi,
    I doubt that the following USER_MEM_ARGS which u have mentioned in the *"setDomainEnv.sh"* is not taking effect....
    USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=512m"
    Can u check the STDOUT of the Server or first few lines of Server Log....there u will be able to see that what value it is taking actually to startup. Sometimes it happens if we set the MEM_ARGS values in if---else block then mistakenly it takes the default values....
    Because 512M Memory for PermGen is enough for most of the Applications and Servers.
    One more thing .... How r u starting your Servers ...Using StartScripts or using NodeManager (through AdminConsole)? Because there are different ways of setting the Memory Arguments for these two scenarios. Like mentioned in the following link: http://weblogic-wonders.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic  (WebLogic Wonders Are Here)

  • 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

  • Java.lang.OutOfMemoryError when editing a routing note for a Proxy Service?

    Hi,
    Does anyone know why I am getting a java.lang.OutOfMemoryError in the AqualLogic Service Bus logs which freezes the browser (IE) when I try to edit a route node of a proxy service? I can change the name of the node but when I try to edit the node itself, the interface freezes and the out of memory thrown by the Service Bus. I have tried restarting the server etc..... The java memory allocated should already be adequate as it is set to 512Mb. All I can think of doing next is to uninstall the Service Bus and reinstall.
    The logs I am getting can be seen below.....
    Welcome, weblogic Connected to : servicebus Home WLS Console Logout Help AskBEA
    weblogic session Created 9/01/08 13:46 No Conflicts 3 Change(s) 1 Active Session(s)
    The source of this error is com.bea.portlet.adapter.scopedcontent.ActionLookupFailedException: java.lang.OutOfMemoryError at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:699) at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.renderInternal(ScopedContentCommonSupport.java:268) at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.render(StrutsStubImpl.java:107) at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:288) at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:427) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:708) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:720) at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:183) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361) at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:339) at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:186) Caused by: java.lang.OutOfMemoryError
    Thanking you in advance for any help/insight.

    Okay, I fixed the "Incompatible initial and maximum heap sizes specified" issue now. The problem was that in the lh.bat script the parameter -Xmx128M was hardcoded and overwrote my own -Xmx setting.
    I now set JAVA_OPTS to "-Xms1400m -Xmx1400m" which is the maximum that Java accepts without complaining about too little memory. However, I still get the OutOfMemoryError and in addition to that I now also get this error:
    com.waveset.util.Shutdown: Sorry!  This repository has been shut down by an administrator.  Please try to get another instance.
    I've googled already but found only two sites and those weren't really helpful. So, any help is very much appreciated!
    Thanks,
    David

  • Clearing a java.lang.OutOfMemoryError

    I have a loop that is adding objects to a Vector based upon a ResultSet. I am running into a situation where I get an Out Of Memory Error. I want to catch the error, clear the Vector, and report the error to the user.
    My code looks like:
    Vector v = new Vector();
    ResultSet r = getData();
    try
         while(r.next())
              v.add(r.getString("ID"));
    catch(Exception e)
         System.out.println("Oops.");
         v.removeAllElements();
         throw(e);
    }However, I get java.lang.OutOfMemoryError printed to the console but no "Oops". How can I get the "Oops".
    Thank You
    Michael

    You doing somethign like this? This will work.
    public static void flushMemory()
      //Use a vector to hold the memory.
      Vector v = new Vector();
      int count = 0;
      //increment in megabyte chunks initially
      int size = 1048576;
      //Keep going until we would be requesting
      //chunks of 1 byte
      while(size > 1)
        try
          for (; true ; count++)
            //request and hold onto more memory
            v.addElement( new byte[size] );
        //If we encounter an OutOfMemoryError, keep
        //trying to get more memory, but asking for
        //chunks half as big.
        catch (OutOfMemoryError bounded){size = size/2;}
      //Now release everything for GC
      v = null;
      //and ask for a new Vector as a new small object
      //to make sure garbage collection kicks in before
      //we exit the method.
      v = new Vector();
    }

Maybe you are looking for