Comments (9)
Hi @mlasri-web2!
I thought the zombie process was fixed in amphp/process
, see PosixHandle::waitPid()
, which should be invoked by the event-loop callback which is awaiting the exit code pipe for the process. Would you be able to have a look to see if there's any reason the waitPid
function is not being invoked?
from parallel.
Hi @trowski, am reopening the subject again as we kept deleting the .sock files left in /tmp/ using a job. temporary solution for these zombies.
The actual situation is we use the Process in two ways, CLI and HTTP. the CLI does close the .sock files properly, but the same service in Symfony controller (POST http endpoint) does leave One .sock in each request: srwxrwxrwx 1 www-data www-data 0 Apr 5 00:53 amp-parallel-ipc-87cff776753e279b1e56.sock
.
Note: PosixHandle::asyncWaitPid is invoked
Am still trying to figure out the reason and a solution.
from parallel.
The temporary .sock
file should be removed by LocalIpcHub::unlink()
, which should be invoked in the destructor. Can you have a look if this function is being invoked, and if not, why that might be happening? We are suppressing errors there, you could try removing that suppression to see if there is an unexpected error (though if the file was created, I'd expect removing it to succeed as well).
from parallel.
@trowski thank you for pointing the LocalIpcHub::unlink()
i found out that amp/parallel was in version V2.2.2 which does not include the destructor().
The upgrade works perfectly!
Thank you very much.
from parallel.
@medy36 Thanks for confirming my recent changes fixed the issue!
from parallel.
Related Issues (20)
- Performance degradation in v2.2.0 HOT 18
- Parallel task(s) keep on running since v2.2 HOT 3
- Awaiting multiple channels HOT 7
- Migrate from parallel-function HOT 3
- Sock files are piling up in tmp folder. They are not getting cleared up automatically. HOT 2
- Under XAMPP 8.2.4 the first example program freeze HOT 2
- Expected a valid stream HOT 6
- How to await for tasks in progress? HOT 2
- Do I need to use "readonly" in "FetchTask.php" when "main.php" contains several "$urls" in my case ??? HOT 1
- Hang when using ext-uv and JIT HOT 4
- Parcel (or analog) to data exchange between Parent and Child processes HOT 1
- communication between parallel worker HOT 1
- The pool was shut down HOT 3
- Forwarding User Interaction and Feedback in CLI app HOT 1
- Queue-based pool HOT 8
- Despite of DeferredCancellation::cancel() call Cancellation::isRequested() is always false in tasks submitted to ContextWorkerPool HOT 4
- Race condition on IPC socket accept
- Reporting Warning in amphp/parallel Usage on Windows System HOT 1
- Documentation: mention bootstrap file for workers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parallel.