LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-15-2010, 05:02 AM   #1
Piotr_Comarch
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
How to limit resources? / mod_perl


Hi,

Few months ago I'd got problem with Apache on my server. Some requests required few gigabytes of memory, much more than was avaliable. I've set ulimit -v XXX and this fixed problem for single request.
I still have got problem with multiples requests. I'm using mod perl, which runs few processes for requests, we can assume, that there is one process per request. ulimit cannot handle this, because it can only limit virtual memory per process, not for a group of processes.

Do you have any ideas, how can I deal with it?
 
Old 11-15-2010, 07:20 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I believe that you can do this using PAM and the limits.conf file. Here is a tutorial.
http://www.webhostingtalk.com/archiv...p/t-45887.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate soft limit & hard limit for quotas kennyghh SUSE / openSUSE 4 03-03-2011 12:49 PM
How to Limit server resources to users? deploy_update Linux - Server 3 10-27-2009 09:50 AM
Limit Resources with Webmin stuffradio Linux - Security 1 06-19-2007 04:41 PM
Limit System Resources for a Specific Program Revert_To_Saved Linux - Software 3 05-19-2007 11:29 PM
resources: how to limit process to max. 20% CPU usage alesz Linux - Software 4 03-30-2006 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration