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 10-30-2009, 09:18 AM   #1
jonash
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
smtpd process limit


I'm having a problem increasing the Postfix 2.5 smtpd process limit to 200. Here's what I have tried so far:

1)
Code:
/etc/postfix/main.cf:
default_process_limit = 200
2)
Code:
/etc/postfix/master.cf:
smtp      inet  n       -       -       -       200       smtpd
3)
/etc/postfix/master.cf:
Code:
smtp      inet  n       -       -       -       -       smtpd
   -o default_process_limit=200
During heavy traffic or simulation (stress test), the number of smtpd processes reaches the default limit, whereupon the server stops accepting new connections:

$ ps -u postfix | wc -l
101

N.B. There are no other bottlenecks in this state (according to atop).

Error messages:
warning: process /usr/lib/postfix/smtpd pid 25834 exit status 1
warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
setuid(105): Resource temporarily unavailable


/etc/security/limits.conf:
Code:
postfix        soft    nproc   200
postfix        hard    nproc   300
Could any of you give me a hint, please?
 
Old 10-31-2009, 02:06 PM   #2
jonash
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
smtpd process limit [SOLVED]

Well, evidently the directives in limits.conf are completely ignored in our distribution/setup.

As a temporary solution, I placed "ulimit -u 300" in the Postfix init script.
300 smtpd processes can now be spawned, even though the process limit in master is only 200 (!).
 
  


Reply

Tags
postfix, smtp



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
Problem with Postfix (process smtpd exit status 1) breiko Linux - Server 18 03-26-2008 02:02 PM
ip limit for a user in any process ysar68 Linux - Security 3 05-10-2007 08:56 AM
Limit disk I/O for a process matiasquestions Linux - Software 3 01-26-2006 09:50 AM
Linux process limit kangaman Linux - General 4 10-14-2004 02:48 PM
max process limit anoop_chandran Linux - Networking 2 01-16-2002 05:22 AM

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

All times are GMT -5. The time now is 07:48 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