Yes, you could use SIZE protocol for that from JGroups:
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.
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.
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:
There you will see that you need to add <SIZE/> to the JGroups stack.
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??