Bug #76840 [Com]: Opcache not clean up memory

From: Date: Tue, 04 Sep 2018 18:59:39 +0000
Subject: Bug #76840 [Com]: Opcache not clean up memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216884@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76840&edit=1 ID: 76840 Comment by: spam2 at rhsoft dot net Reported by: anton at justhost dot ru Summary: Opcache not clean up memory Status: Open Type: Bug Package: opcache Operating System: CloudLinux 3.10.0-614.10.2.lve1. PHP Version: 7.1.21 Block user comment: N Private report: N New Comment: you don't understand how opcache works http://blog.jpauli.tech/2015/03/05/opcache.html OPCache allocates one segment of shared memory when PHP starts, once for all, and never frees it nor fragments it Previous Comments: ------------------------------------------------------------------------ [2018-09-04 18:11:35] anton at justhost dot ru Description: ------------ Clean wordpress placed on folder test1, making request to it all scripts is cached to opcache, after rename folder to test2 repeat request to it, scripts are added to cahce again anf old scripts (what was cached from test1 folder) never deletes, when we make many renames to test(X) and memory ended in opcache in test(X+1) folder opcache fully not working. Test script: --------------- Any wordpress version or any other script causes this. Expected result: ---------------- Old and not used scripts must be clan up from opcache Actual result: -------------- Scripts stay at memory forever ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76840&edit=1

« previous php.bugs (#216884) next »