2 Replies Latest reply on Nov 30, 2016 7:33 AM by boda.prakash

    Wildfly 10 taking long pause while start up

    boda.prakash

      Hi,

       

      I have my application deployed over Wildfly 10.0.0 Final. I am working on reducing startup time of my application server which is more than 15 min right now.

      When I start the server it takes long pause while creating some content into HOME\standalone\data\content folder.

      I read some about content folder and found that it stores crash recovery data into this folder. I feel its to much time while booting server.

      I have pasted initial logs I am getting while starting server, from 17:30:46,398 its taking 3 min to load content folder.

       

      E:\V6WF\Application\wildfly-10.0.0.Final\bin>standalone.bat

      Calling "E:\V6WF\Application\wildfly-10.0.0.Final\bin\standalone.conf.bat"

      Setting JAVA property to "C:\Program Files\Java\jdk1.8.0_92\bin\java"

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

       

       

       

       

        JBoss Bootstrap Environment

       

       

       

       

        JBOSS_HOME: "E:\V6WF\Application\wildfly-10.0.0.Final"

       

       

       

       

        JAVA: "C:\Program Files\Java\jdk1.8.0_92\bin\java"

       

       

       

       

        JAVA_OPTS: "-Dprogram.name=standalone.bat -Xms2048M -Xmx4096M -XX:+UseParallelGC -XX:ParallelGCThreads=4 -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Do

       

       

       

       

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

       

       

       

       

      Deleting temp directory ("E:\V6WF\Application\wildfly-10.0.0.Final\standalone\tmp")

      Deleting data directory  ("E:\V6WF\Application\wildfly-10.0.0.Final/standalone/data")

      17:30:41,159 INFO   [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final

      17:30:42,602 INFO   [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final

      17:30:42,691 INFO   [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting

      17:30:46,386 INFO   [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment app.ear

      17:30:46,391 INFO   [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment UserSynch-jar-with-dependencies.jar

      17:30:46,394 INFO   [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment app-support.war

      17:30:46,396 INFO   [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment mainapp.ear

      17:30:46,398 INFO   [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found Root.war in deployment directory. To trigger deployment create a file called Root.war.dodeploy

      17:32:00,016 INFO   [org.jboss.as.repository] (ServerService Thread Pool -- 21) WFLYDR0001: Content added at location E:\V6WF\Application\wildfly-10.0.0.Final\standalone\data\content\f0\65ad02c8dd73a13cdaa34677d2e93b102d69ef\content

      17:32:03,328 INFO   [org.jboss.as.repository] (ServerService Thread Pool -- 21) WFLYDR0001: Content added at location E:\V6WF\Application\wildfly-10.0.0.Final\standalone\data\content\9e\277c9a64a4be331ffa30e5d8b0de2ffc689111\content

      17:32:03,986 INFO   [org.jboss.as.repository] (ServerService Thread Pool -- 21) WFLYDR0001: Content added at location E:\V6WF\Application\wildfly-10.0.0.Final\standalone\data\content\9b\efb6157ff5c3f5ab98f73f288c965c8be20ee4\content

      17:33:23,814 INFO   [org.jboss.as.repository] (ServerService Thread Pool -- 21) WFLYDR0001: Content added at location E:\V6WF\Application\wildfly-10.0.0.Final\standalone\data\content\79\f4f566c22bd1b6ec6eed27ff7779edb9111bfd\content

      17:33:23,844 INFO   [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)

      17:33:25,998 INFO   [org.xnio] (MSC service thread 1-2) XNIO version 3.3.4.Final

       

      Please guide me how can I reduce this time taken by Wildfly? Do let me know if I am doing some mistake.

        • 1. Re: Wildfly 10 taking long pause while start up
          ctomc

          Did you try not using deployments folder and deploy via CLI or console?

          this way it shouldn't scan the directories and deployment start should be almost instantaneous.

          • 2. Re: Wildfly 10 taking long pause while start up
            boda.prakash

            Hi Tomaz Cerar,

             

            Thanks for your quick response.

            We usually don't deploy it using CLI or console. We used to do the same thing in 6.1.0 EAP and it was not taking this initial pause.

            My main concern is whatever it is doing in data folder. Its copying some content into standalone\data\content.

            I am not sure what this content is but its huge in size around ~900 MB and that is what taking around 3 mins.

            I just wanted to check if I can avoid this delay.

             

            Thanks,

            Prakash