• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memcached Sessions

#1
So I just upgraded our existing sites to Codeigniter 3 and for the most part I have not had any issues with it. However, we have a very AJAX heavy application on our intranet that has taken a huge performance hit from CI3.

I've converted most of our session data back into normal cookies to take some of the load off, but we're still having performance issues. We're also getting our logs flooded with errors from session data failing to save.

PHP Code:
UnknownFailed to write session data (user). Please verify that the current setting of session.save_path is correct (localhost:11211Unknown 0 

That error gets thrown every AJAX call. I tried adding session_write_close() to certain functions and that made it 10x worse...

Now we are on PHP 5.4, but I'm upgrading it to 5.6 tomorrow with hopes it'll clear up some issues. I've also checked memcached logs in debug mode and it didn't tell me much sadly.

These are the stats from memcached (I can already see issues with the "misses" being quite high):

PHP Code:
STAT pid 22704
STAT uptime 1048142
STAT time 1477501922
STAT version 1.4.4
STAT pointer_size 64
STAT rusage_user 914.320002
STAT rusage_system 2830.748660
STAT curr_connections 12
STAT total_connections 12158032
STAT connection_structures 125
STAT cmd_get 5310707
STAT cmd_set 6077020
STAT cmd_flush 0
STAT get_hits 2451993
STAT get_misses 2858714
STAT delete_misses 193
STAT delete_hits 226226
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 2148258516
STAT bytes_written 1242867905
STAT limit_maxbytes 4294967296
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT bytes 803034
STAT curr_items 4974
STAT total_items 5489053
STAT evictions 0
END 
Reply


Messages In This Thread
Memcached Sessions - by zknight - 10-26-2016, 10:14 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.