4 Replies Latest reply on Aug 28, 2003 1:32 AM by Jon Barnett

    start run_with_catalina.sh

    zul Newbie

      Hi all,

      Running JBoss-2.4.4_Tomcat-4.0.1 on Red Hat AS 2.1

      Question:-

      1. Which user should own the dirs and start run_with_catalina.sh

      2. When I run as root, there are a lot of preccesess as below whereas if I run on Solaris, only one exists. Is this a bug?

      pache.cr
      root 2155 0.0 9.0 346900 186032 pts/0 S Aug25 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2156 0.0 9.0 346900 186032 pts/0 S Aug25 0:01 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2157 0.0 9.0 346900 186032 pts/0 S Aug25 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2158 0.0 9.0 346900 186032 pts/0 S Aug25 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2160 0.0 9.0 346900 186032 pts/0 S Aug25 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2162 0.0 9.0 346900 186032 pts/0 S Aug25 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2170 0.0 9.0 346900 186032 pts/0 S Aug25 0:01 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2174 0.0 9.0 346900 186032 pts/0 S Aug25 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 2233 0.0 9.0 346900 186032 pts/0 S 00:00 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 3338 0.0 9.0 346900 186032 pts/0 S 04:05 0:10 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 3384 0.0 9.0 346900 186032 pts/0 S 04:35 0:08 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 3411 0.0 9.0 346900 186032 pts/0 S 04:50 0:16 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 3570 0.0 9.0 346900 186032 pts/0 S 06:29 0:08 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 3765 0.0 9.0 346900 186032 pts/0 S 08:11 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 3766 0.0 9.0 346900 186032 pts/0 S 08:11 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 4212 0.0 9.0 346900 186032 pts/0 S 09:45 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 4934 0.0 9.0 346900 186032 pts/0 S 10:26 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 4935 0.0 9.0 346900 186032 pts/0 S 10:26 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 10019 0.0 9.0 346900 186032 pts/0 S 10:48 0:01 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 11483 0.0 9.0 346900 186032 pts/0 S 10:55 0:03 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 18425 0.0 9.0 346900 186032 pts/0 S 12:05 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 18573 0.0 9.0 346900 186032 pts/0 S 12:07 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 19971 0.0 9.0 346900 186032 pts/0 S 12:20 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 21905 0.0 9.0 346900 186032 pts/0 S 12:50 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 21990 0.0 9.0 346900 186032 pts/0 S 13:01 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr
      root 21993 0.0 9.0 346900 186032 pts/0 S 13:02 0:00 java -server -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.cr

        • 1. Re: start run_with_catalina.sh
          Jon Barnett Master

          Ultimately, you should not run Java processes as root for security reasons. See http://www.amitysolutions.com.au/downloads/Tomcat-Firewalls.pdf for some explanations and the problems associated with NOT running as root - such as port bindings, etc when not root.

          The Linux process/thread model is the reasons for seeing a large number of processes. You can upgrade your process utililities for RedHat so that ps and the associated commands such as top show only the parent. Otherwise pstree to view the parent and the children as a relationship view. You should see that most of the processes are children to the main Java process. In Linux, each thread is shown as a process (at least under the old threading model). In any case, the older Linux releases will have this sort of behaviour.

          Hope that helps.

          • 2. Re: start run_with_catalina.sh
            zul Newbie

            Hi Jonlee,

            Thanks for the reply.

            I will start using other account. ANother quick question is that why my server is using high memory. Looks like all the java threads takes about 11.6 % of memory and not much left?

            I'm using JBoss-2.4.4_Tomcat-4.0.1. SHould I upgrade to jboss 4

            Thanks

            • 3. Re: start run_with_catalina.sh
              zul Newbie

              hi jonlee,

              i cant open the pdf file(cannot decrypt it). Can you send to me in doc format to c0rum_z@yahoo.com?

              many thanks in advance

              c0rum_z

              • 4. Re: start run_with_catalina.sh
                Jon Barnett Master

                The PDF requires Acrobat Reader 5.0 to read it - there is only the Acrobat protection to prevent unauthorised modification.

                11.5% of memory is not that much. I would probably not use JBoss 4.0 DR for production or developing production solutions at this time. It is a developer release so things may change or may be broken, etc. You may want it if you want advanced features - EJB 2.1 and so on. YMMV.

                I would tend to use the latest JBoss 3.2.x but be aware there has been some tightening up of testing for acceptable deployment descriptors. See the FAQ.

                The later JBoss releases 3.0.x, 3.2.x and 4.0 consume more memory - but they also contain more features.