Hey! I’ve been in the same boat with Python run app in process issues. Honestly, `subprocess` is great if you need to run external apps, but `multiprocessing` is better for parallel tasks within Python.
One thing that helped me was using `atexit` to ensure clean termination. Also, check out the `psutil` library—it’s a lifesaver for monitoring and killing zombie processes.
For memory leaks, try using `tracemalloc` to track down where the memory is going. Hope this helps!
One thing that helped me was using `atexit` to ensure clean termination. Also, check out the `psutil` library—it’s a lifesaver for monitoring and killing zombie processes.
For memory leaks, try using `tracemalloc` to track down where the memory is going. Hope this helps!
