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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
9 - 7 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC