-
1. Re: Http Session replication size
rhusar Aug 21, 2012 8:56 AM (in response to hukd)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 Aug 21, 2012 9:47 AM (in response to rhusar)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 Aug 21, 2012 10:00 AM (in response to hukd)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 Aug 21, 2012 10:12 AM (in response to rhusar)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??