I want to measure the size of an object (Serialized or not) when it is set to HttpSession. How can I do this ? Even some supporting questions found, it could not be used.. Any one know how I can do this ? Probably, usage of session listener could be valuable.But how to measure the size of the Object ? For example
session.setAttribute("attrName",sessionObj);
How to measure the size of this sessionObj ?