5 Replies Latest reply on Nov 6, 2013 10:22 AM by Daniel015

    java.lang.OutOfMemoryError:

    Daniel015

      hi am having this error when running my application am in jdeveloper 11.1.1.6.0 the application just hang where must i increase the size

      ava.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:13:07 AM> <Error> <HTTP> <BEA-101020> <[ServletContext@33417508[app:MyportalApplication module:Myturtorial path:/Myturtorial spec-version:2.5 version:V2.0]] Servlet failed with Exception

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:13:16 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:14:07 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <LogUtil> <log> failed to write and register incident 33 readme file with ADR

      oracle.dfw.common.DiagnosticsException: DFW-40112: failed to execute the adrci commands ""

      Cause: There was an error executing adrci commands; the following errors have been found "GC overhead limit exceeded"

      Action: Ensure that command line tool "adrci" can be executed from the command line.

          at oracle.dfw.impl.incident.ADRHelper.invoke(ADRHelper.java:1182)

          at oracle.dfw.impl.incident.ADRHelper.addIncidentFiles(ADRHelper.java:966)

          at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createReadme(DiagnosticsDataExtractorImpl.java:1463)

          at oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl.createIncident(DiagnosticsDataExtractorImpl.java:320)

          at oracle.dfw.impl.incident.UncaughtExceptionHandler.uncaughtException(UncaughtExceptionHandler.java:89)

          at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:981)

          at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)

          at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)

          at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)

      <06 Nov 2013 1:14:32 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:15:19 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:15:45 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:15:45 AM> <Error> <J2EE> <BEA-160001> <Error deploying Internal Application: java.lang.OutOfMemoryError: GC overhead limit exceeded

      weblogic.application.utils.StateChangeException: java.lang.OutOfMemoryError: GC overhead limit exceeded

          at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:67)

          at weblogic.application.internal.BackgroundDeploymentService$BackgroundDeployAction.run(BackgroundDeploymentService.java:273)

          at weblogic.application.internal.BackgroundDeploymentService$OnDemandBackgroundDeployAction.run(BackgroundDeploymentService.java:336)

          at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)

          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

          Truncated. see log file for complete stacktrace

      Caused By: java.lang.OutOfMemoryError: GC overhead limit exceeded

      Caused By: java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:15:50 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:15:55 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <06 Nov 2013 1:16:05 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <TimeoutMonitor$1> <run> Muffling exception in method TimeoutMonitor$1.run, context = Throwable: java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

          at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2149)

          at oracle.jbo.pool.ResourcePoolMonitor.initializeThreadContext(ResourcePoolMonitor.java:150)

          at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:113)

          at java.util.TimerThread.mainLoop(Timer.java:512)

          at java.util.TimerThread.run(Timer.java:462)

      Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2110)

          ... 4 more

      Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded

      <TimeoutMonitor$1> <run> Muffling exception in method TimeoutMonitor$1.run, context = Throwable: java.lang.OutOfMemoryError: GC overhead limit exceeded.

      <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      <TimeoutMonitor$1> <run> Muffling exception in method TimeoutMonitor$1.run, context = Throwable: java.lang.OutOfMemoryError: GC overhead limit exceeded.

      <06 Nov 2013 1:20:59 AM> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed

      java.lang.OutOfMemoryError: GC overhead limit exceeded.

      java.lang.OutOfMemoryError: GC overhead limit exceeded

      >

      <DiagnosticsDataExtractorImpl> <createADRIncident> incident flood controlled with Problem Key "DFW-99997 [java.lang.OutOfMemoryError]"

      <DiagnosticsDataExtractorImpl> <createADRIncident> incident flood controlled with Problem Key "DFW-99997 [java.lang.OutOfMemoryError]"

      <RootViewPortContextImpl> <lockViewPortRequestLock> ADFc: Attempt to acquire root view port request lock failed due to timeout, holding request number = '10', lock was acquired by thread '[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)''.

      <DiagnosticsDataExtractorImpl> <createADRIncident> incident flood controlled with Problem Key "DFW-99997 [java.lang.OutOfMemoryError]"

      <DiagnosticsDataExtractorImpl> <createADRIncident> in

      cident flood controlled with Problem Key "DFW-99997 [java.lang.OutOfMemoryError]"

        • 1. Re: java.lang.OutOfMemoryError:
          Timo Hahn

          Check out this thread https://forums.oracle.com/thread/2596833

           

          However, I guess there is another problem which results in this out of memory.

           

          Timo

          • 2. Re: java.lang.OutOfMemoryError:
            Dimitar Dimitrov

            I guess your application is a WebCenter Portal application (because of the application's name). WebCenter needs more memory than a standard ADF application. If you get this exception when you are running the application from within JDeveloper (i.e. on the Embedded WLS), you may have to increase the JVM memory settings of the Embedded WLS. The default JVM settings of the Embedded WLS are too low. The simplest way to do that is to edit the settings in the <JDevHome>/jdeveloper/systemXX.X.X.X.XX.XX.XX/DefaultDomain/bin/setDomainEnv.cmd file (in Windows) or setDomainEnv.sh file (in Linux). Look for lines similar to:

             

            set XMS_SUN_64BIT=256

            set XMS_SUN_32BIT=256

            set XMX_SUN_64BIT=512

            set XMX_SUN_32BIT=512

            set XMS_JROCKIT_64BIT=256

            set XMS_JROCKIT_32BIT=256

            set XMX_JROCKIT_64BIT=512

            set XMX_JROCKIT_32BIT=512

             

            and modify them as appropriate depending on the JVM vendor and the platform (32-bit or 64 bit) you are using.

             

            Dimitar

            • 3. Re: java.lang.OutOfMemoryError:
              Daniel015

              I INCREASE my perm size but still slow AddVMOption  -XX:MaxPermSize=1024M

               

              it it RAM how do i know if is realy  RAM PROBLEM MY ram is 2GB WINDOW 7

              • 4. Re: java.lang.OutOfMemoryError:
                LindaInci

                You only have 2 GB of RAM? I am surprised that JDeveloper even starts up...

                • 5. Re: java.lang.OutOfMemoryError:
                  Daniel015

                  i edit like this

                  call "%WL_HOME%\common\bin\commEnv.cmd"

                   

                  set WLS_HOME=%WL_HOME%\server

                   

                  set XMS_SUN_64BIT=256

                  set XMS_SUN_32BIT=1024

                  set XMX_SUN_64BIT=512

                  set XMX_SUN_32BIT=1024

                  set XMS_JROCKIT_64BIT=256

                  set XMS_JROCKIT_32BIT=1024

                  set XMX_JROCKIT_64BIT=512

                  set XMX_JROCKIT_32BIT=1024

                   

                   

                  if "%JAVA_VENDOR%"=="Sun" (

                      set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512m

                      set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx1024m

                  ) 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