The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Problems - setrlimit(RLIMIT_AS)

Discussion in 'EasyApache' started by minotauro, Aug 24, 2004.

Thread Status:
Not open for further replies.
  1. minotauro

    minotauro Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    What is mean this message?

    [Tue Aug 24 20:28:33 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:35 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:36 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:37 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:37 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:37 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:38 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:39 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:43 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:45 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:45 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:50 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:50 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:28:51 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:01 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:03 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:04 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:04 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:05 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:07 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:13 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:14 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:16 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:18 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:21 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:22 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:23 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:23 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:24 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:25 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:25 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:27 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:28 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:30 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:30 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:31 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:34 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:35 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:36 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:36 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:37 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Aug 24 20:29:38 2004] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit

    I found many entries in my /usr/local/apache/logs/error_log. Many times, when this error occuring, the site show error internal. How to fix this problem?

    Regards,
    Minotauro.
     
  2. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Find the link in WHM that says "Modify Apache Memory Usage" and click it. Restart apache after.
     
  3. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    272
    Likes Received:
    0
    Trophy Points:
    16
    We see, to be having the same problem on one of our servers. In error_log:

    [Mon Nov 29 13:52:03 2004] [error] (1)Operation not permitted: setrlimit(RLIMIT_DATA): failed to set memory usage limit

    every 10 seconds or so.

    We did try to modify memory usage and restarted apache, but to no luck.

    This is FreeBSD 4.10 with cPanel 9.4-S18
     
  4. joel69

    joel69 Active Member

    Joined:
    Feb 17, 2005
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    East Vancouver, BC, Canada
    I am seeing the same thing in our error log. Initially I searched the forum for the text:

    "(22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit" but I got an error message stating that the search function wouldn't accept some of the text. (Forum Administrators: is it possible to search for an exact text string?) So I searched for just "RLIMIT_AS", and found this thread, and another one:

    http://forums.cpanel.net/showthread.php?t=40807&highlight=RLIMIT_AS

    I belive it is the "Modify Apache Memory Usage" function that is CAUSING this problem. I recomend that you edit /etc/httpd/conf/httpd.conf and comment out any RLimit directives at the begining of the file, and /etc/init.d/httpd and comment out any ulimit entries near the begining of that file, then restart Apache. Also, do this:

    1. Log into WHM
    2. Click "Tweak Settings"
    3. Scroll to the bottom of the page and find the field which says "The maximum memory a cPanel process can use before it is killed off (in megabytes). Defaults to 128 megabytes if not specified.:"
    4. Chances are that the box is empty. Insert a value, eg 256.
    5. Save settings and Restart Apache.

    I set mine to 512. Hopefully no more Apache / Tomcat crashes.
     
  5. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Did you re-compile Apache? If yes, were there any errors? or did you get clean build?
     
Loading...
Thread Status:
Not open for further replies.

Share This Page