• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Java Monitor Sessions Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Java Monitor Sessions Question
      • From: James Cicenia <email@hidden>
  • Prev by Date: WOHyperlink href attribute
  • Next by Date: Re: WOHyperlink href attribute [SOLVED]
  • Previous by thread: Java Monitor Sessions Question
  • Next by thread: Re: Java Monitor Sessions Question
  • Index(es):
    • Date
    • Thread