Current Position:Home > OC4J 10.1.3 java.lang.OutOfMemoryError: PermGen space

OC4J 10.1.3 java.lang.OutOfMemoryError: PermGen space

Update:11-30Source: network consolidation
Advertisement
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

The Best Answer

Advertisement
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
  • OC4J 10.1.3 java.lang.OutOfMemoryError: PermGen space Update:11-30

    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 p

  • Embedded OC4J Error : java.lang.OutOfMemoryError: PermGen space Update:11-30

    Hi all, When testing apps using embbed OC4J I experience the java.lang.OutOfMemoryError: PermGen space. If occur on OAS, I add :add -X:MaxPermSize=256m to the startup java options on opmn.xml, and problem solved. How can I set the startup jaav option

  • 10.1.3 Apps Server java.lang.OutOfMemoryError: PermGen space Update:11-30

    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 m

  • Java.lang.OutOfMemoryError: PermGen space error while creat weblogic domain Update:10-11

    Hi, OBIEE 11g installing in Linux server now. domain creation is in progress for about an hour and in log I can see below error. Creating a new AdminServer Object ... AdminServer port is 7001 Starting the domain ... java.lang.OutOfMemoryError: PermGe

  • Java.lang.OutOfMemoryError: PermGen space in Weblogic 10.3 Update:10-11

    Hi, I Installed OIM in Oracle Weblogic 10.3.When I try to execute the patch_weblogic.cmd ,I am getiing the "java.lang.OutOfMemoryError: PermGen space".I tried increasing the size in xlStartWLS.cmd file.But still the error exists.Any ide?.Followi

  • Java.lang.OutOfMemoryError: PermGen space Update:11-30

    <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

  • Embedded WLS and JDev 12.1.2: java.lang.OutOfMemoryError: PermGen space Update:11-30

    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 confi

  • Servlet failed with Exception  java.lang.OutOfMemoryError: PermGen space Update:11-30

    Hello, I recently installed BI Apps 11.1.1.7.1 on Oracle Linux 64. while i am trying to run the full load i.e. SDE, SILOS and PLP and sometimes while trying to access BIA Configuration Manager..I get below error. while i tried to increase the heap si

  • OSB Deployment Scripts java.lang.OutOfMemoryError: PermGen space issue Update:11-30

    Hi All I get this error at random intervals and to resolve this issue, I have to bounce my machine. Please help (Below is the error in .log file created in .metadata folder) !SESSION 2012-03-20 15:21:13.299 -------------------------------------------

  • Javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space Update:11-30

    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.ex