[jboss-user] [Beginners Corner] OutOfMemoryError on JBoss Portal, when run in 64-bit JVM

Chris Case kahotep at gmail.com
Wed Feb 13 16:59:47 EST 2008


I decided that it may help to give some more information about my setup, as
I keep running into this "PermGen Space" error.

The JBoss installation I'm using is freshly unzipped and installed with no
changes.

I'm running JBoss with the following specs:

*JBoss Portal:* 2.6.3.GA
*Operating System:* Ubuntu 7.10 using a
*Processor:* Dual Intex Xeon 64-bit 4-core processors
*Ram:* 8 GB
*Java:* Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_13-b05, mixed mode)

This is the most recent fatal error I have gotten while just performing
basic operations in the portal as admin:

16:55:10,325 ERROR [STDERR] Feb 13, 2008 4:55:10 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/portal-faces-lib.jar!/META-INF/portal.taglib.xml
16:55:10,364 ERROR [STDERR] Feb 13, 2008 4:55:10 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
16:55:10,403 ERROR [STDERR] Feb 13, 2008 4:55:10 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
16:55:10,416 ERROR [STDERR] Feb 13, 2008 4:55:10 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
16:55:10,473 ERROR [STDERR] Feb 13, 2008 4:55:10 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
16:55:10,484 ERROR [STDERR] Feb 13, 2008 4:55:10 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
16:55:11,073 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default
value true
16:55:11,073 INFO  [MyfacesConfig] Tomahawk jar not available.
Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter
are disabled now.
16:55:11,073 INFO  [MyfacesConfig] Starting up Tomahawk on the
RI-JSF-Implementation.
16:55:11,073 INFO  [MyfacesConfig] Starting up Tomahawk on the
MyFaces-JSF-Implementation
16:55:11,073 ERROR [MyfacesConfig] Both MyFaces and the RI are on your
classpath. Please make sure to use only one of the two JSF-implementations.
16:55:42,446 ERROR [STDERR] Feb 13, 2008 4:55:42 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
16:55:42,462 ERROR [STDERR] Feb 13, 2008 4:55:42 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
16:55:42,467 ERROR [STDERR] Feb 13, 2008 4:55:42 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/portal-faces-lib.jar!/META-INF/portal.taglib.xml
16:55:42,481 ERROR [STDERR] Feb 13, 2008 4:55:42 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
16:55:42,488 ERROR [STDERR] Feb 13, 2008 4:55:42 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
16:55:42,495 ERROR [STDERR] Feb 13, 2008 4:55:42 PM
com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/jboss-
portal-2.6.3.GA/server/default/./deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
16:55:42,789 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default
value true
16:55:42,789 INFO  [MyfacesConfig] Tomahawk jar not available.
Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter
are disabled now.
16:55:42,789 INFO  [MyfacesConfig] Starting up Tomahawk on the
RI-JSF-Implementation.
16:55:42,789 INFO  [MyfacesConfig] Starting up Tomahawk on the
MyFaces-JSF-Implementation
16:55:42,789 ERROR [MyfacesConfig] Both MyFaces and the RI are on your
classpath. Please make sure to use only one of the two JSF-implementations.
16:55:57,381 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space
        at java.lang.Throwable.getStackTraceElement(Native Method)
        at java.lang.Throwable.getOurStackTrace(Throwable.java:592)
        at java.lang.Throwable.printStackTrace(Throwable.java:511)
        at
org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(
Compiler.java:477)
        at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java
:430)
        at org.apache.jasper.compiler.JDTCompiler.generateClass(
JDTCompiler.java:405)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
        at org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.java:566)
        at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:316)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:336)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        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.apache.catalina.core.ApplicationDispatcher.invoke(
ApplicationDispatcher.java:654)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(
ApplicationDispatcher.java:557)
        at org.apache.catalina.core.ApplicationDispatcher.include(
ApplicationDispatcher.java:481)
        at
org.jboss.portal.portlet.impl.jsr168.api.PortletRequestDispatcherImpl.include
(PortletRequestDispatcherImpl.java:86)
        at
org.jboss.portal.core.ui.content.portlet.PortletContentEditorPortlet.getContent
(PortletContentEditorPortlet.java:176)
        at
org.jboss.portal.core.ui.content.portlet.PortletContentEditorPortlet.doEditContent
(PortletContentEditorPortlet.java:100)
        at
org.jboss.portal.core.ui.content.portlet.PortletContentEditorPortlet.doDispatch
(PortletContentEditorPortlet.java:90)
        at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
        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)
        at
org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeRequiresNew$aop
(TransactionInterceptor.java:111)
        at
org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeRequiresNew_1464645299204216429.invokeNext
(TransactionInterceptor$invokeRequiresNew_1464645299204216429.java)
        at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
        at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(
TxInterceptor.java:253)
16:55:57,382 ERROR
[org_jboss_portal_core_ui_content_portlet_PortletContentEditorPortlet] The
portlet threw an exception
16:56:04,751 ERROR [STDERR] org.jboss.portal.portlet.PortletInvokerException:
javax.servlet.ServletException
16:56:07,805 ERROR [STDERR]
org.jboss.portal.core.controller.ControllerException:
org.jboss.portal.portlet.PortletInvokerException:
javax.servlet.ServletException
16:56:10,635 ERROR [[PortalServletWithPathMapping]] Servlet.service() for
servlet PortalServletWithPathMapping threw exception
java.lang.OutOfMemoryError: PermGen space


This problem didn't happen when I was running the 32-bit version of Ubuntu,
etc, on this server.  But now that I am using 64-bit everything seems to be
going wrong.

~chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20080213/64725965/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jboss_startup_output.txt
Url: http://lists.jboss.org/pipermail/jboss-user/attachments/20080213/64725965/attachment.txt 


More information about the jboss-user mailing list