[Bug]: php processes lying around on the system
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- macos, php
- Ambito
- devtools, operating-systems
Direzione di ricerca
Iniziate riproducendo il problema su macOS Golden Gate con Herd 1.29.0, PHP 8.5 e un sistema ARM64, monitorando al contempo i processi PHP descritti nel report. Non vengono indicati file sorgente o test; investigate perché Herd lascia i processi in esecuzione e verificate che il numero di processi rimanga limitato e che sia possibile creare nuovi processi del terminale senza l'errore forkpty.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Platform
macOS
Operating system version
macos golden gate
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.29.0
PHP Version
PHP 8.5
Bug description
[ I am giving this feedback as a response to Apple Feedback ticket related to upcoming macOS ].
in my macOS Golden Gate while working with my projects ever so often I reached a point where almost all the applications stopped working and started giving me unexpected behavior including the terminal when I ran any command on my existing terminal it will get stuck indefinitely.One very clear signal was visible when I open a new tab I will clearly see the error -
[forkpty: Resource temporarily unavailable]
[Could not create a new process and open a pseudo-tty.]
and rebooting the system will fix my problem but I comes back in few ours and I will have to reboot again
as I am running a developer beta of operating system I am expected to have unexpected bugs and behaviors so as my first though I notified Apple feedback team about the issue with my mac data and they replied after analyzing data that there are too many php processes lying around on the system so many that the system becomes unable to create new processed.
this my the response I got from Apple
Thank you for filing this feedback report. We reviewed your report and determined the behavior you experienced is currently functioning as intended.
Please verify why there's a lot of php processes lying around on the system.
forkpty does open + fork. In this case, it seems like fork is failing because the kern.maxprocperuid sysctl has blown past.
Looking at ps.txt in the sysdiagnose, we see a ton of these:
shourya 501 - 19177 3629 4004 0.0 0.0 31 0 488946608 1280 - ?? S 5:24AM 0:00.05 /Users/shourya/Library/Application Support/Herd/bin/php
And sysctl.txt shows:
$ rg maxprocperuid sysctl.txt
40:kern.maxprocperuid: 1333
We're basically at the limit:
$ rg shourya ps.txt | wc -l
1372
Steps to reproduce
it happens in the macOS Golden Gate with heard running, in parallel I am also running vscode, codex and google chrome
Relevant log output
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 124
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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.
Altre issue di beyondcode/herd-community
-
[Bug]: PHP 8.3 php.ini missing auto_prepend_file and herd-ext extension lines (dump() undefined)ApertamacOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
beyondcode/herd-community#1693 ·
-
macOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
beyondcode/herd-community#1602 ·
-
[Bug]: 1.30.2 creates PHP 8.2 config and ~/.zshrc lines on every start, although 8.2 isn't installedApertafixed-in-next-release macOS
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
beyondcode/herd-community#1763 · 2 commenti ·
-
fixed-in-next-release macOS
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
beyondcode/herd-community#1760 ·
-
macOS
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
beyondcode/herd-community#1755 ·
Tutte le issue di beyondcode/herd-community
Issue simili
-
Sort modelsApertaenhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
devops documentation good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
FlowwStar/FlowStar#991 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug pkg: sphinx-needs
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
useblocks/sphinx-needs#2251 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
devops dx good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
StellarLock/StellarLock#990 ·
I maintainer di solito rispondono entro 1 giorno