opcache used_memory reports negative value
Nessuno ha ancora preso questa issue.
- Lingua principale
- C
- Stelle
- 40.4k
- Fork
- 8.1k
- Merge medio
- 2g 13h
- PR unite (30g)
- 96
Descrizione
<?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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Non viene indicato alcun file sorgente né alcun test. Inizia riproducendo opcache_get_status()['memory_usage'] su PHP 8.3 con pool PHP-FPM condivisi e diverse impostazioni di opcache.memory_consumption; confronta i valori riportati con PHP-FPM dedicato. Il lavoro è completato quando used_memory rimane valido e non negativo nella configurazione condivisa.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, php
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100