2 Replies Latest reply on Mar 18, 2013 5:18 AM by debayan

    EJB deployment very slow in Solaris compare to Linux

    debayan

      Hello,

               The time taken by EJB 3 deployer to deploy jars containing ejbs are very slow in Solaris. For the same load, it takes around 8 minutes to start in Solaris (N5220,32GB RAM) compare to Linux (HP G8,32 GB RAM), which takes around 2.5 minutes. Time taken mostly by following log messages :

       

      EDT DEBUG [main] DeployersImpl - Added deployer org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryDeployer@78c8c4d8 for stage Real

      .

      .

      .

      DEBUG [main] SaxJBossXBParser - Created parser: org.apache.xerces.jaxp.SAXParserImpl@5e402d95, isNamespaceAware: true, isValidating: true..

       

      DEBUG [main] Domain - org.jboss.classloading.spi.dependency.Domain@3a784abe{DefaultDomain} add module VFSDeploymentClassLoaderPolicyModule ejb3.deployer

       

       

             All the parameter e.g min and max heap size, number of files to be deployed are same. Could anyone let me know why is this difference?

       

      Thanks,

      Debayan

        • 1. Re: EJB deployment very slow in Solaris compare to Linux
          rhusar

          Is this the same JDK vendor and version? Theoretically speaking, certain operations are implemented differently for different JDKs on differens OSes. That might be the cause here, some heavily used IO operation might be very fast on Linux due to caching or whatnot but might be slow on Solaris. You can try to attach a profiler and compare the snapshots and see what it is exaclty.

          • 2. Re: EJB deployment very slow in Solaris compare to Linux
            debayan

            Hello,

                     I've profiled the startup of JBoss and following methods are taking significant time :

             

            org.jboss.profileservice.dependency.ProfileDeployAction.install

            DeployersImpl.doInstallParentFirst

            DeployersImpl.doDeploy

             

                  Are these natural or is there any way to optimize these?

             

            Best Regards,

            Debayan