3 Replies Latest reply on Apr 16, 2008 12:42 PM by peterj

    grep jboss in linux serevr return many lines

    kelvinlow

      Hello,

      I m using jboss-4.2.1.GA to run at Redhat Enterprice linux 4 server. After I bring up the jboss services and I issue the command
      ps -ef | grep jboss | wc -l
      it return about 200++, and when I check 1 by 1, all are the same jboss process, and it is still increase from time to time.

      Is this a acceptable scenario? Does anyone encounter this problem?

      Thanks and Regards,
      Kelvin

        • 1. Re: grep jboss in linux serevr return many lines
          peterj

          There is a Linux option whereby each thread runs as its own process. You probably have that option set. And yes, a busy app server will run hundreds of threads.

          • 2. Re: grep jboss in linux serevr return many lines
            kelvinlow

            Hi PeterJ,

            Thanks for reply. Would it be any perfomance issue on this practice? Since the number of processes I saw is keep on increasing, does this means my project got some problems will causing some of the threads cannot be end properly?

            Thanks and regards,
            kelvin

            • 3. Re: grep jboss in linux serevr return many lines
              peterj

              Most threads represent new http connections - the more simultaneous http requests you have the more threads get run (and thus the more processes you will see). This is not a problem, it is just the way it works.

              Also, in a recent forum post (which I have not been able to locate) we discussed an issue whereby jbossas is not releasing http-related threads after they have gone idle. This could be a Tomcat 6.0 issue because the configuration options that used to govern this are no longer mentioned in the Tomcat 6.0 docs.