2010-10-01 179 views
4

Jboss花了很多時間啓動。相同的Jboss設置和應用程序沒有時間在我的collegaue系統中啓動。改進Jboss 4.2非常慢的啓動

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分鐘上手。

回答

2

這很常見,但在大多數情況下,JBoss 成功啓動。實際發生的情況是,控制檯輸出的日誌appender丟失或者日誌記錄級別已更改,因此您沒有再看到INFO消息。

最簡單的測試是備份現有的jboss-log4j.xml文件,然後將原始文件(從JBoss下載)複製到頂部,以便恢復到默認設置。然後重啓JBoss,一切都會好的。