Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31868
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <tolidtm@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.023 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'memory.': 0.05; 'try:': 0.07; 'ioerror:': 0.09; 'exe': 0.16; 'subject:program': 0.16; 'urllib': 0.16; 'import': 0.21; 'received:209.85.214.174': 0.21; 'converted': 0.22; 'script': 0.24; 'pass': 0.25; 'skip:" 20': 0.26; 'message-id:@mail.gmail.com': 0.27; 'skip:( 20': 0.28; 'run': 0.28; "i'm": 0.29; 'file': 0.32; 'loading': 0.33; 'ram': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'except': 0.36; 'received:209': 0.37; 'advice': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'takes': 0.39; 'hello,': 0.39; 'header:Received:5': 0.40; 'skip:u 10': 0.60; 'ini': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=c7bZxsdCd/1eJQNbuhGtj+BCqfm8krVvo9aHZK0alIg=; b=l4YRn382xHy4vVL2MtoCL39MEWZKGuNfOPMdbqIFP4rUzMAl0yBcUu0hlSwNZUATML jUhINtRHqpofGfapL99wQe+Uhy4iVk9eKy+OyPE0LpjWbDMsTQszpylmkfYRFv4tyfht Q6uu2Uuw7d+EKHyUluLqJrfr4+y+BmaKO5DM5sRIvX5eTB+18pSKntoraeUn3FQj3TVF AsHduBQUFwHVxIVeEU14tbCLCm0l+Kt7lUvEnHaKfi/3sKFBIhH4YxBIyX8JPWaKdqb3 rMEqvWjyHUweyqUZYK7ECVExZW8X90azcNPFjVnLEXfnAAkmCDZIQZ7vafISrN+7urJA 26CA== |
| MIME-Version | 1.0 |
| Date | Mon, 22 Oct 2012 02:02:27 +0200 |
| Subject | program loaded in memory |
| From | Anatoli Hristov <tolidtm@gmail.com> |
| To | 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2609.1350864150.27098.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1350864150 news.xs4all.nl 6855 [2001:888:2000:d::a6]:47210 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31868 |
Show key headers only | View raw
Hello,
I need an advice about a small script I run 24/24 7/7.
It's a script converted to EXE using py2exe and this script takes -
grows 30kb RAM on each loop which means that for 10hours it grows up
with 180mb memory. is there something I can do ?
>From the ini file I'm loading only the URL and the interval of
downloading the file
The script:
import time
import urllib
exec(open("iccm.ini").read())
loop = 0
while loop == 0:
time.sleep(interval*60)
try:
urllib.urlretrieve ('"'URL'"'+"/hours.xml", "c:\\config\\hours.xml")
except IOError:
pass
Thanks
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
program loaded in memory Anatoli Hristov <tolidtm@gmail.com> - 2012-10-22 02:02 +0200
Re: program loaded in memory Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-22 02:50 +0000
Re: program loaded in memory Grant Edwards <invalid@invalid.invalid> - 2012-10-22 14:19 +0000
csiph-web