Strange errors with fast-cgi

Discussion in 'Installation/Configuration' started by diablo666, May 28, 2016.

  1. diablo666

    diablo666 Active Member HowtoForge Supporter

    Hi there, i've some strange behaviour on some server i'm running ISPconfig.
    I've configure fastcgi for all website, and all is wokring fine, but sometimes all resource become allocated and i start to get error like this in apache log

    Code:
    [Fri May 27 23:40:24.227414 2016] [fcgid:error] [pid 28878] mod_fcgid: process /var/www/php-fcgi-scripts/web4/.php-fcgi-starter(10906) exit(communication error), get unexpected signal 11
    /dev/zero: Cannot allocate memory
    Failed creating file mapping
    PHP Fatal error:  Failed creating file mapping in Unknown on line 0
    PHP Fatal error:  XCache: Cannot create shm in Unknown on line 0
    PHP Fatal error:  XCache: Cannot init in Unknown on line 0
    /dev/zero: Cannot allocate memory
    Failed creating file mapping
    PHP Fatal error:  Failed creating file mapping in Unknown on line 0
    PHP Fatal error:  XCache: Cannot create shm in Unknown on line 0
    PHP Fatal error:  XCache: Cannot init in Unknown on line 0
    [Fri May 27 23:48:01.968133 2016] [mpm_prefork:error] [pid 15039] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
    [Fri May 27 23:48:07.937955 2016] [fcgid:error] [pid 28878] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Fri May 27 23:48:08.080079 2016] [fcgid:warn] [pid 28878] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/php-fcgi-scripts/web1/.php-fcgi-starter error
    [Fri May 27 23:48:09.586515 2016] [fcgid:error] [pid 28878] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Fri May 27 23:48:09.742492 2016] [fcgid:warn] [pid 28878] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/php-fcgi-scripts/web1/.php-fcgi-starter error
    [Fri May 27 23:48:11.346169 2016] [fcgid:error] [pid 28878] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    [Fri May 27 23:48:11.449451 2016] [fcgid:warn] [pid 28878] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/php-fcgi-scripts/web1/.php-fcgi-starter error
    [Fri May 27 23:48:12.652184 2016] [fcgid:error] [pid 28878] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/php-fcgi-scripts/web1/.php-fcgi-starter
    
    
    I've tried tu uninstall xcache for now, but problem persist. In syslog i've no errors...
    I've same errors on a vps with only 1 website with low cpu and resource usage (i've tested that can handel 50-60 users contemporarly navigating on the site), with 2 core and 2 gb of ram, with amavis disabled (only 250MB ram used if not used by any process)
    All runing on debian 8.4 with latest version of ispconfig.
    Any idea?
     
  2. BeNeDeLuX

    BeNeDeLuX New Member HowtoForge Supporter

    Cannot allocate memory
    Does your VM has enough free RAM ? Looks like there is no free memory to me.
    Maybe you can check your VM stats.
     
  3. diablo666

    diablo666 Active Member HowtoForge Supporter

    I've investigate about that, but Ram seems to be enough: 2gb Ram vps for a small site.
    I've stressed the macchine With apache accesses, but i heave no crash.
    Seems a problem that heappen only sometimes, but can't understand why...
     
  4. BeNeDeLuX

    BeNeDeLuX New Member HowtoForge Supporter

    It only happen if RAM is full. You can run munin for example on the VPS to create RRD-Graphs of the use and free RAM over a longer distance. Hopefully you can see more there. To stress apache only is maybe not enough. There are many other processes and crons that need more RAM for a short time.
     

Share This Page