10 Replies Latest reply: Jun 23, 2014 1:21 AM by 895589 RSS

    WLS : Increasing Number of User

    895589

          Hi All,

       

          I am beginner in Weblogic Server. Please help me.

       

          Use Case:

                         One Banking application T24 is running fine on the Jboss Server. Now Customer wants the same application to run on the weblogic Server(probably 10.3.6).

                          Application is running on 32GB physical memory(RAM) box, with only Admin Server(No managed server, no clustering). When load increases 200-300 users, application goes to Not Responding State.

                          Expected total number of user is around 1500 on the server. Customer don't have any hardware/software load balancer.

          My Question:

                          1. I believe we need to implement the managed servers. We can implement Load balancer for HA. Should we go with OHS? Please suggest.

                          2. Is there any matrix for User Vs Memory? (To serve 1500 users, what is the recommendation for the RAM, which should be available on the box).

                          3. Any other useful suggestion for this situation.

       

      Regards,

      895589

        • 1. Re: WLS : Increasing Number of User
          Abdul Shaikh

          Hii,

               As you said your application is running only on Admin Server, can you please let me the JVM heap size configured for the admin server???

           

          1. I believe we need to implement the managed servers. We can implement Load balancer for HA. Should we go with OHS?

           

                        Yes we should have multiple managed server configured in clustering inorder to overcome the load of number of users accessing the application, you can have OHS on top of the application server to achieve load balancing.

           

          2. Is there any matrix for User Vs Memory?

           

                    As per me there is no User Vs Memory you will have conceptually, Yes you have yo analyzed the memory utilization on the peak hours (i.e when there will be a maximum number of Users) and based on that you have to Tune the JVM Heap Size.

           

          3. Any other useful suggestion for this situation.

                 

                    a) Implement clustering ( for this you should have enterprise license)

           

                    b) Moniter the JVM heap size

           

                   c) Moniter the Garbage Collection

           

                   d) Moniter Collection pool.

           

                   e) Moniter CPU Utilization.

           

                    Based on the above result try tune application Server.

           

          Regards,

          Abdul

          • 2. Re: WLS : Increasing Number of User
            895589

            Thanks abdul.

             

            Does OHS comes free with weblogic server or we need to purchase the licensing for this?

             

             

            Parameters as you want for Admin Server-

            -----------------------------

            if [ "${JAVA_VENDOR}" = "Sun" ] ; then

                            WLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"

                            export WLS_MEM_ARGS_64BIT

                            WLS_MEM_ARGS_32BIT="-Xms256m -Xmx512m"

                            export WLS_MEM_ARGS_32BIT

            else

                            WLS_MEM_ARGS_64BIT="-Xms2048m -Xmx2048m"

                            export WLS_MEM_ARGS_64BIT

                            WLS_MEM_ARGS_32BIT="-Xms512m -Xmx512m"

                            export WLS_MEM_ARGS_32BIT

            • 3. Re: WLS : Increasing Number of User
              Abdul Shaikh

              Hii,

               

                      For Licensing, please coordinate with Oracle.

               

                        As you highlighted, seems that around 2GB of heap is been allocated to the admin server, as said earlier it always a good approach to configure clustering with Multiple managed server (for Express Edtion License) or configure the managed server ( if you have Standard Edition License)

               

              Regards,

              Abdul

              • 4. Re: WLS : Increasing Number of User
                895589

                I have done below task:

                 

                1. Weblogic server Installation done

                2. Configured four Managed Server under one Cluster in Weblogic Server.

                3. Installed & Configured WebTier (Oracle Http Server & web cache) on the top of my domain. Followed this Doc.

                4. Tested the OHS, it says ALIVE state.

                5. Deploy test application(ADF application) on all the managed server & Admin server.

                6. Application is running fine on 7001.. and other managed server post(7003,7004,7005 and 7006).

                 

                Question:

                But now i don't know how to test that the clustering (weblogic & OHS) has been done.

                Please help me to achieve this. Please provide the link of any tutorial or the doc

                 

                Regards,

                • 5. Re: WLS : Increasing Number of User
                  Bhargavim-Oracle

                  Hi,

                   

                  To load balance the user requests to all 4 managed servers in the cluster, you need to install and configure WLS Proxy plugin on OHS.

                   

                  Please find instructions in the below link:

                   

                               < Configuring the mod_wl_ohs Plug-In for Oracle HTTP Server - 11g Release 1 (10.3.6) >

                   

                  Good luck!

                  • 6. Re: WLS : Increasing Number of User
                    895589

                    Thanks for the reply.

                     

                    I have install and configure WLS Proxy plugin on OHS by following the Doc.


                    Here is the Content of my mod_wl_ohs.config file. and after that restarted the http server.

                    <IfModule weblogic_module>

                                    <Location /http>

                                                    SetHandler weblogic-handler

                                                    WebLogicCluster xxx.xxx.x.x:7003,xxx.xxx.x.x:7004,xxx.xxx.x.x:7005,xxx.xxx.x.x:7006

                                    </Location>

                     

                    </IfModule>


                     


                    URL for my application deployed on weblogic server:

                    http://localhost:7001/http/faces/welcome.jspx


                    URL which i am using to test the application on Http Server

                    http://localhost:7777/http/faces/welcome.jspx


                    Please suggest me how to test the clustering. I don't know how to test it.


                    Regards

                    • 7. Re: WLS : Increasing Number of User
                      Bhargavim-Oracle

                      Hi,

                       

                      You mentioned the application running on port "7001". However, in mod_wl_ohs.config file you are forwarding the requests to a cluster of 4 managed servers. To load balance the user requests to the cluster. You need to deploy the application to the Cluster. The same application currently running on port 7001 (I assume AdminServer is running on this port), target it to Cluster instead of AdminServer.

                       

                      Then, when you test the application using URL:

                      http://localhost:7777/http/faces/welcome.jspx

                       

                      The request will round-robin to one of the managed servers in the cluster.

                       

                      Thanks,

                      • 8. Re: WLS : Increasing Number of User
                        895589

                        Hi Bhargav,

                         

                        I have tried by targeting my ADF application to the Cluster (I removed it from AdminServer) and tested with the below mentioned URL but It is not working.

                         

                        Test URL:http://localhost:7777/http/faces/welcome.jspx

                        [Output- The requested URL /http/faces/welcome.jspx was not found.]

                         

                        The same application is responding when i hit each managed server.(ex, http://localhost:7003/http/faces/welcome.jspx)

                         

                        Here is the code for my mod_wl_ohs.config file.

                        <IfModule weblogic_module>

                        <Location /http>

                        SetHandler weblogic-handler

                        WebLogicCluster xxx.xxx.x.x:7003,xxx.xxx.x.x:7004,xxx.xxx.x.x:7005,xxx.xxx.x.x:7006

                        </Location>

                         

                        </IfModule>


                        Note: EM (Fusion Middleware Control is not configured in my environemnt)

                         

                        One important thing, I have just run the WebTier(OHS) Installer for OHS installation.In last Installer said SUCCESSFUL INSTALLATION.

                        I have not done any config/file level changes during installation.

                         

                        Thanks

                        • 9. Re: WLS : Increasing Number of User
                          Bhargavim-Oracle

                          Hi,

                           

                          Looks like your request did not go to WLS. It could be a config issue on OHS side.

                           

                          Make sure you load the Plugin module in mod_wl_ohs.conf:

                           

                          LoadModule weblogic_module   "${ORACLE_HOME}/ohs/modules/mod_wl_ohs.so"

                           

                          Please make sure if you have .so file in the location.

                           

                          The KM Doc "Doc ID 1316142.1" (search for this Doc ID in Oracle Support Website) which explains the Syntax for request forward in mod_wl_ohs.conf.

                           

                          First, set up to forward requests to WLS AdminServer to access console application:

                           

                          Eg:

                           

                          <IfModule weblogic_module>

                           

                          #The weblogic console as an example to one weblogic server:

                          <Location /console>

                          SetHandler weblogic-handler

                          WebLogicHost <WLS Admin Host/IP address>

                          WebLogicPort <AdminServer port>

                          </Location>

                           

                          </IfModule>

                           

                          Once this is successful, then set-up request forward for your application.

                           

                          If it does not work, please set Debug ALL and attach the logs and mod_wl_ohs.conf.

                           

                          Thanks,

                          Bhargavi

                          • 10. Re: WLS : Increasing Number of User
                            895589

                            Thanks allot bhargavi.

                            It is working now. I am able to achieve this.

                             

                            The port for my OHS was 7778 not the 7777.

                            Now my test URL is- http://localhost:7778/http/faces/welcome.jspx

                             

                             

                            Thanks.