Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67892

Re: script uses up all memory

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.057
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'subject:script': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reproduce': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'script.': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'larry': 0.31; 'subject:all': 0.32; 'running': 0.33; 'problem': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'effort': 0.37; 'rather': 0.38; 'simply': 0.61; 'here': 0.66; 'mar': 0.68; 'forks': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=y0Xe2vzgcPlYbXijyWtl9u7JSq3BNF5hkFFPXx5xSI8=; b=v2XtZxohqftozrBCk3dkSrzPse9y5lZgeMLQeamN69j7xfLiK4i1r+ixXks/0YPLkc Eh3w1ChkkS6ahWFuP9d0INlqtaCqHez4scX4wnni62tdrnxotaeIBCgKRNSpfVrvCS2Q EmAHIuIb9CXfbWNsOvrYWmQuUUOIyEJ6yU4vKVonlI0piGkBu2wsYTyk4wncFqfvePbw fJ9KgXgymawRBg0yeN7SeUqcKi0OORRQMTX1SxACxx1hsdOAGKTTGvHtYVJTtHg+pT5G Ia6j4ZRBtwtP0KJsfvA8EKsakLpoIDb7DMyUpPZ54b5hUNK3bvlsNK0PY9RkjS39AZoU 2okQ==
MIME-Version 1.0
X-Received by 10.66.164.229 with SMTP id yt5mr10146070pab.67.1394059187133; Wed, 05 Mar 2014 14:39:47 -0800 (PST)
In-Reply-To <CACwCsY65gpn_Zx78wquE-rmrZu10pu9GYbzWd-Y3ypzHsMb2Yw@mail.gmail.com>
References <CACwCsY65gpn_Zx78wquE-rmrZu10pu9GYbzWd-Y3ypzHsMb2Yw@mail.gmail.com>
Date Thu, 6 Mar 2014 09:39:47 +1100
Subject Re: script uses up all memory
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7846.1394059196.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1394059196 news.xs4all.nl 2953 [2001:888:2000:d::a6]:44382
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67892

Show key headers only | View raw


On Thu, Mar 6, 2014 at 9:27 AM, Larry Martell <larry.martell@gmail.com> wrote:
> I have a script that forks off other processes and attempts to manage
> them. Here is a stripped down version of the script:
>
>         self.sleepTime = 300

That's not a stand-alone script. What environment is it running in?
Can you reproduce the problem outside of that environment?

Also: Can you simply use multiprocessing rather than going through all
the effort of subprocess.Popen?

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: script uses up all memory Chris Angelico <rosuav@gmail.com> - 2014-03-06 09:39 +1100

csiph-web