Hello Joakim,

I filed the issue

https://github.com/eclipse/jetty.project/issues/1203

and added the information that valueUnbound IS called on session timeout. So that probably accounts for the 45% of correctly unregistered sessions.

Unfortunately I can not provide a reproduction case easily. Jetty is embedded in a pretty large script engine that runs scripts that implement web services and applications. Session management is part of the script lifetime management and the issue occurs across all our applications.

Cheers,

Silvio

On 12/23/2016 11:57 PM, Joakim Erdfelt wrote:
Can you file an Issue about this?
A reproduction case would be very useful too!

https://github.com/eclipse/jetty.project/issues/new

Joakim Erdfelt / [email protected] <mailto:[email protected]>

On Fri, Dec 23, 2016 at 3:46 PM, Silvio Bierman <[email protected] <mailto:[email protected]>> wrote:

    Hello all,

    I have been running 9.4.0 (embedded mode) in our production
    environment for a couple of days now and started to notice high
    session counts in our monitoring screens.

    To track sessions we add an attribute value that extends
    HttpSessionBindingListener that registers the session during
    valueBound and unregisters it during valueUnbound.

    The session registry keeps track of the total number of sessions
    created and destroyed. The difference is shown as the number of
    active sessions. I now observe an ever increasing count of active
    sessions. It seems that valueUnbound is called in only about 45%
    of the cases.

    I managed to reproduce this in my dev environment. I can confirm
    invalidate is called on the session but valueUnbound is not called
    on the tracking object. Reverting to 9.3.13 solves the issue.

    Perhaps I am doing something wrong in my server setup. But since
    valueUnbound is called in about half the cases I suspect something
    else is wrong. Any ideas?

    Thanks,

    Silvio

    _______________________________________________
    jetty-users mailing list
    [email protected] <mailto:[email protected]>
    To change your delivery options, retrieve your password, or
    unsubscribe from this list, visit
    https://dev.eclipse.org/mailman/listinfo/jetty-users
    <https://dev.eclipse.org/mailman/listinfo/jetty-users>




_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to