Bug 693777 - [RFE] ability to set RLIMIT_AS from config file setting
Summary: [RFE] ability to set RLIMIT_AS from config file setting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: web UI
Version: 0.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
Assignee: Bill Peck
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-05 14:51 UTC by Bill Peck
Modified: 2019-05-22 13:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-07 03:39:39 UTC


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.