-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subrocesses not being killed #691
Comments
I experience the same with shellcheck and flake8 |
There are test cases for the cancellation: Lines 29 to 54 in c9aa44f
So I'm fairly sure it didn't regress. Could you check if you can terminate the orphan |
Thank you for your response and for taking time to investigate. At the time of creating this issue I had 8gb of ram, I since bought more and the issue seems to have disappear (or is less visible). I tried to reproduce but the processes are now finishing too quick to be able to kill orphan ones (there are still orphans but they seem to not last long, and I don't know if they die by themselves or are killed by the plugin). When I have time this week I'll try to edit phpstan to add Maybe @lukoshkin can help if he can reproduce the problem. |
I'm using PHPStan to lint PHP code.
My understanding is that each save should trigger an analyze command, and if a previous process is still running, it should terminate before a new one starts.
When checking the running processes via require('lint').get_running(), it only shows a single process, which seems correct. However, it appears that multiple processes are being spawned:
![380215159-980e9af7-4ca9-4baf-8d7f-dc94eca1b925](https://private-user-images.githubusercontent.com/18051702/380227399-c7a6eac3-0927-458b-9197-6da023c18fd2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzIwMzYsIm5iZiI6MTczOTAzMTczNiwicGF0aCI6Ii8xODA1MTcwMi8zODAyMjczOTktYzdhNmVhYzMtMDkyNy00NThiLTkxOTctNmRhMDIzYzE4ZmQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE2MjIxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2ZDE0MGVkMTE3YzRiMTE1MDkyNDJkMGNiYmI3MGZjNTNmZThhOTFjM2I3OGZiZDQwZjUzYmZmNjJlYzRlMDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.swei1bL-YXjKjfVEmrAxHldvMCiVY8Jfrl7xMBYkhZ8)
As you can see, only one command is
phpstan analyze
, others are subprocesses that seems to be orphans, and keep hanging for long minutes, and can take a lot of memory, affecting performance.This behavior seems similar to issue #521, so I’m wondering if this might be a regression.
Please tell me if you need any more information.
The text was updated successfully, but these errors were encountered: