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.

FastCGI and out of memory errors

Discussion in 'Workarounds and Optimization' started by wimr0001, Nov 22, 2015.

  1. wimr0001

    wimr0001 Registered

    Joined:
    Oct 1, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I use the PHP Java Bridge (with Tomcat server) and face "Out Of Memory" errors.
    As far as I know PHP starts php-cgi processes. These processes are being reused by Apache until a certain limit. After resuse, the process can be removed. But the removal is not performed. That leads to an "Out of Memory".

    I understand that the following parameters are important for the process:
    1. PHP_FCGI_CHILDREN
    2. PHP_FCGI_MAX_REQUESTS
    3. MaxRequestsPerProcess (in /../fcgid.conf)

    But in WHM, I can't find anything about this.
    Can someone advice me?
    Thanks in advance.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may find the following thread helpful in understanding how to add the custom FCGI settings:

    Info reguarding of different Apache modules used in combination

    It includes details about the IfModule statements that you wrap the configuration settings in before posting them in "WHM Home » Service Configuration » Apache Configuration » Include Editor » Pre VirtualHost Include".

    Thank you.
     
Loading...

Share This Page