php.net |  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
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
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-09-04 18:59 UTC] spam2 at rhsoft dot net
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
 [2018-09-05 10:38 UTC] cmb@php.net
-Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem
 [2018-09-05 10:38 UTC] cmb@php.net
Changing to doc bug.  Maybe we should just link to Julien's blog
post?
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Dec 10 03:01:25 2018 UTC