Improving JBoss 5 slow startup

后端 未结 10 1813
情话喂你
情话喂你 2021-02-01 19:49

We upgraded from JBoss 4 (and JDK 5) to JBoss 5 (and JDK 6). The problem is that the start time has gone from 1.5 minutes (on JBoss 4) to more than 4 minutes.

1         


        
10条回答
  •  天命终不由人
    2021-02-01 19:58

    I suppose you are starting in debug mode. This mode can be up to 3 times slower than normal mode. But there might be also a problem when switching from JDK5 to JDK6. I found this solution here on the net:

    I've solved that. It's a debugging issue. I've changed my debug settings from:

    wrapper.java.additional.26=-Xdebug
    wrapper.java.additional.27=-Xnoagent
    wrapper.java.additional.28=-Djava.compiler=NONE
    wrapper.java.additional.27=-Xrunjdwp:transport=dt_socket,address=7199,server=y,suspend=n
    

    to:

    wrapper.java.additional.26=-Xdebug
    wrapper.java.additional.27=-Xrunjdwp:transport=dt_socket,address=7199,server=y,suspend=n
    

    and JBoss becomes fast again.

    Hope this helps.

提交回复
热议问题