Hello all: I'm having a problem with an external method that executes a heavy process. The action it tries to complete fails, (concretely, split an avifile with divx in several files using avisplit, a tool from transcode package). If the file I try to split is little, all works ok... I use os.system to do this task... If I execute the same code outside zope, all works fine, with big files or less big files... Anybody can help me? -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT ---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com
People have complained of this problem when running behind Apache. It has a request timeout. Zope itself however, does not. You could test the time issue by writing an external method that does something like (pseudo-python): def yawn(): time.sleep(5min) os.write('/tmp/yawn', time.rightnow()) There is also the possibility you have shell limits set and are exeeding them (Unix systems only).
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Antonio Beamud Montero Sent: Thursday, September 05, 2002 3:48 AM To: Lista Zope Subject: [Zope] heavy process
Hello all: I'm having a problem with an external method that executes a heavy process. The action it tries to complete fails, (concretely, split an avifile with divx in several files using avisplit, a tool from transcode package). If the file I try to split is little, all works ok...
I use os.system to do this task... If I execute the same code outside zope, all works fine, with big files or less big files...
Anybody can help me? -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT
---- Antonio Beamud Montero Agora Systems S.A.
Antonio Beamud Montero writes:
I'm having a problem with an external method that executes a heavy process. The action it tries to complete fails, (concretely, split an avifile with divx in several files using avisplit, a tool from transcode package). If the file I try to split is little, all works ok...
I use os.system to do this task... If I execute the same code outside zope, all works fine, with big files or less big files... There is no reason whatsoever, why the result should be different when started from Zope or a shell. "os.system" starts a new process, independent of Zope (almost).
They share, however, some few resources, e.g. open file descriptors. Check (e.g. with "lsof" (list open files)) whether a lack of file descriptors may be the problem. Dieter
participants (3)
-
Antonio Beamud Montero -
Charlie Reiman -
Dieter Maurer