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


Groups > comp.lang.python > #31868

program loaded in memory

Date 2012-10-22 02:02 +0200
Subject program loaded in memory
From Anatoli Hristov <tolidtm@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2609.1350864150.27098.python-list@python.org> (permalink)

Show all headers | 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 | NextNext in thread | Find similar | Unroll thread


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