5 Replies Latest reply on Jan 22, 2010 11:07 AM by Peter Johnson

    Configuration of file 'jboss'

    Thomas Chang Apprentice

      I installed the Jboss on Linux. Under directory %JBOSS_HOME%/bin there is file called 'jboss'. In this file one can define the JVM option etc. I am looking for information, document or tutorial for configuring this file.

       

      Someone knnows?

        • 1. Re: Configuration of file 'jboss'
          Peter Johnson Master

          How did you install JBoss AS? Which version is it? No version of JBoss AS that I know of has a file named "jboss" in the bin directory.

           

          In a typical JBoss AS install, you configure the JVM options on Linux by changing the bin/run.conf file, setting the JAVA_OPTS variable.

          • 2. Re: Configuration of file 'jboss'
            Thomas Chang Apprentice

            You are right. It should be the "run.conf". But our admin, an extern free-lancer had installed and configured the jboss and put a new file called 'jboss' under %JBOSS_HOME%/bin.

             

            Ok, I correct my question to: How to configure file 'run.conf'.

            • 3. Re: Configuration of file 'jboss'
              Peter Johnson Master
              thomas2008ch wrote:
              Ok, I correct my question to: How to configure file 'run.conf'.

               

              Did you read the second paragraph of my reply?

               

              Of course, not knowing the conetnts of bin/jboss, I have no idea if that even applies.,

              • 4. Re: Configuration of file 'jboss'
                Thomas Chang Apprentice

                Yes,I read your second part.

                 

                I know what one can do in the file run.sh or run.conf is setting JAVA_OPTS. But htere are many many JAVA_OPTS. It wourld find if there is a document (from Jboss) about setting the JAVA_OPTS.

                • 5. Re: Configuration of file 'jboss'
                  Peter Johnson Master

                  You can set any of them. The run.conf is a standard UNIX bash shell script file, any Linux text that discusses shell scripts will describe how to create such files.

                   

                  I looked in the run.conf for both 4.2.3 and 5.1.0. In both case only one of the JAVA_OPTS entries in not commented out:

                   

                  if [ "x$JAVA_OPTS" = "x" ]; then
                     JAVA_OPTS="-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
                  fi

                   

                  Either chenge the setting on that line, or add the extra items. For example, to switch to the CMS garabge collector and set the heap min and max to 1024MB:

                   

                  {code}if [ "x$JAVA_OPTS" = "x" ]; then{code}
                  {code}    JAVA_OPTS="-Xms1024m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
                  -XX:+UseConcMarkSweepGC"{code}
                  {code}fi{code}

                   

                   

                  Note that the quotes surround the entire set of options

                   

                  (I hate the stupid editor for this forum!!! I have no idea how to post multiplel ines of code!)