如标题所示,有时候在你启动JBOSS的时候,会卡在“JBAS015899: JBoss AS 7.1.1.Final “Brontes” starting”的阶段,无法继续。
它的具体呈现如下:

[root@Jboss1 Jboss]# bin/standalone.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /Jboss

  JAVA: java

  JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

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

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
06:24:36,785 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
06:24:37,121 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
06:24:37,194 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting



06:25:24,851 INFO  [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 0ms
[root@Jboss1 Jboss]#

如上所示,除非强行中断(Ctrl + c),否则会永久的卡在那里。
——————————————————————————————————————————————————————
这个问题,实际上是由于当前系统的Java版本不适应而引发的。
(反馈信息“Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0”)
发生上述情况的时候,我的Java版本为:1.8。

[root@Jboss1 Jboss]# rpm -qa | grep jdk
jdk-1.8.0_05-fcs
[root@Jboss1 Jboss]# 

当更换Java版本为1.7后,问题就解决了。(JBOSS的启动恢复正常)

正常情况下,JBOSS的启动脚本的输出如下:

[root@Jboss1 Jboss]# bin/standalone.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /Jboss

  JAVA: java

  JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

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

06:39:13,627 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
06:39:13,905 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
06:39:13,992 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
06:39:15,508 INFO  [org.xnio] XNIO Version 3.0.3.GA
06:39:15,516 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
06:39:15,521 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
06:39:15,547 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
06:39:15,574 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
06:39:15,633 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
06:39:15,724 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
06:39:15,888 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
06:39:15,914 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
06:39:15,970 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
06:39:15,983 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
06:39:16,039 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
06:39:16,151 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final
06:39:16,287 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA
06:39:16,459 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080
06:39:16,475 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
06:39:16,478 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
06:39:16,884 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
06:39:16,885 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
06:39:17,103 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /0.0.0.0:9999
06:39:17,113 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /Jboss/standalone/deployments
06:39:17,114 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /0.0.0.0:4447
06:39:17,200 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://0.0.0.0:9990
06:39:17,201 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3823ms - Started 133 of 208 services (74 services are passive or on-demand)

(... ...etc)

—————————————————————————————————————————————
Ending。

1
说点什么

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
mumu Recent comment authors

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒
mumu
游客
mumu

请问 是不是 jboss7 不支持jdk8???