Message369902
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. |
|
Date |
User |
Action |
Args |
2020-05-25 18:09:07 | Titusz Ban | set | recipients:
+ Titusz Ban |
2020-05-25 18:09:07 | Titusz Ban | set | messageid: <1590430147.26.0.291044051097.issue40772@roundup.psfhosted.org> |
2020-05-25 18:09:07 | Titusz Ban | link | issue40772 messages |
2020-05-25 18:09:07 | Titusz Ban | create | |
|