Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
431 views
in Technique[技术] by (71.8m points)

php 7 yii2接口无规律out of memory

线上服务器,此前一直正常跑一个YII2的应用,之后上了wordpress的程序,为了wordpress今天改了php.ini,去掉了scandir函数的禁用(不确定是否与此有关)。上午后台某一接口报out of memory,没找到原因,重启PHP-FPM好了。下午出现另一个接口报out of memory。两个接口逻辑简单,没有复杂的操作。有朋友遇过类似问题吗?

[03-Mar-2017 14:45:20] NOTICE: [pool www] child 9497 started
[03-Mar-2017 14:48:30] WARNING: [pool www] child 8587 exited on signal 11 (SIGSEGV) after 1287.479709 seconds from start`

补充下/var/log/message上的日志,看sf上说是session目录的问题,感觉不像现在才190多个,只能选改试试了

kernel: php-fpm[16449]: segfault at 7f73a0827c88 ip 000000000084006b sp 00007ffc15d02860 error 4 in anon_hugepage (deleted)[400000+600000]

甚至会刷出下面这种错误。
fatel


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

内存不足,我没遇到过,但是最后那个遇到过,就是类名称重复了,我记得当时好像是给类起了别名,就是as了一下就行了 use commonmodelsUser as Member;然后继承Member


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...