我正在编写一个PHP cli程序,该程序是队列系统的辅助进程。
我认为在这种情况下,PHP会不时收集垃圾,并且不会经常达到内存限制。
事实并非如此。
zend.enable_gc = 1
php garbage-collection
garbage-collection ×1
php ×1