Skip to main content

Could not start RewriteMap program error

Comments

9 comments

  • SysSachin
    Hello, [Tue Jan 09 02:01:54.848979 2018] [mpm_prefork:error] [pid 9826] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process This is due to low memory. Please upgrade your vps memory.
    0
  • cPanelMichael
    Hello, It looks like your VPS is running out of memory. You can use the following command to get a better idea of how much memory is available: free -m
    Outside of adding more RAM to the VPS, you may want to consider switching to a different MPM (prefork can sometimes result in higher memory usage): Multi-Processing Modules - MPMs - EasyApache 4 - cPanel Documentation Thank you.
    0
  • Erik1
    free -m
    total used free shared buffers cached Mem: 1024 432 591 3 0 181 -/+ buffers/cache: 250 773 Isn't 40% used memory enough? It is always around this figure. When I try to get root access I often get error "cannot set user ID: resources temporarily unavailable". I then restart server to get root access.
    0
  • cPanelMichael
    Hello, The usage looks okay there, but it's possible that it's increasing with more visitors. The following thread is intended for troubleshooting high load averages, but it also includes some information you can use to help determine the source of the resource usage: Thank you.
    0
  • Erik1
    Thanks for your help. I changed MPM from prefork to worker. Ram usage is now down to 20%.
    0
  • Erik1
    Too early, I got a server crash again. [Wed Jan 10 14:06:56.870373 2018] [mpm_worker:notice] [pid 1530:tid 140053110179808] AH00297: SIGUSR1 received. Doing graceful restart [Wed Jan 10 14:06:56.988685 2018] [ssl:warn] [pid 1530:tid 140053110179808] AH01909: 123.123.123:443:0 server certificate does NOT include an ID which matches the server name [Wed Jan 10 14:06:56.989137 2018] [ssl:warn] [pid 1530:tid 140053110179808] AH01909: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name [Wed Jan 10 14:06:57.001820 2018] [rewrite:error] [pid 1530:tid 140053110179808] (12)Cannot allocate memory: AH00654: mod_rewrite: could not start RewriteMap program /usr/local/cpanel/bin/leechprotect [Wed Jan 10 14:06:57.001853 2018] [:emerg] [pid 1530:tid 140053110179808] AH00020: Configuration Failed, exiting
    Every crash seems to happen after graceful restart and leechprotect that cannot restart. Any more suggestions? Are the limits.conf settings ok? * soft core 0 * soft nofile 512 * hard nofile 1024 * soft nproc 2047 * hard nproc 16384 ftp hard nproc 0
    0
  • cPanelMichael
    Hello, Feel free to open a support ticket using the link in my signature so we can take a closer look at your system. Thank you.
    0
  • Erik1
    I ended up with an upgrade, from 1GB to 2GB RAM. No problems so far. Is it normal that the VPS is running at the same % RAM as before, I would expect a usage drop of 50%.
    0
  • cPanelMichael
    Is it normal that the VPS is running at the same % RAM as before, I would expect a usage drop of 50%.

    Hello, That's not abnormal. The following post helps to explain how memory usage works on Linux:
    0

Please sign in to leave a comment.