LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-30-2009, 10:18 AM   #1
jonash
LQ Newbie
 
Registered: Oct 2009
Posts: 2
Thanked: 0
smtpd process limit


[Log in to get rid of this advertisement]
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?
jonash is offline  
Tag This Post ,
Reply With Quote
Old 10-31-2009, 03:06 PM   #2
jonash
LQ Newbie
 
Registered: Oct 2009
Posts: 2
Thanked: 0

Original Poster
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 (!).
jonash is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03:02 PM
ip limit for a user in any process ysar68 Linux - Security 3 05-10-2007 09:56 AM
Limit disk I/O for a process matiasquestions Linux - Software 3 01-26-2006 10:50 AM
Linux process limit kangaman Linux - General 4 10-14-2004 03:48 PM
max process limit anoop_chandran Linux - Networking 2 01-16-2002 06:22 AM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration