OutOfMemoryError  PermGen - After Several Redeploys

Hi-
We get an "OutOfMemoryError PermGen" error after several redeploys on 10.1.3 OC4J (full install w/ ias on Linux, Java 1.5). We don't have any special memory config, other then to specify a max size of 2G.
The thing is, we have always had this error from release to release, platform to platform. It seems like there is a limited number of times you can redeploy before you run out of memory. Is it possible that redeploying causes a classloader to hold on to class instances, even after that application is removed or redeployed over?
Have others seen this issue? Is there a workaround? I'm sure we could somehow specify a larger then default PermGen space, but it seems like given the behavior, wouldn't any PermGen space be filled?
Thanks for your help and suggestions.

Eeverman:
As far as I know, oracle oc4j team have been addressing this problem of PermGen memory leak with redeployment or restarting of applications. This problem is indeed not easy to do away with. I would suggest that you file an oracle support tar so that it can be formally addressed again, from yet another perspective, your perspective.
The immediate cause is, of course, somewhere a reachable object is still holding a strong reference to an object of a class loaded by the discarded classloaders even after undeployment of an application, preventing garbage collection of the class and its classloader.

Similar Messages

  • OutOfMemoryError - happens after several days

    I keep getting the OutOfMemoryError after running a rather large java program over and over for several days. The program has sql statements and creates output files. We stop the program every night for sure along with stopping it a few times in the day. So why would the pc run out of memory after this has ran several times? I thought if the java program was completely stopped all of the memory would be freed up. What can I do to fix this problem?

    There are actually 5 copies of the script running from
    different copied directories and running
    simultaneously in scheduled tasks to keep them
    re-running after each one finishes. Over time they
    seem to eat up the machines memory and get to a point
    where none of them will run anymore. Then we have to
    reboot the pc. The script outputs to a text file and
    updates the database but does not load in from the
    text file.Again, I feel like I'm missing something...Java is usually not considered a scripting language, unless we're talking JavaScript, but I doubt you are. Assuming you mean that 5 Java programs are running simultaneously, am I correct in saying that the JVM, or JVM's if each has it's own, never exits? That's what it sounds like, at least.
    That said, you either have a memory leak (as everyone has already suggested), or you actually don't have enough memory to sustain all 5 Java programs at full capacity. If each program runs in it's own JVM and has a max heap size of 128MB and you only have 512MB on the box, it may take some time for the JVM's to allocate all 128MB for each process and cause the exceptions. JVM's allocate heap space on-demand, up to a maximum size, so you wouldn't see the problems when the programs first start.
    Either way, you'll need to cut back the amount of heap space the programs take, using the suggestions already posted. Sorry to drag on, but memory leaks aren't always the (only) source of memory problems.
    That's my 4cents. Good luck

  • Getting java.lang.OutOfMemoryError: PermGen space

    Hi,
    In JCAPS5.1.1 after deploying my project, i am getting following error.
    #|2007-02-20T16:38:48.319+0530|SEVERE|IS5.1.1|STC.eWay.batch.com.stc.connector.batchadapter.system.BatchInboundWork|_ThreadID=50; ThreadName=Worker: 140;stacktrace-id=13;|Exception in BatchInboundWork, BatchInboundWork terminated, e=java.lang.OutOfMemoryError: PermGen space
    java.lang.OutOfMemoryError: PermGen space
    |#]
    Earlier also i have deployed projects but never
    faced this type of error.
    Please let me know Is there any work around to
    rectify this kind of OutOf memory error.
    Thanks
    Venkatesh.S
    Message was edited by:
    VenkateshSampoornam

    Hi moonsit !
    Yes, currently our PermSize is set to 384mb (-XX:MaxPermSize=384m).
    Hi Alan !
    Yes, we get the same conclusion, after deploy or redeploy projects we get the OOME, but I was expecting that SUN support resolve this issue and not use the stop/start as a way to fix that, since sometimes it will impact our production environment.
    I searched over internet and discover that some thirdpart libraries version has memory leaks. It's the case of apache commons-logging 1.0.6 and apache commons-beanutils 1.6. I found them in the lib directory of Integration Server in JCAPS 5.1.3 and may be there is more thinks like that. Both libraries has newer version with this issue fixed. Maybe SUN need to be adviced about that.
    Does anyone else found a way to fix that ? Or a workaround that we can do to avoid the restart of LH ?
    Thanks !
    Thiago

  • BOE hangs, java.lang.OutOfMemoryError: PermGen space,

    Good day,
    I have an issue when working in the CMC that everything hangs and the following errors appear:
    java.lang.OutOfMemoryError: PermGen space
    and
    Exception in thread "Business Objects - Sessions Clean up" java.lang.OutOfMemoryError: PermGen space
    I have tried removing the tomcat service, rebooting and re-installing BOE120Tomcat service.
    After I restart Tomcat it works for about 5 mins and the same erros start appearing again.
    On startup, this is what appears in the log immediatley:
    log4j:WARN Please initialize the log4j system properly.
    java.lang.ClassNotFoundException: [Ljava.lang.String;
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:635)
         at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:422)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    10 Mar 2011 11:42:44 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    10 Mar 2011 11:42:44 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/AnalyticalReporting] startup failed due to previous errors
    Any ideas?
    Many Thanks 
    Derek

    Not sure whether this will help you, but this is not the right forum
    [Analyzing Out-of-Memory Situations|http://help.sap.com/saphelp_nwesrce/helpdata/en/97/d0de42c02c420da92a7cec346f9168/content.htm]
    thanks
    G. Lakshmipathi

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

    Hi All ..we are running with the following configuration.
    Solaris Version 5.10
    ./prtconf
    System Configuration: Sun Microsystems sun4v
    Memory size: 8184 Megabytes
    App Server Version,
    Sun Java System Application Server Enterprise Edition 8.1_02 (build b11-fcs)
    JVM Options in domain.xml,
    <jvm-options>-Xmx512m</jvm-options>
    but what Im facing is..say once in two days..when I open my application in the browser it shows..
    Server Error
    This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log.
    and in my server.log it shows..,
    WARNING|sun-appserver-ee8.1_02|javax.enterprise.system.container.web|_ThreadID=17;|WEB3061 : HttpService: Unhandled pipeline exception
    java.lang.RuntimeException: java.lang.OutOfMemoryError: PermGen space
    at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:251)
    at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2071)
    Caused by: java.lang.OutOfMemoryError: PermGen space
    |#]
    after getting this I used to reboot the machine..then It ll be fine for some time.,this happens repeatedly..
    and some of the documents says..we need to increase the Xmx..
    if it so.,how much I can incerase..we are running sun x-fire t2000
    Thanks in Advance,
    Ashik

    Rebooting the machine is unnecessary; you can just stop and restart the application server.
    The PermGen holds Class objects primarily (also interned strings and a few other things); are you doing a lot of deployment/redeployment? Those operations greatly increase the number of classes in use by the app server (because each new deployment is a new set of classes from the app server perspective), and that's the most common cause of this problem. In that case, the only thing to do is increase the PermGen size by including in your jvm-options -XX:MaxPermSize=<something>; I'd try 128m or 256m.
    More recent versions of the app server (especially platform edition 9.0) have better handling of the multiple classes involved, so you might want to check them out.
    A good reference on GC is http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
    -Scott

  • Weblogic Server error - OutOfMemoryError: PermGen space

    Dear All,
    For Oracle BPM 11g (Implement the Process Model) implementation on windows
    I am using windows 7 64 Bit OS. I have 
    Installed 10g DB
    Run the RCU Utility for SOAINFRA, ORABAM, SSPDM and MDS schemas successfully.
    Installed Weblogic Server 11gr1(10.3.5)
    Installed Oracle Jdeveloper 11g - 11.1.1.6.0
    Installed SOA 11g  using \Java\jdk1.6.0_24
    From Jdeveloper I installed the extensions for SOA Composite Editor and BPM studio.
    Created Domain for SOA server
    All installations, utitlities and configurations completed successfully.
    After starting the Weblogic Admin. server (server is up and OK)
    The Problem starts here
    When I login to weblogic Admin console I get the following error
    javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space on
    the command prompt window and even on the browser window.
    I am able to trace the problem.  To get the Idea following are some details of
    $MW_HOME/user_projects/domains/soa_domain/bin/setDomainEnv.cmd
    call "%WL_HOME%\common\bin\commEnv.cmd"
    call "%DOMAIN_HOME%\bin\setSOADomainEnv.cmd"
    call "%DOMAIN_HOME%\bin\setSOADomainEnv.cmd"
    set WLS_HOME=%WL_HOME%\server
    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
    if "%JAVA_VENDOR%"=="Sun" (
        set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512m
        set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx512m
    ) else (
        set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx512m
        set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
    if "%JAVA_VENDOR%"=="Oracle" (
        set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_JROCKIT_64BIT%m -Xmx%XMX_JROCKIT_64BIT%m
        set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_JROCKIT_32BIT%m -Xmx%XMX_JROCKIT_32BIT%m
    ) else (
        set CUSTOM_MEM_ARGS_64BIT=-Xms%XMS_SUN_64BIT%m -Xmx%XMX_SUN_64BIT%m
        set CUSTOM_MEM_ARGS_32BIT=-Xms%XMS_SUN_32BIT%m -Xmx%XMX_SUN_32BIT%m
    set MEM_ARGS_64BIT=%CUSTOM_MEM_ARGS_64BIT%
    set MEM_ARGS_32BIT=%CUSTOM_MEM_ARGS_32BIT%
    if "%JAVA_USE_64BIT%"=="true" (
        set MEM_ARGS=%MEM_ARGS_64BIT%
    ) else (
        set MEM_ARGS=%MEM_ARGS_32BIT%
    set MEM_PERM_SIZE_64BIT=-XX:PermSize=128m
    set MEM_PERM_SIZE_32BIT=-XX:PermSize=128m
    After taking the backup
    I tried  changing the Permsize to 256, 512 and even 1024.
    started the Weblogic Admin server and tried to login, but the same error.
    Details of setSOADomainEnv.cmd
    set JAVA_OPTIONS=%JAVA_OPTIONS%
    set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m
    set PORT_MEM_ARGS=-Xms768m -Xmx1536m
    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=512m
    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m
    what are the recommended values I need to put for Permsize in setDomainEnv.cmd?
    Do I also need to change the values in setSOADomainEnv.cmd ?
    Please correct me where I am wrong. How can the OutOfMemoryError: PermGen space
    issue be resolved ?
    Thanks
    Ajaz Ahmed

    Hi Lakshman,
    Thanks for the prompt resonse.
    1. How many managed servers do you have in your domain ?
    I have only one managed server (soa_server1)
    2. If yes, How you are starting the Managed server ? Is that by Nodemanager or Startscript ?
    Yes. I start the managed server by startscript (using startmanagedweblogic)
    3. Can you check the <managed_server1>.out log file what java heap size is mentioned ?
    I have not reached the managed server startup (though it starts and gives
    the last line as SOA platform is accepting and running the requiests.
    My problem is with weblogic server, which after login I get the Permgen out of memory error.
    4. Can you show us the start up arguements of your each managed server ?
       AdminConsole-->Environments---.Servers--->YourManagedServer--->Configuration (TAB)--->ServerStart (SubTab)---> Arguments:(TextArea)
    I am not able to get the console. Because when I login the weblogic console,
    Immediately I get the  error as
    javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space
    Please clear my doubt as which of the files
    setDomainEnv.cmd or setSOADomainEnv.cmd, I should change the values and
    into which file and which step.
    My priority is weblogic console to be working without any errors. So Far Managed server is OK.
    Thanks
    Ajaz Ahmed

  • Embedded WLS and JDev 12.1.2: java.lang.OutOfMemoryError: PermGen space

    This problem happens after about 10-15 application restarts during development phase. I have read somewhere that this was a known bug in 11g versions of JDev and its integrated WLS (10.3.5 or 10.3.6?). I have then increased memory parameters in configuration file. The only thing I achieved is that this crash now occurs later then sooner. Still very frustrating. When this happens I have to restart WLS and sometimes kill frozen JDeveloper.
    Any other idea/workaround?
    <Dec 30, 2013 12:37:04 PM CST> <Warning> <HTTP> <BEA-101384> <WLServlet annotation is deprecated, please use servlet 3.0 annotation instead. App:ADFOracleReports@ADFOracleReports-FwkExtensions-context-root, Class:oracle.adfinternal.view.faces.activedata.AdsServlet>
    <Dec 30, 2013 12:37:04 PM CST> <Warning> <HTTP> <BEA-101384> <WLServlet annotation is deprecated, please use servlet 3.0 annotation instead. App:ADFOracleReports@ADFOracleReports-ViewController-context-root, Class:oracle.adfinternal.view.faces.activedata.AdsServlet>
    <Dec 30, 2013 12:37:22 PM CST> <Warning> <HTTP> <BEA-101162> <User defined listener org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl failed: java.lang.OutOfMemoryError: PermGen space.
    java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:385)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:344)
      Truncated. see log file for complete stacktrace
    >
    <Dec 30, 2013 12:37:33 PM CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1388428621416" for task "10". Error is: "weblogic.application.ModuleException: java.lang.OutOfMemoryError: PermGen space"
    weblogic.application.ModuleException: java.lang.OutOfMemoryError: PermGen space
      at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:385)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:344)
      Truncated. see log file for complete stacktrace
    >
    <Dec 30, 2013 12:37:33 PM CST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application "ADFOracleReports".>
    <Dec 30, 2013 12:37:33 PM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "ADFOracleReports".>
    <Dec 30, 2013 12:37:33 PM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: java.lang.OutOfMemoryError: PermGen space
      at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:385)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:344)
      Truncated. see log file for complete stacktrace
    >
    [12:37:53 PM] Cancel requested
    [Application ADFOracleReports stopped and undeployed from IntegratedWebLogicServer]
    <Dec 30, 2013 12:37:53 PM CST> <Error> <Deployer> <BEA-149062> <The task containing ID 10 cannot be canceled, since it has already completed execution.>
    <Dec 30, 2013 12:37:53 PM CST> <Warning> <RMI> <BEA-080003> <A RuntimeException was generated by the RMI server: javax.management.remote.rmi.RMIConnectionImpl.invoke(Ljavax.management.ObjectName;Ljava.lang.String;Ljava.rmi.MarshalledObject;[Ljava.lang.String;Ljavax.security.auth.Subject;)
    javax.management.RuntimeMBeanException: java.lang.UnsupportedOperationException: [Deployer:149062]The task containing ID 10 cannot be canceled, since it has already completed execution..
    javax.management.RuntimeMBeanException: java.lang.UnsupportedOperationException: [Deployer:149062]The task containing ID 10 cannot be canceled, since it has already completed execution.
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
      at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:375)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.UnsupportedOperationException: [Deployer:149062]The task containing ID 10 cannot be canceled, since it has already completed execution.
      at weblogic.management.deploy.DeploymentTaskRuntime.prepareToCancel(DeploymentTaskRuntime.java:881)
      at weblogic.management.deploy.DeploymentTaskRuntime.cancel(DeploymentTaskRuntime.java:854)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Truncated. see log file for complete stacktrace
    >

    You can try to change the garbage collector algorithm. Refere to http://bexhuff.com/2012/09/jdeveloper-memory-and-performance
    Timo

  • 10.1.3 Apps Server java.lang.OutOfMemoryError: PermGen space

    Hi,
    I am continually getting java.lang.OutOfMemoryError: PermGen space errors when using the application server control. I have two applications deployed which have been running ok (since i bumped up the MaxPermSize in oc4j_opmn.xml)
    I have set the max perm size to 512m should i need to set this higher to get the AS stable?
    The error has happened this time when I selected an application and clicked Redeploy. Because the ASC dies i can't get any useful information on what the server is doing before it memory leaks itself out of existence.
    any help would be appreciated,
    Brenden

    Hi,
    I found this in the manual as a solution for out of memory errors:
    (from the opmn.xml in $ORACLE_HOME/opmn/conf/)
    <ias-component id="OC4J">
      <process-type id="home" module-id="OC4J" status="enabled">
        <module-data>
          <category id="start-parameters">
            <data id="java-options" value="-Xms512m -Xmx512m -Djava.awt.headless=true
              -Dhttp.webdir.enable=false"/>
          </category>
        </module-data>
      </process-type>
    </ias-component>reference:
    http://download-west.oracle.com/docs/cd/B25221_03/web.1013/b14432/diagnosis.htm#sthref509
    shall see if it works......
    Brenden

  • PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space

    I've been searching the net for days and have tried changing the eclipse.ini per everyone's instructions...but still keep crashing after small changes.
    java.lang.OutOfMemoryError: PermGen space
    -startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile -showsplash org.eclipse.platform -vm C:Program Files/Java/jre6/bin/clientjvm.dll -vmargs -Dosgi.requiredJavaVersion=1.6 -Declipse.p2.unsignedPolicy=allow -Xmn256m -Xms1024m -Xmx768m -Xss4m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:CompileThreshold=5 -XX:MaxGCPauseMillis=10 -XX:MaxHeapFreeRatio=70 -XX:+CMSIncrementalPacing -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+UseFastAccessorMethods -Dcom.sun.management.jmxremote
    here's the .log
    !SESSION 2011-11-15 14:27:03.125 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -v clean
    Command-line arguments:  -os win32 -ws win32 -arch x86 -v clean
    !ENTRY org.eclipse.ui 2 0 2011-11-15 14:27:07.390
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-11-15 14:27:07.390
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY org.eclipse.jface 2 0 2011-11-15 14:27:15.218
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-11-15 14:27:15.218
    !MESSAGE A conflict occurred for CTRL+G:
    Binding(CTRL+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.declarations.in.wor kspace,Declaration in Workspace,
      Search for declarations of the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6bc947)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6bc947)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-11-15 14:27:15.218
    !MESSAGE A conflict occurred for CTRL+SHIFT+G:
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.references.in.works pace,References in Workspace,
      Search for references to the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@6b5488)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@6b5488)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !ENTRY org.eclipse.core.jobs 4 2 2011-11-15 14:28:01.375
    !MESSAGE An internal error occurred during: "Building workspace".
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.j ava:188)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:58 0)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java: 550)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager. java:481)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(Class pathManager.java:469)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :449)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:110)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
    at com.adobe.flexbuilder.project.compiler.internal.BuilderUtils.copyDependents(BuilderUtils. java:483)
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuild er.java:393)
    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncremen talBuilder.java:187)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)

    Also, describe your project set up. Sometimes these things can happen if your workspace is not configured correctly (like two library projects that import each other for example).
    And I assume you checked to make sure you aren't actually out of RAM?
    *edit*
    Also, you mention editing eclipse.ini, but I think you actually need FlashBuilder.ini in your FB install directory. Mine looks like this:
    -nl
    en_US
    -startup
    eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    --launcher.library
    eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
    --launcher.defaultAction
    openFile
    -vmargs
    -Xms256m
    -Xmx512m
    -XX:MaxPermSize=256m
    -XX:PermSize=64m
    -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins
    -Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication
    If you are doing something that's particularly memory intesnive, try changing:
    -Xmx1024m
    -XX:MaxPermSize=512m

  • Jdev11g: java.lang.OutOfMemoryError: PermGen space

    Hi All,
    After running couple of times , my application throws following exception
    ava.lang.OutOfMemoryError: PermGen space
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:247)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:166)
         at oracle.jbo.common.JBOClass.newInstance(JBOClass.java:265)
         at oracle.adf.model.binding.DCBindingContainerDef.resolveCustomizer(DCBindingContainerDef.java:1482)
         at oracle.adf.model.binding.DCBindingContainerDef.loadOrCreateCustomDefinition(DCBindingContainerDef.java:1491)
         at oracle.adf.model.binding.DCBindingContainerDef.loadChildrenFromXML(DCBindingContainerDef.java:1163)
         at oracle.adf.model.binding.DCDefBase.loadFromXML(DCDefBase.java:325)
         at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:409)
         at oracle.adf.model.binding.DCBindingContainerDef.loadExecutables(DCBindingContainerDef.java:1361)
         at oracle.adf.model.binding.DCBindingContainerDef.loadChildrenFromXML(DCBindingContainerDef.java:1158)
         at oracle.adf.model.binding.DCDefBase.loadFromXML(DCDefBase.java:325)
         at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:409)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadFromXML(JUMetaObjectManager.java:1198)
         at oracle.jbo.mom.DefinitionManager.loadDefinitionObjectWithoutCaching(DefinitionManager.java:1044)
         at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2446)
         at oracle.adf.model.binding.DCBindingContainerDef.findDefObject(DCBindingContainerDef.java:277)
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:127)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:90)
    I again stopped the embedded weblogic server, and then run the page and got following exception in log window
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m
    WLS Start Mode=Development
    CLASSPATH=;C:\oracle\MIDDLE~1\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~1\modules\ORGAPA~1.5/lib/ant-all.jar;C:\oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\modules\features\adf.share_11.1.1.jar;;C:\oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;;
    PATH=C:\oracle\MIDDLE~1\patch_wls1030\profiles\default\native;C:\oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\oracle\MIDDLE~1\patch_cie660\profiles\default\native;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~1\modules\ORGAPA~1.5\bin;C:\oracle\MIDDLE~1\JDK160~1\jre\bin;C:\oracle\MIDDLE~1\JDK160~1\bin;D:\OraHome_3\bin;D:\OraHome_3\jre\1.4.2\bin\client;D:\OraHome_3\jre\1.4.2\bin;D:\product\10.1.3.1\OracleAS_1\jdk\bin;D:\product\10.1.3.1\OracleAS_1\ant\bin;D:\oracle\product\10.2.0\client_1\bin;D:\product\10.1.3\OracleAS_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\product\10.1.3.1\OracleAS_1\MOBILE\sdk\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Java\jdk1.5.0_14\bin\;C:\oracle\MIDDLE~1\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:
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)
    Starting WLS with line:
    C:\oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -DproxySet=false -Djbo.34010=false -Xverify:none -da -Dplatform.home=C:\oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\oracle\MIDDLE~1\JDEVEL~1\system\SYSTEM~1.56\DEFAUL~1 -Doracle.home=C:\Oracle\Middleware\jdeveloper -Doracle.security.jps.config=C:\oracle\MIDDLE~1\JDEVEL~1\system\SYSTEM~1.56\DEFAUL~1\config\oracle\jps-config.xml -Doracle.dms.context=OFF -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\oracle\MIDDLE~1\patch_wls1030\profiles\default\sysext_manifest_classpath;C:\oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath;C:\oracle\MIDDLE~1\patch_cie660\profiles\default\sysext_manifest_classpath -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy weblogic.Server
    <Nov 17, 2008 12:17:41 PM IST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\oracle\Middleware\patch_wls1030\profiles\default\sysext_manifest_classpath\weblogic_ext_patch.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\beehive_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\p13n_wls_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\testclient_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\tuxedocontrol_zh_TW.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_ja.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_ko.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_zh_CN.jar;C:\oracle\Middleware\wlserver_10.3\L10N\workshop_zh_TW.jar>
    <Nov 17, 2008 12:17:42 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
    <Nov 17, 2008 12:17:43 PM IST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.management.ManagementException: Unable to obtain lock on C:\oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\servers\DefaultServer\tmp\DefaultServer.lok. Server may already be running
         at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:159)
         at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:58)
         at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:73)
         at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:459)
         at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:164)
         at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:711)
         at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:482)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
         at weblogic.Server.main(Server.java:67)

    Hi Kovik,
    this problem occurs from SUN Jdk at weblogic, if you change your jdk vendor to BEA JRockit jdk, it will never occur again.
    in Linux:
    (/Oracle/Middleware/wlserver_10.3/samples/domains/wl_server/bin/setDomainEnv.sh
    add line JAVA_VENDOR=”BEA” #so jrockit provided by BEA already
    and set parameter BEA_JAVA_HOME="" #write path where jrockit
    or
    you can increase you PermGen parameter for Sun jdk in same file (setDomainEnv.sh)
    in windows the filename, setDomain.cmd
    My prefer is jrockit jdk,
    I switch to jrockit and it never occurs again.
    Mucahid Uslu

  • Diagnosing java.lang.OutOfMemoryError: PermGen space

    I am getting this error on our test instance:
    Exception in thread "Thread-96425" java.lang.OutOfMemoryError: PermGen space
    (We are using JDK 1.5.0_03)
    What tools can I use to inspect the contents of PermGen? In particular, is there a way to see all the interned String objects?
    I tried jmap -permstat, but it only shows perm gen usage based on classloader. I wasn't sure how to check the intern Strings.
    Thanks
    Sam

    Hi All,
    We just to add few things before i go into deep as to what is the root cause that might cause Out Of Memory due to Permanant Generation.
    Well recently i had faced this issue in one of the biggest application used in UK.I faced this issue and the resoultion for this took to almost 3 months.Now the issue is resolved.The reason for this was in the application itself.
    Well to diagnose this, please add the following parameter into the JVM Options of the instance you are using it.DON'T use parallelGC.
    -verbose:gc
    -XX:+PrintClassHistogram
    -XX:+PrintGCDetails
    After this JVM options are added, restart you instance and then check the server.log file.You will see lots of classes.Please do a analysis of this classes.You will observe that some of the classes keeps on growing even after the FULLGC is done.It means that there is some problem you need to check either at the application layer as to which classes are creating this problem.Normally classes or sometimes API's being used by the application can caused PermGen issue.
    Well String.intern method normally being used by XML api's .
    Please drop me a mail for any further information you require.My id is
    [email protected]
    Regrads
    Rahul Shah

  • Java.lang.OutOfMemoryError:PermGen space error

    We haven't been able to go live with our help systems on RoboHelp Server 8 yet due to some major memory issues with Tomcat/RoboHelp Server. We've been working with Tulika on this issue, but I just wanted to check in and see if anyone else here has experienced such a thing, and if so....what did you do to fix it?
    After installing the server, having it up and running for a few months, and posting help systems to the server....it suddenly has serious memory issues that are making it crash.
    We were advised to configure the maximum and minimum heap space setings for Initial memory pool and maximum memory pool both to the following: 256, 512, 768 and 1024. 
    We are receiving the java.lang.OutOfMemoryError: PermGen space error when increasing the setting to 512.  When trying to increase the setting to 768 or 1024 Apache Tomcat uses 100% of the CPU and then stops after about a minute.  When trying to start the service back up it spikes to 100% CPU usage and then dies again. This happens continuously and makes it so the services constantly stop! If you try to hit a site that is hosted on the RH 8 Server it causes it to spike and crashes.
    Overview:
    Software being used Adobe Robohelp8 and Apache Tomcat 6.0.
    We have around 11 sites being hosted on Robohelp8.
    Server specs are 2.93GHz processor and 4G RAM.

    Hi jdcyclone1,
    You need to increase PermSpace available to your tomcat. You can do that using <tomcat-install-dir>/bin/tomcat6w.exe
    Just ensure that your “Maximum memory pool” and “XX:MaxPermSize” should not add up to more than actual memory you can make available to tomcat. The setting is as shown in this snapshot:

  • OVD Install Getting OutOfMemoryError: PermGen space

    During an install of OIM 10.3.2 I have to create a new domain. Everything works fine until in Step 12 the installer attempts to restart the domain. At that point I get the OutOfMemoryError: PermGen space in my install log and the installer pretty much locks up and dies. I see some comments about using the JAVA_HOME environment variable to increase these amounts but they all in postings for other products that talk about making changes to .sh files in the install paths so I'm not sure where I should be making this change, if I should even be making this change. Any direction would be greatly appreciated.
    WebLogic Server 10.3.2
    JRockit JDK 1.6.0_26
    Thanks
    Edited by: user8798451 on Jul 20, 2011 4:41 PM

    Pardon me for my ignorance but I'm new to the Oracle products so where exactly would I need to make these setting changes? I have seen posts online about making similar changes in the WLS admin console in an "Arguments" text box but so far those changes have not successfully resolved the issue. I have seen other posts about editing an .sh file but I'm not sure which is correct.
    Plus, once I've made the changes I still need to continue installing and configuring my OVD instance so I would just like to confirm that after making the changes I should be able to restart the OVD installer and instead of telling it to create a new domain just select extend existing and point it to the domain in question, right? From there it should do what it needs to do???
    Thanks again for the response and thanks in advance for any additional help you can provide.

  • OutOfMemoryError: PermGen space

    I'm using Sun Application Server Platform 9 and tried to run a servlet. I received the following message:
    [#|2008-02-03T11:31:48.657-0700|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_Th
    e=httpWorkerThread-4848-0;_RequestID=418ba659-f079-422f-8200-36ce185a54c6;|WEB0780: HTTP Processing
    java.lang.OutOfMemoryError: PermGen space
    |#]How do i increase memory?
    Thanks.

    In the admin console, go to the JVM options tab and add this option:
    -XX:MaxPermSize=192m
    If you continue to get that error, consider upgrading to 9.1, which fixes some issues with the PermGen space.

  • I am unable to open Calendar on my iMac - this occurred after installing Security Update 2015-002.  I don't know if related.  A message pops up after several minutes saying Calendar quit unexpectedly (but it never really opens). How do get Calendar b

    I am unable to open Calendar on my iMac - this occurred after installing Security Update 2015-002.  I don't know if related.  A message pops up after several minutes saying Calendar quit unexpectedly (but it never really opens). How do get Calendar back?

    Hi Magsrobby,
    Welcome to the forum and thanks for posting. I'm really sorry to hear you've had so many problems. I can look into this for you if you wish. Drop me an email with the details. You'll find the "contact us" form in the about me section of my profile. Once I have the details we'll take it from there.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

Maybe you are looking for