The best results I achieved using the YourkitJava Profiler 
<http://www.yourkit.com/>.
Basically working like this:
- start the servlet-container
- prepare the use case
- activate memory profiling
- take the before memory snapshot
- execute the use-case
- take the after memory snapshot
- deactivate memory profiling

This gives me:
- info about what was created by the use-case I am interested in (including 
leaks)
- an easy to handle interface to drill down into objects and their shallow and
  retained sizes

And till some days ago: all at a really low price... (they dropped their 
personal license...)


regards
Alexander


-----Original Message-----
From: Heath Borders [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 17, 2005 3:27 PM
To: MyFaces Discussion
Subject: Server-side state saving size suggestions?

(Who loves that alliteration?)

I would like to build a simple profiler that can tell me the size of
my session at any given point in the application.  Does anyone have
any suggestions?

My initial thought was just to serialize the session map into a byte
array and report on its size.

Are there any products out there that do this?
Is there a better strategy?  Right now, I don't care THAT much about
the size of the objects within the session, but just the session
itself.  However, I might want to delve deeper eventually.

Thanks.

-- 
-Heath Borders-Wing
[EMAIL PROTECTED]

Reply via email to