On Sep 20, 2016 16:52, "'Christian Meis' via Lucee" wrote:
> It looks like sessions never expire and session data is being kept forever. This leads to the heap filling up and sometime further down the
> road Tomcat will just crash with an OOM.
The first thing I would do is put some logging in onSessionEnd and see if it gets triggered.
Jochem
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/fce858a9-0b1f-4eed-9e9d-80d730be0f88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/b735970b-9452-4186-a218-b7866a77c29f%40googlegroups.com.
On Sep 20, 2016 18:07, "'Christian Meis' via Lucee" wrote:
> So what could be the reason for sessions not timing out or onSessionEnd not being called?
You are using JEE / Tomcat sessions right? Have you configured the sessions through Lucee or through the session-config element in web.xml?
Jochem
I configured the webcontext in Lucee for CFML sessions.
Christian
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CABPCP-2HMMX2vT_TiHcyfV1698Zd1X2Y%3Dg4TH1Yav%2BjZQJ8PWQ%40mail.gmail.com.
My advice would be to copy your code, create a new server (dev) and do early returns in all the functions of the application and then see if onSessionEnd is running with basically no code running and then add code until I find out what it is. This is a basic function and I doubt it would not be working for everybody (so it would be something in your code)
select name AS applicationName
, count(1) as totalSessionNum
, SUM(CASE WHEN expires >= #getTickCount()# THEN 0 ELSE 1 END) AS expired
, SUM(CASE WHEN expires < #getTickCount()# THEN 0 ELSE 1 END) AS valid
from cf_session_data
GROUP BY name
ORDER BY 1