opcache used_memory reports negative value
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.2k
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 103
Beschreibung
<?php
var_dump(opcache_get_status()['memory_usage']);
?>
Reports a negative value for used_memory.
Image is from a VDS system with opcache.memory_consumption=1GB and several sites.
But issue was reproduced within the following environment:
- PHP 8.3
- shared hosting server with PHP-FPM
- two sites with individual opcache.memory_consumption settings
- first site: 128M
- second site: 256M
- global settings in plesk: 256M
Second site reports correct values, but first site, with lower settings reports negative value for "used_memory"
Changing both sites to dedicated PHP-FPM fixes the issue, but in the default config it fails.
C.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Es ist keine Quelldatei oder kein Test angegeben. Beginne damit, opcache_get_status()['memory_usage'] unter PHP 8.3 mit gemeinsam genutzten PHP-FPM-Pools und verschiedenen opcache.memory_consumption-Einstellungen zu reproduzieren; vergleiche die gemeldeten Werte mit dediziertem PHP-FPM. Als erledigt gilt die Aufgabe, wenn used_memory in der gemeinsam genutzten Konfiguration gültig und nicht negativ bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, php
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100