I would like to know if a higher gc.maxlifetime value will affect performance of site? Let’s say 2 weeks (1209600 seconds).
The reason i’m asking is because some of my pages is taking minutes to load that were very fast before. I changed the value from the default 24 minutes to 2 weeks so that users’ session data and login would be persistent. This was about 2 weeks ago which leads me to believe that the high gc.maxlifetime could be the problem for the slow pageload. It’s not always the same pages though.
PS: I am in the process of moving to a cookie-based persistent login system which I believe is more performance friendly?
Thanks
I don’t think you should try to gc.maxlifetime setting. In general the garbage collector is a very lightweight process. I think you should try to find out why the page is slow. You could do this by adding timers between certain sets of code. Then see which part of your code is slow.
For example:
Good luck finding the slow parts. TIP: Take an extra look to your database queries, if there are any.