1 Reply Latest reply: Jun 11, 2009 4:20 PM by 645291 RSS

    java.lang.OutOfMemoryError: PermGen space in Weblogic 10.3

    642537
      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?.Following is the error trace:


      wldeploy] Caused by: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: [J2EE Deployment SPI:260009]Exception caught for class 'weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl' while attempting to create DeploymentManager: java.lang.OutOfMemoryError: PermGen space
      [wldeploy]      at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:130)
      [wldeploy]      at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
      [wldeploy]      at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:446)
      [wldeploy]      at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:304)
      [wldeploy]      ... 32 more
      [wldeploy] Caused by: java.lang.OutOfMemoryError: PermGen space
      [wldeploy]      at java.lang.Class.getDeclaredMethods0(Native Method)
      [wldeploy]      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      [wldeploy]      at java.lang.Class.getDeclaredMethod(Class.java:1935)
      [wldeploy]      at java.io.ObjectStreamClass.getInheritableMethod(ObjectStreamClass.java:1349)
      [wldeploy]      at java.io.ObjectStreamClass.access$2200(ObjectStreamClass.java:52)
      [wldeploy]      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:448)
      [wldeploy]      at java.security.AccessController.doPrivileged(Native Method)
      [wldeploy]      at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)
      [wldeploy]      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
      [wldeploy]      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
      [wldeploy]      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      [wldeploy]      at weblogic.rjvm.OutboundMsgAbbrev.writeObject(OutboundMsgAbbrev.java:77)
      [wldeploy]      at weblogic.rjvm.OutboundMsgAbbrev.writeAbbrevs(OutboundMsgAbbrev.java:56)
      [wldeploy]      at weblogic.rjvm.OutboundMsgAbbrev.write(OutboundMsgAbbrev.java:39)
      [wldeploy]      at weblogic.rjvm.MsgAbbrevJVMConnection.writeMsgAbbrevs(MsgAbbrevJVMConnection.java:212)
      [wldeploy]      at weblogic.rjvm.MsgAbbrevJVMConnection.sendMsg(MsgAbbrevJVMConnection.java:180)
      [wldeploy]      at weblogic.rjvm.MsgAbbrevJVMConnection.sendMsg(MsgAbbrevJVMConnection.java:142)
      [wldeploy]      at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1465)
      [wldeploy]      at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:437)
      [wldeploy]      at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
      [wldeploy]      at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
      [wldeploy]      at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
      [wldeploy]      at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
      [wldeploy]      at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
      [wldeploy]      at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
      [wldeploy]      at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
      [wldeploy]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
      [wldeploy]      at weblogic.security.service.SecurityManager.runAs(Unknown Source)
      [wldeploy]      at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
      [wldeploy]      at weblogic.jndi.Environment.getContext(Environment.java:315)
      [wldeploy]      at weblogic.jndi.Environment.getContext(Environment.java:285)
      [wldeploy]      at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
      [ant] Exiting C:\oim910\oimserver\xellerate\setup\weblogic-setup.xml.
      java.lang.OutOfMemoryError: PermGen space
           at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:276)
           at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:156)
           at org.apache.tools.ant.Project.fireBuildFinished(Project.java:1848)
           at org.apache.tools.ant.Main.runBuild(Main.java:688)
           at org.apache.tools.ant.Main.startAnt(Main.java:187)
           at org.apache.tools.ant.Main.start(Main.java:150)
           at org.apache.tools.ant.Main.main(Main.java:240)
      PermGen space

      Any input is highly appreciated.Thanks