Hi, I am wondering what code in Zope 2.7.5-final potentially may use /tmp directory for temprorary files. I am using zope over webdav and sometimes webdav tries to create a tmp file, of some sort and some parts of the system lock up. There are xml parsers,mime decoders all of which do have binary code bits, so I asking for expert advice, if someone knows of what circuimstances zope would use /tmp directory to create a file... your help will be greatly appreciated. Pavel
Pavel Zaitsev <pavel@md5.ca> wrote:
I am wondering what code in Zope 2.7.5-final potentially may use /tmp directory for temprorary files.
Lots. There are many uses of the tempfile python module, which uses the TMPDIR, TEMP or TMP environment variables to decide where to stick its temporary file. /tmp, /var/tmp then /usr/tmp are used as fallbacks. You can just define TMPDIR in you startup script and that'll do. Florent
I am using zope over webdav and sometimes webdav tries to create a tmp file, of some sort and some parts of the system lock up. There are xml parsers,mime decoders all of which do have binary code bits, so I asking for expert advice, if someone knows of what circuimstances zope would use /tmp directory to create a file... your help will be greatly appreciated. Pavel
-- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
On Thu, Mar 31, 2005 at 01:52:11AM -0500, Pavel Zaitsev wrote: | <snip> if someone knows of what circuimstances zope would use /tmp | directory to create a file... Anytime the request coming in is bigger than the config variable 'large-file-threshold' (see <INSTANCE_HOME>/etc/zope.conf), the request body is streamed to a temp file. That's because otherwise the whole file gets loaded as a string in the memory, and can possibly take your server down by memory exaustion. Disk exaustion is less likely to occur given hard drives are cheaper than RAM *wink*. -- Sidnei da Silva <sidnei@awkly.org> http://awkly.org - dreamcatching :: making your dreams come true http://www.enfoldsystems.com http://plone.org/about/team#dreamcatcher What this country needs is a good five cent microcomputer.
participants (3)
-
Florent Guillaume -
Pavel Zaitsev -
Sidnei da Silva