tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Goldhahn" <Martin.Goldh...@vismaunique.no>
Subject Unbalanced Session created/destroyed
Date Wed, 26 Apr 2006 11:24:39 GMT
In order to track down an error in my servlet application, I'm trying to
trace when sessions are created and destroyed. For this I defined a
HttpSessionListener. 

  public void sessionCreated(HttpSessionEvent se) {
        se.getSession().setAttribute(ATTRIBUTE, this);
        if (trace.wanted(UqTrace.FINE)) {
            trace.print("Session created");
        }
    }

    public void sessionDestroyed(@SuppressWarnings("unused")
HttpSessionEvent se) {
        boolean istrace = trace.wanted(UqTrace.FINE);
        for (UqDisposable d : disposables) {
            if (istrace) {
                trace.print("Disposing Dispoable: " + d.toString());
            }
            d.dispose();
        }
        if (istrace) {
            trace.print("Session disposed");
        }
    }

According to the log file there are more sessions destroyed than
created. Dows this indicate an error or can this be ignored?

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message