11 Replies Latest reply on Aug 16, 2007 6:16 PM by Paul Taylor

    java.lang.OutofMemoryException

    Gurkan Erdogdu Newbie

      Hi;

      I downloaded the 2.6 Cr1 bin, deploy sar into the JBOss 4.2.0, using mysql datasource. After deploying, lots of logging related with jboss cache into the console and get exception. I disable info log, restart the server, got same exception...

      Help for this is appreciated;

        • 1. Re: java.lang.OutofMemoryException
          Thomas Heute Master

          use this diff:

          diff -u conf.orig/jboss-log4j.xml conf/jboss-log4j.xml
          --- conf.orig/jboss-log4j.xml 2007-07-16 23:56:32.000000000 +0200
          +++ conf/jboss-log4j.xml 2007-07-17 09:26:16.000000000 +0200
          @@ -164,6 +164,16 @@
           <priority value="INFO"/>
           </category>
          
          + <!-- Hibernate got a bit too verbose in JBoss AS 4.2.1.GA -->
          + <category name="org.hibernate.engine.loading.LoadContexts">
          + <priority value="ERROR"/>
          + </category>
          +
          + <!-- JBoss Cache likes to talk a lot -->
          + <category name="org.jboss.cache.interceptors.CacheLoaderInterceptor">
          + <priority value="ERROR"/>
          + </category>
          +
           <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
           <category name="org.jboss.serial">
           <priority value="INFO"/>
          Common subdirectories: conf.orig/props and conf/props
          Common subdirectories: conf.orig/xmdesc and conf/xmdesc
          


          • 2. Re: java.lang.OutofMemoryException
            Thomas Heute Master

            oh i didn't see the title.
            The exception has nothing to do with the logging.

            • 3. Re: java.lang.OutofMemoryException
              Gurkan Erdogdu Newbie

              Hi thanks for answer,

              I tried to increase JBoss heap size Xmx to 1024, but the problem is still there. I started the jboss in eclipse jboss server plugin, some part of the exception trace is here;

              13:44:35,031 INFO [PortletAppDeployment] Parsing /portal-core/jboss-portlet.xml
              13:44:36,500 INFO [PortletAppDeployment] Parsing /portal-cms/jboss-portlet.xml
              13:44:37,625 INFO [CMSPortlet] Cannot start CMS portlet search service due to service unavailability
              13:44:39,953 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
              13:45:17,609 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
              13:45:39,359 ERROR [STDERR] Exception in thread "ScannerThread"
              13:45:39,875 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
              13:46:04,562 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
              
              


              • 4. Re: java.lang.OutofMemoryException
                Gurkan Erdogdu Newbie

                I restart the server, but this time no error;

                Its awesome....

                • 5. Re: java.lang.OutofMemoryException
                  Gurkan Erdogdu Newbie

                  When request to http://localhost:8080/portal exception is

                  
                  4:00:03,937 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@1cedaf2
                  java.lang.OutOfMemoryError: Java heap space
                  14:00:15,125 ERROR [Http11Protocol] Error reading request, ignored
                  java.lang.OutOfMemoryError: Java heap space
                  14:00:20,140 ERROR [STDERR] Exception in thread "http-localhost%2F127.0.0.1-8080-3"
                  14:00:25,203 ERROR [STDERR] java.lang.NullPointerException
                  14:00:29,250 ERROR [STDERR] at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:180)
                  14:00:31,734 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:529)
                  14:00:35,218 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:546)
                  14:00:36,234 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:610)
                  14:00:38,265 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                  14:00:39,781 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
                  14:00:46,312 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
                  java.lang.NoClassDefFoundError: com/arjuna/ats/arjuna/coordinator/ActionStatus
                   at com.arjuna.ats.arjuna.coordinator.BasicAction.toString(BasicAction.java:1073)
                   at java.lang.String.valueOf(String.java:2615)
                   at java.lang.StringBuffer.append(StringBuffer.java:220)
                   at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.toString(TransactionImple.java:1100)
                   at java.lang.String.valueOf(String.java:2615)
                   at java.lang.StringBuffer.append(StringBuffer.java:220)
                   at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:162)
                   at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
                   at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
                   at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                   at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
                   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                   at org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:70)
                   at org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:131)
                   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                   at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:380)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                   at java.lang.Thread.run(Thread.java:595)
                  14:00:53,609 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
                  java.lang.OutOfMemoryError: Java heap space
                  14:01:21,421 ERROR [STDERR] Exception in thread "ScannerThread"
                  14:01:21,421 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
                  14:01:26,031 ERROR [TxConnectionManager] There is something wrong with the pooling?
                  java.lang.IllegalStateException: afterCompletion called with wrong tx! Expected: TxSync22016244{tx=TransactionImple < ac, BasicAction: a012f74:655:46c2db29:fd status: ActionStatus.ABORTED > wasTrackByTx=true enlisted=true}, actual: null
                   at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.afterCompletion(TxConnectionManager.java:819)
                   at org.jboss.resource.connectionmanager.TransactionSynchronizer.invokeAfter(TransactionSynchronizer.java:301)
                   at org.jboss.resource.connectionmanager.TransactionSynchronizer.afterCompletion(TransactionSynchronizer.java:265)
                   at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:136)
                   at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:342)
                   at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:109)
                   at com.arjuna.ats.arjuna.AtomicAction.abort(AtomicAction.java:201)
                   at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.rollbackAndDisassociate(TransactionImple.java:1330)
                   at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:163)
                   at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:126)
                   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.checkTransactionComplete(CachedConnectionValve.java:237)
                   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:166)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                   at java.lang.Thread.run(Thread.java:595)
                  14:01:28,031 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@b24098
                  14:01:58,796 INFO [CachedConnectionManager] Throwable trying to close a connection for you, please close it yourself
                  java.lang.OutOfMemoryError: Java heap space
                  14:01:59,328 ERROR [CachedConnectionValve] Application error: PortalServletWithPathMapping did not complete its transaction
                  


                  • 6. Re: java.lang.OutofMemoryException
                    Peter Johnson Master

                    Which operating system (and version)? What JVM (and version)?

                    Post the first few lines of the console output that identify the JVM options, classpath, etc.

                    • 7. Re: java.lang.OutofMemoryException
                      Pucky Loucks Newbie

                      I hate to throw in a Me too, but I think I'm having the same issue with the same error.


                      2007-08-16 00:48:58,783 ERROR [org.jboss.portal.server.servlet.CommandServlet] Exception in command invocation
                      java.lang.OutOfMemoryError: PermGen space
                      at sun.misc.Unsafe.defineClass(Native Method)
                      at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
                      at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
                      at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:221)
                      at javax.faces.component._ComponentAttributesMap.get(_ComponentAttributesMap.java:128)
                      at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHTMLAttribute(HtmlRendererUtils.java:501)
                      at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHTMLAttributes(HtmlRendererUtils.java:515)
                      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.renderCommandLinkStart(HtmlLinkRendererBase.java:167)
                      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:87)
                      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:540)
                      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:323)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
                      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
                      at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
                      at org.jboss.portal.faces.loader.FacesPortlet.render(FacesPortlet.java:100)
                      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
                      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
                      at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
                      at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                      2007-08-16 00:48:58,786 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal-admin].[CommandServlet]] Servlet.service() for servlet CommandServlet threw exception
                      java.lang.OutOfMemoryError: PermGen space
                      at sun.misc.Unsafe.defineClass(Native Method)
                      at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
                      at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
                      at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:221)
                      at javax.faces.component._ComponentAttributesMap.get(_ComponentAttributesMap.java:128)
                      at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHTMLAttribute(HtmlRendererUtils.java:501)
                      at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHTMLAttributes(HtmlRendererUtils.java:515)
                      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.renderCommandLinkStart(HtmlLinkRendererBase.java:167)
                      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:87)
                      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:540)
                      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:323)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
                      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
                      at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
                      at org.jboss.portal.faces.loader.FacesPortlet.render(FacesPortlet.java:100)
                      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
                      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
                      at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
                      at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                      2007-08-16 00:48:58,792 WARN [org.hibernate.engine.loading.LoadContexts] fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@1fbcd1b<rs=com.mysql.jdbc.ResultSet@183f728>
                      2007-08-16 00:48:58,792 WARN [org.hibernate.engine.loading.LoadContexts] fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@56deff<rs=com.mysql.jdbc.ResultSet@14043b3>
                      2007-08-16 00:48:58,792 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
                      java.lang.OutOfMemoryError: PermGen space
                      at sun.misc.Unsafe.defineClass(Native Method)
                      at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
                      at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
                      at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at javax.faces.component._ComponentAttributesMap.getComponentProperty(_ComponentAttributesMap.java:221)
                      at javax.faces.component._ComponentAttributesMap.get(_ComponentAttributesMap.java:128)
                      at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHTMLAttribute(HtmlRendererUtils.java:501)
                      at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHTMLAttributes(HtmlRendererUtils.java:515)
                      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.renderCommandLinkStart(HtmlLinkRendererBase.java:167)
                      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:87)
                      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:540)
                      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:323)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380)
                      at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
                      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
                      at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
                      at org.jboss.portal.faces.loader.FacesPortlet.render(FacesPortlet.java:100)
                      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
                      at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
                      at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
                      at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)

                      • 8. Re: java.lang.OutofMemoryException
                        Gurkan Erdogdu Newbie

                         

                        10:39:07,765 INFO [Server] Starting JBoss (MX MicroKernel)...
                        10:39:07,765 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)
                        10:39:07,781 INFO [Server] Home Dir: D:\jboss-4.2.0.GA
                        10:39:07,781 INFO [Server] Home URL: file:/D:/jboss-4.2.0.GA/
                        10:39:07,781 INFO [Server] Patch URL: null
                        10:39:07,781 INFO [Server] Server Name: default
                        10:39:07,781 INFO [Server] Server Home Dir: D:\jboss-4.2.0.GA\server\default
                        10:39:07,781 INFO [Server] Server Home URL: file:/D:/jboss-4.2.0.GA/server/default/
                        10:39:07,781 INFO [Server] Server Log Dir: D:\jboss-4.2.0.GA\server\default\log
                        10:39:07,781 INFO [Server] Server Temp Dir: D:\jboss-4.2.0.GA\server\default\tmp
                        10:39:07,781 INFO [Server] Root Deployment Filename: jboss-service.xml
                        10:39:14,703 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
                        10:39:14,703 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_11-b03,Sun Microsystems Inc.
                        10:39:14,703 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                        10:39:19,781 INFO [Server] Core system initialized
                        


                        • 9. Re: java.lang.OutofMemoryException
                          Thomas Heute Master

                          PermGen Space OOM can happen if you redeploy an application several times. It shouldn't happen in a production environment.

                          • 10. Re: java.lang.OutofMemoryException
                            Peter Johnson Master

                            I should have been clearer. The information I was asking for looks like this:

                            ===============================================================================

                            JBoss Bootstrap Environment

                            JBOSS_HOME: C:\opt\jboss\jboss-4.2.1.GA

                            JAVA: C:\apps\jdk1.5.0_11\bin\java

                            JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
                            ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                            CLASSPATH: C:\apps\jdk1.5.0_11\lib\tools.jar;C:\opt\jboss\jboss-4.2.1.GA\bin\r
                            un.jar

                            ===============================================================================

                            • 11. Re: java.lang.OutofMemoryException
                              Paul Taylor Newbie

                               

                              "thomas.heute@jboss.com" wrote:
                              PermGen Space OOM can happen if you redeploy an application several times. It shouldn't happen in a production environment.


                              Yep, I came across this problem when I deployed a couple of portlets several times. Managed to solve it by doing the following steps below. My setup is JBP 2.4.1, MySql v5, Java 1.5 on Win XP & Solaris 10 so this may be of relevance to other versions:

                              Assuming your portlets are already in the "server/default/deploy" directory then
                              Stop the server, clear out your "server/default/work/jboss.web/localhost" directory of your applications. I've also removed the entire "server/default/tmp" directory as well then restarted the server. It should then automatically deploy your portlets hopefully without problems.


                              My set up of the JAVA opts is:

                              JAVA_OPTS="-server -Xms512m -Xmx1024m -XX:MaxPermSize=1024m
                              {rest of line omitted} which also works as quick fix - bear in mind that my server has enough RAM to do this.

                              I also have another development setup with the following java opts:
                              -Xmx256m -Xms256m -XX:PermSize=256m -XX:MaxPermSize=256m
                              (adjust settings depending on the amount of memory you need)