cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment of 3.4 in JBoss 5.1.0 GA Results in 100% CPU

bentz666
Champ in-the-making
Champ in-the-making
Hey folks,
I've tried following the instructions over at http://docs.alfresco.com/3.4/topic/com.alfresco.Enterprise_3_4_0.doc/tasks/alfv3-jboss-install.html and did everything as instructed (minus the UTF-8 changes, which caused "org.xml.sax.SAXParseException: The reference to entity "characterEncoding" must end with the ';' delimiter." errors)

When I start JBoss, the JVM process goes to 100% CPU utilization, with no threading (one CPU at 100%, all others idle) and the last thing logged by JBoss is:

14:30:24,405 INFO  [TomcatDeployment] deploy, ctxPath=/alfresco

and then nothing. The JVM is totally frozen and no longer responds to inbound TCP connections for the other applications which successfully deployed and used to run (before Alfresco).

This is Red Hat Enterprise Linux 5.4 on an x86_64 in VMware ESX 4.0. 4 CPUs, 4GB of memory configured and java JDK 6 Update 19, 64-bit OS & 64-bit JVM.

$ java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) 64-Bit Server VM (build 16.2-b04, mixed mode)

Note this process has been 100% CPU-bound since the time JBoss was started.

$ ps -ef | grep [j]ava
jboss    16387 16359 99 14:27 ?        01:19:56 /usr/java/default/bin/java -Dprogram.name=run.sh -server -Xss1024K -Xms1G -Xmx2G -XX:MaxPermSize=128M -XX:NewSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80 -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss/default/lib/endorsed -classpath /opt/jboss/default/bin/run.jar:/usr/java/default/lib/tools.jar org.jboss.Main -b 127.0.0.1

$ tail -f /opt/jboss/default/server/default/log/server.log
2011-04-09 14:30:17,987 INFO  [org.jboss.ejb3.session.SessionSpecContainer] (main) Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
2011-04-09 14:30:17,989 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
2011-04-09 14:30:18,012 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (main) Binding the following Entries in Global JNDI:

        SecureProfileService/remote - EJB3.x Default Remote Business Interface
        SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface

2011-04-09 14:30:18,244 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/admin-console
2011-04-09 14:30:18,352 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (main) Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
2011-04-09 14:30:24,405 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/alfresco

This is community edition.
2 REPLIES 2

bentz666
Champ in-the-making
Champ in-the-making
I just tried using Tomcat 6.0.26, as in http://docs.alfresco.com/3.4/topic/com.alfresco.Enterprise_3_4_0.doc/tasks/alfv3-tomcat-install.html.

Same deal. 100% CPU utilization after starting Tomcat. I can tell that it's working to some extent, as the database was empty before starting Tomcat for the first time, and now the Alfresco tables have been created.

This is a fresh install of Tomcat 6.0.26, Sun Java 6 Update 19 on Red Hat Enterprise Linux 5.4, 64-bit everything.

Here's the process:

$ ps -ef | grep [t]omcat
tomcat   14821     1 93 13:20 ?        00:18:58 /usr/java/default/bin/java -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/tomcat/endorsed -classpath /opt/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start

What is the deal with this thing?

mrogers
Star Contributor
Star Contributor
How long are you leaving Alfresco before killing it?    A few minutes of high CPU is normal.