4 Replies Latest reply on Aug 21, 2012 10:12 AM by hukd

    Http Session replication size

    hukd

      Hi, is there a way to log the Http Session replication size in a JBoss 4.3-eap clustered environment?

       

      We are facing some issues with the session size replication, so we are interested to see what the size of the session is.

       

      thanks,

      sam

        • 1. Re: Http Session replication size
          rhusar

          Hey Sam,

           

          Yes, you could use SIZE protocol for that from JGroups:

           

          http://www.jgroups.org/javadoc/org/jgroups/protocols/SIZE.html

           

          Protocol which prints out the real size of a message. To do this, the message is serialized into a byte buffer and its size read. Don't use this layer in a production stack since the costs are high (just for debugging).

          Even though this is cool, its more of an approximation. But for debugging this is all you need.

           

          I would also look directly at the wire with tools like iptraf or wireshark.

           

          HTH

          Rado

          • 2. Re: Http Session replication size
            hukd

            thanks for the reply Rado.

             

            Is there a way to configue \ use this in JBoss server configuration?

             

            I tried adding it to the jboss-service.xml as below, but it did not work.

             

            <attribute name="ClusterConfig">

                 <config>

                         .....

                      <SIZE />

                 </config>

            </attribute>

            • 3. Re: Http Session replication size
              rhusar

              Hey Sam,

               

              I dont have 4.3 distribution at hand, so I am looking at 5.1 which FAIR should be same/similar. The file you need to look at is:

               

              jboss-eap-5.1/jboss-as/server/production/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml

              There you will see that you need to add <SIZE/> to the JGroups stack.

               

              Rado

              • 4. Re: Http Session replication size
                hukd

                Thanks,

                 

                For 4.3, I've tried in 4.3.0.GA\jboss-as\server\production\deploy\jboss-web-cluster.sar\META-INF\jboss-service.xml file.

                But it doesnt work. Does this file looks ok to you, I mean am I chnaging the correct file??