Bug 693777

Summary: [RFE] ability to set RLIMIT_AS from config file setting
Product: [Retired] Beaker Reporter: Bill Peck <bpeck>
Component: web UIAssignee: Bill Peck <bpeck>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.6CC: bpeck, dcallagh, mcsontos, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-07 03:39:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bill Peck 2011-04-05 14:51:25 UTC
Description of problem:

To help debug memory issues it would be good to have a way to limit the address space for each python process.

The easiest way to do this is in beaker-server.wsgi add the following lines:

import resource
resource.setrlimit(resource.RLIMIT_AS, (1000000000,1000000000))

The above would limit the process address space to 1 gig (aprox)

This should be read from the config file so that it can easily be changed and turned off if need be.

Comment 1 Bill Peck 2011-04-05 15:06:08 UTC
pushed to gerrit