The php program uses the session mechanism to control user logon and deprecation. However, the page response speed is very slow (3 s), and fastcgi_cache (Nginx server) cannot be used ), how should we speed up this time? This is a headache. Every time you open a page, it takes 3 s-5 s... the php program uses the session mechanism to control user logon and deprecation. However, the page response speed is very slow (3 s), and fastcgi_cache (Nginx server) cannot be used ), how should we speed up this time?
This is a headache. It takes 3 s-5 s to open a page. Solution ~
Reply content:
The php program uses the session mechanism to control user logon and deprecation. However, the page response speed is very slow (3 s), and fastcgi_cache (Nginx server) cannot be used ), how should we speed up this time?
This is a headache. It takes 3 s-5 s to open a page. Solution ~
The page response speed may not be caused by the session,
1. Check whether the database query has performance problems, such as the long-term cpu elevation of the database.
2. Is the overall server performance low and the memory is insufficient?
3. Is the cpu too high because there are too many users?
If all of the above can be ruled out and the problem is confirmed to be a session, you can try to use memcached to cache the session.
Session card
Check hard disk read/write
Check whether session lock is detected in slow logs.