8 Replies Latest reply on Aug 1, 2004 11:18 PM by CS Waltenbaugh

    Experiences with Apache/jk/JBoss + Linux

    Oliver Henlich Newbie

      Hello.

      Just wondering if people are able to report on any sucessfull/working configurations of Apache + mod_jk + JBoss on Linux.

      Questions in particular are:
      Q1) What versions of these products are in production use?
      Q2) Is it 'safe/good' to use Apache2 in Red Hat Enterprise Linux 3?
      (ie. threading model, JBoss clustering docu warns about it p68)
      Q3) Is it still safest to use jk1.2 instead of jk2?
      (performance, stability reasons?, on win jk2 tests ran ~10 x slower)


      Other Resources
      - JBoss FAQ http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jkWithJBoss
      - Official mod_jk http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html
      - Good Howto for Redhat AS 3 http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
      - JBoss clustering docu p65, p68 (notes at bottom of page)

      Any info would be appreciated.
      If there are responses we could perhaps report 'working configs' in the wiki.

      cheers

        • 1. Re: Experiences with Apache/jk/JBoss + Linux
          Ingo Bruell Newbie

          Yes, i have a working configuration on:

          Debian sarge with kernel-2.6.6-2
          J2sdk1.4.2_04
          Apache-1.3.29.0.2-4
          libapache-mod-jk 1:1.2.5-2
          JBoss-3.2.5 with embedded Tomcat 5

          • 2. Re: Experiences with Apache/jk/JBoss + Linux
            Oliver Henlich Newbie

            thanks for that.
            Can any others give a brief report on their configs.
            Any response on the questions?

            • 3. Re: Experiences with Apache/jk/JBoss + Linux
              tzman Newbie

              We are using the following in test and production.

              Redhat 9 / ES3
              J2SDK 1.4.2_03
              Apache 2.048
              mod_jk2 Current src build 03/05/2004
              JBoss 3.2.3 with embedded Tomcat 4.1

              We are not using clustering. Everything runs fine and the application is snappy.

              • 4. Re: Experiences with Apache/jk/JBoss + Linux
                Oliver Henlich Newbie

                Thanks.
                So you are not having any problems with jk2? Errors in the mod_jk.log when load-testing?

                I've put the info on the wiki at:
                http://www.jboss.org/wiki/Wiki.jsp?page=WorkingOSJBossWebserverSetups

                Please continue to add to this thread or directly to the wiki.

                • 5. Re: Experiences with Apache/jk/JBoss + Linux
                  Oliver Henlich Newbie

                  hi.

                  You guys wanna update the wiki with your cpu info?
                  Anybody else with working production configurations?
                  Any advice on jk version to use?

                  cheers

                  • 6. Re: Experiences with Apache/jk/JBoss + Linux
                    CS Waltenbaugh Newbie

                    I followed the example you placed on the wiki but continue to receive errors when starting up apache2.

                    SuSE 9.0 Pro
                    jsdk 1.4.2-b28
                    Apache2 2.0.47
                    mod_jk2-2.0.4
                    JBoss 3.2.3 with embedded 4.1


                    snippet from /var/log/apache2/error_log

                    [Thu Jul 29 12:30:15 2004] [error] jk2_init() Can't find child 24883 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:30:15 2004] [error] jk2_init() Can't find child 24884 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:30:15 2004] [error] jk2_init() Can't find child 24885 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:30:15 2004] [error] jk2_init() Can't find child 24886 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:30:15 2004] [error] jk2_init() Can't find child 24887 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:30:15 2004] [notice] Apache/2.0.48 (Linux/SuSE) configured -- resuming normal operations
                    [Thu Jul 29 12:31:12 2004] [error] jk2_init() Can't find child 24890 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:31:12 2004] [notice] child pid 24883 exit signal Segmentation fault (11)
                    [Thu Jul 29 12:31:27 2004] [error] jk2_init() Can't find child 24891 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:31:27 2004] [notice] child pid 24884 exit signal Segmentation fault (11)
                    [Thu Jul 29 12:31:56 2004] [error] jk2_init() Can't find child 24893 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:31:56 2004] [notice] child pid 24885 exit signal Segmentation fault (11)
                    [Thu Jul 29 12:32:01 2004] [error] jk2_init() Can't find child 24894 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:32:01 2004] [notice] child pid 24886 exit signal Segmentation fault (11)
                    [Thu Jul 29 12:34:45 2004] [error] jk2_init() Can't find child 24908 in none of the 256 scoreboard slots
                    [Thu Jul 29 12:34:45 2004] [notice] child pid 24887 exit signal Segmentation fault (11)
                    [Thu Jul 29 12:44:12 2004] [notice] caught SIGTERM, shutting down


                    here's copy of workers2.properties

                    # log file
                    [shm]
                    file=/var/log/apache2/mod_jk.log
                    size=1048576
                    
                    # socket channel, override port and host
                    [channel.socket:localhost:8009]
                    port=8009
                    host=127.0.0.1
                    
                    # define the worker
                    [ajp13:localhost:8009]
                    channel=channel.socket:localhost:8009
                    
                    # Uri mapping
                    # The JBoss JMX Console
                    [uri:/jmx-console/*]
                    worker=ajp13:localhost:8009
                    
                    # The JBoss Web Console
                    [uri:/web-console/*]
                    worker=ajp13:localhost:8009
                    


                    Any help would be greatly appreciated

                    Regards,
                    CSWaltenbaugh

                    • 7. Re: Experiences with Apache/jk/JBoss + Linux
                      Anil Saldanha Master

                      Tomcat development team suggests using mod_jk1.2.x plugins only as they are stable and less error prone. Mod_jk is old.

                      • 8. Re: Experiences with Apache/jk/JBoss + Linux
                        CS Waltenbaugh Newbie

                        I realized I hijacked a thread and I appologize to that. If you like I can create a new thread.

                        However, just to respond: I'm using mod_jk2, which is the latest AJP1.3 connector and I believe it is said to be quite stable (at v2.0.4).

                        Thanks for help, though. I've been considering backing off to mod_jk1.2, but I'd really like to stay ahead of the curve. Once this is implemented, I'd like not to have to upgrade too soon down th line.

                        Platform as previously specified:

                        SuSE 9.0 Pro
                        jsdk 1.4.2-b28
                        Apache2 2.0.47
                        mod_jk2-2.0.4
                        JBoss 3.2.3 with embedded Tomcat 4.1


                        csw