-
1. Jboss Starting Very Slow
alesj Apr 7, 2011 11:13 AM (in response to lurker_huang)Hmm, strange, it takes ~16sec on my laptop.
And I don't have Cray or Watson as laptop. :-)
You can remove some services, which you're sure you don't need.
That might help you boot faster.
-
2. Jboss Starting Very Slow
lurker_huang Apr 7, 2011 9:01 PM (in response to lurker_huang)Thank you for you help ~!
Can you tell me how to remove the service which i don't need.
Last time Jboss can't start because of i remove some servcies.
i just want to do my project with JSF2.0,EJB3,Richface4.0 and mybatis
-
3. Jboss Starting Very Slow
jaikiran Apr 8, 2011 1:53 AM (in response to lurker_huang)Please post the console log. Also you haven't told us which profile you start and what OS you have and what Java vendor and version.
-
4. Jboss Starting Very Slow
lurker_huang Apr 13, 2011 9:16 PM (in response to lurker_huang)09:13:19,923 INFO [AbstractJBossASServerBase] Server Configuration:
JBOSS_HOME URL: file:/D:/jboss-6.0.0.Final/
Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
Common Base: $JBOSS_HOME\common/
Common Library: $JBOSS_HOME\common/lib/
Server Name: default
Server Base: $JBOSS_HOME\server/
Server Library: $JBOSS_HOME\server/default/lib/
Server Config: $JBOSS_HOME\server/default/conf/
Server Home: $JBOSS_HOME\server/default/
Server Data: $JBOSS_HOME\server/default/data/
Server Log: $JBOSS_HOME\server/default/log/
Server Temp: $JBOSS_HOME\server/default/tmp/
09:13:19,923 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
09:13:22,029 INFO [ServerInfo] Java version: 1.6.0_05,Sun Microsystems Inc.
09:13:22,029 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
09:13:22,029 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 10.0-b19,Sun Microsystems Inc.
09:13:22,029 INFO [ServerInfo] OS-System: Windows Vista 6.1,x86
09:13:22,029 INFO [ServerInfo] VM arguments: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50278 -Djboss.home=D:\jboss-6.0.0.Final -Djava.library.path=D:\bea\jdk160_05\bin -Djava.endorsed.dirs=D:\jboss-6.0.0.Final\lib\endorsed -Xms128m -Xmx512m -XX:MaxPermSize=256m
09:13:22,092 INFO [JMXKernel] Legacy JMX core initialized
09:13:30,782 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
09:13:33,918 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
09:13:40,471 警告 [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
09:13:45,152 警告 [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
09:13:45,512 INFO [JMXConnector] starting JMXConnector on host 127.0.0.1:1090
09:13:46,011 INFO [MailService] Mail Service bound to java:/Mail
09:13:47,306 信息 [HornetQServerImpl] live server is starting..
09:13:47,447 INFO [JournalStorageManager] Using NIO Journal
09:13:47,479 警告 [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
09:13:48,461 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol
09:13:48,494 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol
09:13:48,494 信息 [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started
09:13:48,603 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
09:13:49,336 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
09:13:49,336 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators
09:13:49,398 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at 星期四, 14 四月 2011 09:13:49
09:13:49,523 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
09:13:49,523 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
09:13:49,523 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager
09:13:49,555 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
09:13:49,555 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
09:13:49,571 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
09:13:49,633 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
09:13:49,758 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
09:13:50,725 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\bea\jdk160_05\bin
09:13:50,992 INFO [TomcatDeployment] deploy, ctxPath=/invoker
09:13:51,631 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final
09:13:51,709 INFO [RARDeployment] Required license terms exist, view vfs:/D:/jboss-6.0.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
09:13:51,725 INFO [RARDeployment] Required license terms exist, view vfs:/D:/jboss-6.0.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
09:13:51,756 INFO [RARDeployment] Required license terms exist, view vfs:/D:/jboss-6.0.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml
09:13:51,788 INFO [HornetQResourceAdapter] HornetQ resource adaptor started
09:13:51,804 INFO [RARDeployment] Required license terms exist, view vfs:/D:/jboss-6.0.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml
09:13:51,819 INFO [RARDeployment] Required license terms exist, view vfs:/D:/jboss-6.0.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
09:13:52,007 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2
09:13:52,116 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
09:13:52,116 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
09:13:52,116 INFO [RAMJobStore] RAMJobStore initialized.
09:13:52,116 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
09:13:52,116 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
09:13:52,116 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3
09:13:52,116 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
09:13:53,317 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
09:13:53,770 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
09:13:54,051 INFO [xnio] XNIO Version 2.1.0.CR2
09:13:54,067 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2
09:13:54,316 INFO [remoting] JBoss Remoting version 3.1.0.Beta2
09:13:54,504 INFO [TomcatDeployment] deploy, ctxPath=/
09:13:54,567 信息 [service] Removing bootstrap log handlers
09:13:54,739 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
09:13:54,739 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
09:13:54,739 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 34s:800ms
this is my console log
i just want use JSF2.0,EJB3,Richface4.0 and mybatis for my project.
can you tell me how to remove the services.
-
5. Jboss Starting Very Slow
jaikiran Apr 14, 2011 2:35 AM (in response to lurker_huang)09:13:22,029 INFO [ServerInfo] Java version: 1.6.0_05,Sun Microsystems Inc.
09:13:22,029 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
09:13:22,029 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 10.0-b19,Sun Microsystems Inc.
09:13:22,029 INFO [ServerInfo] OS-System: Windows Vista 6.1,x86
Although, I'm not sure whether the slowness is a result of the Java version, I would still recommend that you upgrade to the latest JDK version 1.6.0_24 I think and try it against it first. Just download the new JDK version and point JAVA_HOME to the new location and start the JBoss AS server.
-
6. Jboss Starting Very Slow
arnulfir May 3, 2011 7:25 AM (in response to jaikiran)I'm experiencing the same slowness like lurker_huang. As I'm using the newest JDK this can't be the problem. Any other tips for tuning startup time?
-
7. Jboss Starting Very Slow
b.lambe May 6, 2011 10:54 AM (in response to lurker_huang)you think thats slow, i have it running on ubuntu 10.04 server and it takes 10m:13s:822ms to start up and then it is really slow... trying to figure out what the hell is going on as in windows it starts up in about 7 seconds!!!
-
8. Jboss Starting Very Slow
peterj May 6, 2011 11:09 AM (in response to b.lambe)Look at the boot.log and server.log files. You might also have to turn the logging level up to DEBUG to get better output. Look for log entries that have a lot of time between them. What you want to do is catch the app server at that point (or points) and then take a thread dump, that will usually give you some clue as to what it is waiting on. 9 times out of 10 the issue is with the network, and the app server is waiting on network timeouts. Make sure that you hosts file is properly configured - that file is usually fine if you haven't edited it but it is way to easy to mess it up. See if this helps: http://jblevins.org/log/hostname