Home  >  Article  >  Backend Development  >  session_start会有死锁或慢查询的有关问题吗

session_start会有死锁或慢查询的有关问题吗

WBOY
WBOYOriginal
2016-06-13 13:49:26973browse

session_start会有死锁或慢查询的问题吗,在线等
php项目中,

1 在my.cnf中设置 log-slow-queries=/slow.log
2 日志文件名是 slow.log
3 日志文件中老提示这一段
   
  23:30:37.771241 pid 30406 (pool default)
script_filename = /home/wwwroot/nanchang/web/secondHouse/lend_list.php
[0x00007fff67ee6740] session_start()  
/home/wwwroot/nanchang/web/include/ini_second.php:2
[0x00007fff67ee7b70] +++ dump failed

大家帮我想想,是什么问题,有什么好解决的方法吗,

------解决方案--------------------
....... 我见识少,坐等高人来上课
------解决方案--------------------
我在你的另一个帖子里做了些推测,可参考一下
------解决方案--------------------
当然会 session_write_close()就解决了。切记当你session_start()后,用完session就马上用session_write_close()来关闭session 否则就会发生死锁的情况。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn