I prefer option #1 - sourcing the sessionclean scripts from
/usr/lib/php5/sapi/* or perhaps /usr/lib/php5/sapi/<sapi>/sessionclean
so we can make room for more sapi-specific scripts should the need
arise.

If we keep the logic in php-common, a con is that we can't use it for HHVM (not 
that HHVM should drive the decision).
A pro for this method is that we can have 
/usr/lib/php5/sapi/<sapi>/sessionconfig scripts that simply spit out the params 
we need, then we feed them into the sessionclean script as you've described 
(sort of like /usr/lib/php5/maxlifetime is used now)
Another pro for this method is that we can optimize cleanup by de-duplicating 
the session.save_paths and using max(session.gc_maxlifetime).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1356113

Title:
  PHP5 session clean cron job causes OOM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1356113/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to