I'm starting to run into problems where my app servers are having
memory issues at least partially due to the fact that many thousands
of LiftSessions are being created and never actually used for more
than a single request. The primary cause of this is, of course, bots
and web crawlers. They hit a single page, a session gets created, and
then never used again.
What might we be able to do about this? A couple of thoughts:
1) requests from known IPs, or with known User-Agents throw away the
LiftSession after the single request
2) a max_sessions setting that puts LiftSessions in a LRU cache, and
throws away old ones when max_sessions is exceeded
3) LiftSessions that have only been used once time out much faster
than other LiftSessions.
-harryh
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to
lif...@googlegroups.com.
To unsubscribe from this group, send email to
liftweb+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.