1 Reply Latest reply on Sep 28, 2005 3:17 PM by David Sledge

    java.lang.OutOfMemoryError/ Failed to boot jboss

    Krishna Rawat Newbie

      All,

      Sometimes i get following error

      09:04:10,098 ERROR [MainDeployer] Could not initialise deployment: file:/opt/test/jboss/server/default/conf/jboss-service.xml
      java.lang.OutOfMemoryError
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.(ZipFile.java:204)
      at java.util.jar.JarFile.(JarFile.java:132)
      at java.util.jar.JarFile.(JarFile.java:97)
      at org.jboss.deployment.DeploymentInfo.getManifest(DeploymentInfo.java:344)
      at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1032)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:840)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
      at org.jboss.Main.boot(Main.java:162)
      at org.jboss.Main$1.run(Main.java:423)
      at java.lang.Thread.run(Thread.java:595)
      Failed to boot JBoss:
      org.jboss.deployment.DeploymentException: Could not initialise deployment: file:/opt/test/jboss/server/default/conf/jboss-service.xml; - nested throwable: (java.lang.OutOfMemoryError)

      If i start couple of times, jboss starts fine after couple of attempts, i am wondering why jboss is failing to boot. I must say my linux server has enough memory. I am using
      Jboss 4.0.1
      JDK 1.5.0_04
      Linux AS 3 with latest Kernel 2.4.21-32.0.1.ELsmp,amd64
      My JVM foot print is 2MB

      any pointers will be welcome.

      thanks
      krishna