Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-28-2012, 09:55 AM   #1
Registered: Dec 2011
Posts: 222

Rep: Reputation: Disabled
Debian and ulimits

Hi all,

I need to tune my web server (Debian squeeze 64bit, Apache-worker, MySQL).
During bechmark test, I got this kind of error:

[Mon Feb 27 17:04:22 2012] [alert] (11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread
[Mon Feb 27 17:04:22 2012] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
Out of memory (Needed 593128 bytes)
[apc-error] apc_mmap: mmap failed: Cannot allocate memory
So I think I must increase some limits of www-data user.
I put this in /etc/security/limits.conf:

@www-data hard nproc 0
but if I do:

su - www-data
ulimit -a

I don't see any difference.
What is the correct way to adjust those settings for Apache user in Debian?
Old 02-28-2012, 10:32 AM   #2
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You may need to install LSWS(Lite Speed Web Server) with root user in order to lift the memory limit imposed by the OS by default.

After that try "ulimit -a", raise the memory then start LSWS, see if it helps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
best way tot set ulimits or orcale to unlimited unix1adm Red Hat 4 08-17-2011 05:59 PM
LXer: How To Upgrade Debian Lenny (Debian 5.0) To Squeeze (Debian 6.0) On Xen VPS LXer Syndicated Linux News 0 03-09-2011 06:20 AM
Setting ulimits rnash AIX 2 08-23-2010 03:22 AM
how to set ulimits for a specific user with no login shell polemon Linux - General 1 10-11-2007 04:54 AM
File Descriptors and Ulimits ALInux Linux - Software 1 07-25-2007 07:46 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:20 PM.

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