|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76840 Opcache not clean up memory
Submitted: 2018-09-04 18:11 UTC Modified: 2018-09-05 10:38 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: anton at justhost dot ru Assigned:
Status: Verified Package: opcache
PHP Version: 7.1.21 OS: CloudLinux 3.10.0-614.10.2.lve1.
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-09-04 18:11 UTC] anton at justhost dot ru
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-04 18:59 UTC] spam2 at rhsoft dot net
you don't understand how opcache works
OPCache allocates one segment of shared memory when PHP starts, once for all, and never frees it nor fragments it
 [2018-09-05 10:38 UTC]
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem
 [2018-09-05 10:38 UTC]
Changing to doc bug.  Maybe we should just link to Julien's blog
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 16:01:30 2024 UTC