Is there a way to increase memory allocated to the python interpreter
rogerb at rogerbinns.com
Wed Feb 25 05:09:10 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Python-list