Re: Is there a way to increase memory allocated to the python interpreter

2009-02-25 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

janandith jayawardena wrote:
> Is there a way to configure the amount of memory allocated to the python
> interpreter.  Can it be increased or decreased using an argument like in
> the Java Virtual Machine.

Java needs the memory allocation number because of the way garbage
collection is done (or at least used to be done).  The CPython
interpreter doesn't have an explicit limit and will use all the address
space the operating system will let it have as needed.  (That typically
works out as around 2GB for a 32 bit process and exhausting swap space
on a 64 bit process).

If you want to prevent using more than a certain amount, then use
functionality provided by your operating system.  On Unix/Linux systems
the ulimit command will do the trick.

Roger
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmlGMMACgkQmOOfHg372QQeMACfVhyccV91nU0WZswc2CNg8KMv
SlEAoMINnO48FoDp0vgxROOWAjYp2tPG
=Vjcf
-END PGP SIGNATURE-

--
http://mail.python.org/mailman/listinfo/python-list


Is there a way to increase memory allocated to the python interpreter

2009-02-24 Thread janandith jayawardena
Hi,

Is there a way to configure the amount of memory allocated to the python
interpreter.  Can it be increased or decreased using an argument like in the
Java Virtual Machine.

thanks,
Janandith.
--
http://mail.python.org/mailman/listinfo/python-list