Migration Solutions for ColdFusion Applications to ASP.NET
      
New Atlanta Product Forums Profile | Search | Login | RSS
New Topic Reply   Previous Page  Page: 1   Next Page

Thread: Monitoring session memory usage
Created on: 04/02/08 06:09 AM Replies: 2
gsl


Joined: 04/02/08
Posts: 1
Monitoring session memory usage
04/02/08 6:09 AM

Is there any way I can monitor each sessions memory usage? Without having access to the applications source code.

We use SE 5.0p6 ISAPI.
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Monitoring session memory usage
04/02/08 9:57 AM

Beginning with SE 5.x, the SE Admin UI includes a Session Monitoring page can be used to see things such as:
- the number of active sessions at that moment
- the attributes of any given session

Knowing how much memory a given session (and it's attributes) are using is a bit tricky.

For that, I'll make the following suggestions:

1. Read SE FAQ #127:
http://www.newatlanta.com/c/support/servletexec/self_help/faq/detail?faqId=127

2. Read SE FAQ #57:
http://www.newatlanta.com/c/support/servletexec/self_help/faq/detail?faqId=57

Let us know how it goes.

-Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom
mattm


Joined: 10/10/07
Posts: 266
RE: Monitoring session memory usage
04/02/08 10:37 AM

Another idea would be to write a SessionAttributeListener which computes the amount of memory used by any attributes being added or removed from a session, and then adds or subtracts that value from a running total.

Computing the amount of memory used by a given attribute is (I think) the tricky part.
Serializing it to a file and then computing the size of that file is one technique that comes to mind. of course that would only work for attributes that are serializable.

-Matt
Matt McGinty, New Atlanta Technical Support
Link | Top | Bottom

New Post
Please login to post a response.


company media information terms of use privacy policy contact us
This page was dynamically built on the BlueDragon CFML Engine