2 Replies Latest reply on Mar 4, 2002 9:18 PM by pazu

    Removing non-essential services

    pazu

      I'm using JBoss (3.0.0 CVS) to deploy a simple J2EE application. To optimize memory utilization and performance, I'd like to remove all services I won't be using. Which services are essential to get a application that uses CMP2 connecting to a single database, struts, some servlets and JSP working?

      Here is the list of files I'm moved out of deploy dir already:

      cluster-service.xml
      counter-service.xml
      hsqldb-default-service.xml
      jbossmq-*.xml
      jms-*.xml
      mail-service.xml
      scheduler-service.xml
      user-service.xml

      The following files are still on the deploy dir:

      ejb-management.jar
      jboss-jdbc.rar
      jboss-xa.rar
      jbosscx.sar
      jetty-plugin.sar
      jmx-ejb-adaptor.jar
      jmx-ejb-connector-server.sar
      jmx-html-adaptor.sar
      jmx-rmi-adaptor.sar

      Can I further remove some of these files? Have I removed some important service?

        • 1. Re: Removing non-essential services

          It would take a whole book to explain :-)

          If you aren't using hsql or messaging, I think you are
          ok? The counter-service is new, I'm not sure what it
          does?

          You might want to check the logs for waiting messages on
          services to make sure they have all been satisfied.

          You probably only need one jmx-adatptor, if you
          aren't using any of them you can remove the connector
          as well.

          These are all hot-deployable, so move them to a different
          directory. If you find a problem, move it back it into
          deploy.

          There's been some talk on the dev-list about
          providing example configurations ranging from
          a minimal micro-server through to the whole
          shooting match.

          Maybe these will be supplied with 3.0final

          Regards,
          Adrian

          • 2. Re: Removing non-essential services
            pazu

            A book which I suppose is being written? Good luck, guys.