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
Votes:2
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: anton at justhost dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 05:01:32 2024 UTC