java – 改进Jboss 4.2非常慢的启动

Jboss花了很多时间来创业.相同的Jboss设置和应用程序在我的collegaue系统中没有时间启动.

E:\jboss-4.2.2.GA\bin>run -c ags7.3Ingrn
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: E:\jboss-4.2.2.GA

  JAVA: C:\Program Files\Java\jdk1.5.0_07\bin\java

  JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n  -Dprogram.name=run.bat -server -Xms512m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

  CLASSPATH: C:\Program Files\Java\jdk1.5.0_07\lib\tools.jar;E:\jboss-4.2.2.GA\bin\run.jar

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

Listening for transport dt_socket at address: 8787
14:01:31,531 INFO  [Server] Starting JBoss (MX MicroKernel)...
14:01:31,531 INFO  [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
14:01:31,531 INFO  [Server] Home Dir: E:\jboss-4.2.2.GA
14:01:31,531 INFO  [Server] Home URL: file:/E:/jboss-4.2.2.GA/
14:01:31,531 INFO  [Server] Patch URL: null
14:01:31,531 INFO  [Server] Server Name: ags7.3Ingrn
14:01:31,531 INFO  [Server] Server Home Dir: E:\jboss-4.2.2.GA\server\ags7.3Ingrn
14:01:31,531 INFO  [Server] Server Home URL: file:/E:/jboss-4.2.2.GA/server/ags7.3Ingrn/
14:01:31,531 INFO  [Server] Server Log Dir: E:\jboss-4.2.2.GA\server\ags7.3Ingrn\log
14:01:31,531 INFO  [Server] Server Temp Dir: E:\jboss-4.2.2.GA\server\ags7.3Ingrn\tmp
14:01:31,531 INFO  [Server] Root Deployment Filename: jboss-service.xml
14:01:32,765 INFO  [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc.
14:01:32,765 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.
14:01:32,765 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
14:01:35,156 INFO  [Server] Core system initialized
14:01:46,093 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
14:01:46,109 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml.

它只是停在“从URL配置:资源:jboss-log4j.xml”并在10-15分钟内开始.

解决方法:

这很常见,但在大多数情况下JBoss都能成功启动.实际发生的是控制台输出的日志记录附加程序丢失或日志记录级别已更改,因此您不再看到INFO消息.

对此最简单的测试是备份现有的jboss-log4j.xml文件,然后将原始文件(来自JBoss下载)复制到顶部,这样您就可以返回默认设置.然后重新启动JBoss,一切都应该好.

上一篇:java – servlet-filters优先级


下一篇:Java apache FTPServer和common.net FTPClient