This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Titusz Ban
Recipients Titusz Ban
Date 2020-05-25.18:09:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590430147.26.0.291044051097.issue40772@roundup.psfhosted.org>
In-reply-to
Content
While trying to limit the virtual memory used by a process, using

import resource
MAX_VIRTUAL_MEMORY = 1 * 1024 * 1024
resource.setrlimit(resource.RLIMIT_VMEM, (MAX_VIRTUAL_MEMORY, MAX_VIRTUAL_MEMORY))

The following error occurred:

AttributeError: module 'resource' has no attribute 'RLIMIT_VMEM'

This is on Ubuntu 16.04 running inside WSL. on Python 3.8.2.
History
Date User Action Args
2020-05-25 18:09:07Titusz Bansetrecipients: + Titusz Ban
2020-05-25 18:09:07Titusz Bansetmessageid: <1590430147.26.0.291044051097.issue40772@roundup.psfhosted.org>
2020-05-25 18:09:07Titusz Banlinkissue40772 messages
2020-05-25 18:09:07Titusz Bancreate