LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-28-2012, 08:55 AM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 273

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:

Quote:
[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:

Quote:
@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?
Thankyou
 
Old 02-28-2012, 09:32 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

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.
 
  


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
[SOLVED] best way tot set ulimits or orcale to unlimited unix1adm Red Hat 4 08-17-2011 04: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 05:20 AM
Setting ulimits rnash AIX 2 08-23-2010 02:22 AM
how to set ulimits for a specific user with no login shell polemon Linux - General 1 10-11-2007 03:54 AM
File Descriptors and Ulimits ALInux Linux - Software 1 07-25-2007 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:09 PM.

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