Re: Java Monitor Sessions Question
Re: Java Monitor Sessions Question
- Subject: Re: Java Monitor Sessions Question
- From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
- Date: Wed, 28 Apr 2004 15:56:10 -0500
James Cicenia, email@hidden, wrote:
>My active sessions in JavaMonitor seem awfully high considering there
>is only one person testing the application.
>I see 14, 22 etc.
>
>Is it correct? Is my program not releasing sessions? (Say a close
>window from one of my popups?)
Use a lot of DirectActions? Hitting session() -- either explicitly in
your code or implicitly though certain stock WOComponents -- will lazily
create a session.
I have a deployed app that should almost never create a session. So, I
log a warning message whenever a session is created:
import org.apache.log4j.Logger;
public class Session extends WOSession {
private static Logger log = Logger.getLogger( Session.class );
public Session() {
super();
log.warn( "session created" );
}
public Session(String sessionID) {
super(sessionID);
log.warn( "session created" );
}
}
This technique can help you narrow down where all those sessions are
coming from.
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.