[issue21664] multiprocessing leaks temporary directories pymp-xxx

Yu-Ju Hong report at bugs.python.org
Wed Jun 4 20:39:04 CEST 2014


New submission from Yu-Ju Hong:

When running many managers (e.g. > 10) in parallel on a decent machine, there is often a number of pymp-xxx directories left in /tmp after the run.

After some digging and debugging, I think the cause is that multiprocessing.managers.SyncManager waits for the manager process to shutdown and join with a timeout of 0.2s, and this timeout is way too low. This leads to processes being forced to terminate before cleaning up the temporary directories properly.

Could the timeout being raised a bit, or at least allowing the timeout to be set when creating the SyncManager through Manager()?

----------
components: Library (Lib)
messages: 219767
nosy: yjhong
priority: normal
severity: normal
status: open
title: multiprocessing leaks temporary directories pymp-xxx
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21664>
_______________________________________


More information about the Python-bugs-list mailing list