3 Replies Latest reply on Jan 17, 2011 6:23 AM by jaikiran pai

    How to remove the pause during JBoss 5.1.0 GA boot between ProfileServiceBootstrap and AnnotationCreator?

    Robert Campbell Newbie

      I've managed to strip down my JBoss profile enough that it boots in 1.5 minutes. I started with the web profile and started pulling out stuff I didn't need. The bulk of my boot time can be seen here:

       

      ...
      15:21:51,890 INFO  [ProfileServiceBootstrap] Loading profile: ProfileKey@86d597[domain=default, server=default, name=np]
      15:22:55,406 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
      15:22:55,578 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
      ...

       

      Does anyone have any idea what JBoss is doing here for 1 minute? If so, is there any way to speed it up or skip it entirely?

      This is for developer instances, so boot time is quite important.

       

      I've also posted this question on ServerFault and will record any answer there as well.

        • 1. How to remove the pause during JBoss 5.1.0 GA boot between ProfileServiceBootstrap and AnnotationCreator?
          jaikiran pai Master

          Robert, welcome to the forums!

           

          1) That's actually not a pause. There's some deployment work going on during startup, it's just that it's not logged at INFO level. You might be able to find the details in server.log (if it is enabled for DEBUG level logging).

           

          2) Is this a clean installation of JBoss AS 5.1.0? Or does it have any of your application(s) deployed?

           

          3) How are you starting the server? From command prompt or from some IDE?

           

          4) Which Operating system is this and which Java vendor and version?

           

          5) Is JBoss AS 5.1.0 a absolute necessity or can you try JBoss AS 6.0.0.Final (which has shown better boot time)?

          • 2. How to remove the pause during JBoss 5.1.0 GA boot between ProfileServiceBootstrap and AnnotationCreator?
            Robert Campbell Newbie

            Hi Jaikiran, thanks for the reply.

             

            1. Yes, the boot.log shows much more information at the DEBUG level. Thanks.

             

            2. I have some artifacts deployed: two datasources and two wars. I started with the web profile and removed things that weren't needed.

             

            3. Both. Whether I start from the command line with "run -c myprofile" or from the IDE with myprofile, it's the same boot sequence.

             

            4. Windows XP SP3 32 bit, Sun 1.6 JVM

             

            5. I've tried JBoss 6 and it was actually much slower + failed. It failed because we are using one library in our WAR that uses Scala and the annotation scanning blows up when it encounters anonymous classes with $ in their name. I found a Jira issue logged for this. I tried to turn off annotation scanning, but no matter what I tried (including the whole jboss-scanning.xml thing) it never turned off. The only workaround was to move this library into the profile/lib folder where it wouldn't be scanned, but then booting was still slower.

            • 3. How to remove the pause during JBoss 5.1.0 GA boot between ProfileServiceBootstrap and AnnotationCreator?
              jaikiran pai Master

              Robert Campbell wrote:

               

              2. I have some artifacts deployed: two datasources and two wars. I started with the web profile and removed things that weren't needed.

              Okay, so the timings include your app deployment then.

               

               

              Robert Campbell wrote:


              The only workaround was to move this library into the profile/lib folder where it wouldn't be scanned, but then booting was still slower.

               

              If JBoss AS 6.0.0.Final is an option for you, then I would strongly recommend that you use it. As for the boot time, can you provide a bit more details including any relevant logs and the actual timings on AS 6.0.0.Final?