yeah, this would be particularly neat if it could tell you the size of each
object
in the graph using that JMX sizeof call.  it's actually the non-serialized
size that
matters the most and that management call ought to be able to get a value
pretty close to correct (although if it's transitive, it might be necessary
to do 
a bunch of finagling to temporarily set references to null before computing
the
size).


Eelco Hillenius wrote:
> 
>> Through the use of anonymous inner classes it is easy for objects to
>> become
>> part of session state unintentionally. Does anyone know of a tool (or io
>> util package) that would help debuging these issues? Specifically it
>> would
>> be great to be able to print the heiarchy/containment structure of a
>> serialized object so that at any level deep you can see the path that
>> lead
>> to that object becoming serialized.
>>
>> Eelco created something very similar to this to make serialization error
>> messages more friendly, perhaps it can be modified to help with session
>> debuging?
> 
> Funny you bring that up, as I thought about coding such a class a
> couple of days ago. Unfortunately, I don't have any spare time soon,
> so I can't do this. But indeed, something similar to
> org.apache.wicket.util.io.SerializableChecker should do the trick.
> 
> It would be great if someone could pick this up. Something you could
> do Ryan? Mind opening up a JIRA issue for it?
> 
> Cheers,
> 
> Eelco
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Howto-determine-what-objects-are-part-of-session-state-tf3904698.html#a11073163
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to