5 Replies Latest reply on Nov 18, 2010 6:18 AM by shreyasd

    jboss 5.1 taking too much time to start

    shreyasd

      Hi

       

      i use jboo5.1. i have two ears in that.

      i use it on windows 7 64 bit machine.

       

      it takes aroung one and half hour to start jboss.

       

      parameters for memory are

      -Dprogram.name=run.bat -Xms512m -Xmx1024m  -XX:MaxPermSize=256m

       

      also i have disabled validations for all the projects in my workspace.

       

      i am totally frustrated due to that.

       

      is there any solution for that?

       

      Regards

      Shreyas

        • 1. Re: jboss 5.1 taking too much time to start
          wdfink

          On my Win7 it will start <1min, so it is not a general problem.

          Could you explain what you are deploying?

          You should also check the boot and server logfile (and maybe attach the relevant parts)

          What about if you start a fresh unpacked JBoss?

          • 2. Re: jboss 5.1 taking too much time to start
            jaikiran

            You also mention something about workspaces. So I guess you are using an IDE. If so, then try deploying the applications manually without using an IDE and see how long it takes to deploy.

            • 3. Re: jboss 5.1 taking too much time to start
              shreyasd

              Hi

               

              thanks for  replies.

               

              i am using Eclipse ide. i have two ears out of which one has a war file in it.

               

              i am not using a default server under jboss i have created a new root ports-0l.

               

              also i am new to jboss , i need to search how to deploy without ide.

               

              i observed in server  log that after a particular point it waits for long

               

              2010-11-17 09:49:28,009 INFO  [org.jboss.logbridge.LogNotificationListener] (main) Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@1cec874[ defaultDomain='jboss' ].

               

              also i tried to monitor process javaw.exe using a windows tool procmon.exe (process monitor).

              i observe that while deploying it is scanning all jar files within ears/wars.

               

              i also read about something like scanning of war files while deploying. is there any setting which disables that?

               

              i tried to disable all validations for projects in my workspace too.

               

              also may be this is due to some windows 7 uac issues as my team members using xp do not face this

              • 4. Re: jboss 5.1 taking too much time to start
                wdfink

                deploy without IDE is simple:

                unpack JBoss and copy server/???/* to server/<myconf> (use default or all, see wiki http://community.jboss.org/wiki/JBossInstallation)

                If you have special DB configure it (http://community.jboss.org/wiki/configdatasources)

                copy your EAR to server/<myconf>/deploy

                thats it!

                 

                What about my tip to use a fresh JBoss to test the startup?

                Problems special to Win7 I have not seen.

                The configuration of an active virus scanner might be a problem :-(

                • 5. Re: jboss 5.1 taking too much time to start
                  shreyasd

                  Hi

                   

                  thanks for the suggestions.

                   

                  while starting i had already taken a fresh jboss setup  .

                   

                  also do u think deploy without ide would help?

                   

                  wht abt war signing? because the line i mentioned above after that it strucks and after long time

                   

                  i get this

                   

                  2010-11-17 09:49:56,956 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@5477020{vfsfile:/C:/jboss-5.1.0.GA/server/ports-01/deploy/profileservice-secured.jar/}

                   

                  would it be related to ejb deployer?

                   

                  also each time while starting does it deploy admin-console, jmx-console etc?

                   

                  i see things like below done by javaw.exe

                  Date & Time: 18-11-2010 16:46:19


                  Event Class: File System
                  Operation: CreateFile
                  Result: SUCCESS
                  Path: C:\jboss-5.1.0.GA\server\ports-01\deploy\sas.solutions.merchplan7.2.ear\commons-codec.jar
                  TID: 2812
                  Duration: 0.0000178
                  Desired Access: Read Attributes, Synchronize
                  Disposition: Open
                  Options: Synchronous IO Non-Alert
                  Attributes: N
                  ShareMode: Read, Write, Delete
                  AllocationSize: n/a
                  OpenResult: Opened

                  does all files in deployed folders created in above manner?