Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member spiff06's Avatar
    Join Date
    Jan 2004
    Posts
    87

    Default procmail and resource temporarily available

    Hi all,

    I've had a procmail script working for about three years on my server without a glitch. What it does is retrieve data from an MBOX, and fill up a database with each email's data. It is invoked through a cron job at regular intervals.

    The issue I'm facing is that the top shell script (invoked from cron or the command line) spits out failures upon invocation of the sub shell script (invoked recursively for each email): /bin/bash: fork: Resource temporarily unavailable.

    I've tried disabling Shell Fork Bomb Protection, but to no avail.

    The issue cropped up on October 27; no message has been processed since then.

    I'm at a loss as to how to proceed from here.
    Last edited by spiff06; 11-15-2006 at 07:33 AM.

  2. #2
    Member spiff06's Avatar
    Join Date
    Jan 2004
    Posts
    87

    Default

    Well, disabling shell fork protection does work; I just hadn't logged out of the shell window the first time around... Disabling shell fork protection, then opening the SSH allows me to run the script.

    It would then seem I need to increase my server's tolerance for shell script usage for that particular user (I don't want to disable shell fork protection entirely).

    Several files appear to deal with this, namely:
    • /etc/bashrc
    • /etc/profile
    • /etc/profile.d/limits.sh
    • /etc/profile.d/limits.csh

    The question remains as to what limits I should set. Is my procmail script disabled based on the number of shell scripts run over a period of time? Memory consumed? How do I find out where the current usage is stored for that particular user?

    Thanks!

  3. #3
    Member spiff06's Avatar
    Join Date
    Jan 2004
    Posts
    87

    Default

    These are the limits I currently have on the account (after re-enabling shell fork protection):
    $ ulimit -a
    core file size (blocks, -c) 200000
    data seg size (kbytes, -d) 200000
    file size (blocks, -f) unlimited
    max locked memory (kbytes, -l) 4
    max memory size (kbytes, -m) 200000
    open files (-n) 100
    pipe size (512 bytes, -p) 8
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 20
    virtual memory (kbytes, -v) 200000

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 03-05-2011, 09:13 PM
  2. bash: fork: Resource temporarily unavailable
    By linuxnewbie in forum cPanel and WHM Discussions
    Replies: 25
    Last Post: 09-19-2008, 06:22 PM
  3. (11)Resource temporarily unavailable: couldn't spawn child process:
    By KatieBuller in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-30-2005, 02:52 AM
  4. 11)Resource temporarily unavailable: couldn't spawn child process
    By astopy in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-30-2005, 09:28 AM
  5. Resource temporarily unavailable problem
    By ozzi4648 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 12-03-2004, 08:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube