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.

Out of memory error compiling with Fileinfo

Discussion in 'EasyApache' started by Bobe, Mar 16, 2016.

  1. Bobe

    Bobe Registered

    Joined:
    Dec 2, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    My VPS is running on 1024MB of memory and I cannot build EasyApache 3 with Fileinfo due to running out of memory. I'm confused because the cPanel documentation says that Fileinfo requires "greater than 1 GB of memory to compile" whereas EasyApache says "up to 1GB of system memory may be required", so I'm not sure if the system only having 1GB is the reason. Should I technically be able to compile (just the default "Basic Apache 2.4" build)?

    I can compile without issue by omitting Fileinfo, and I am running all the builds via SSH.

    I'm also confused about the memory allocation. When the build starts it says the pre allocation testing was able to allocate 90MB. Does this mean it's only using 90MB maximum? Then when I get the out of memory error, the process apparently was using about 328MB (520MB in one instance).

    If I have to double my memory just to compile with Fileinfo, it would mean a substantial additional monthly cost, but I do have the option of selecting small increments between 1GB and 2GB, which would save me some money. Is there a way to know how much memory I will really need?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    This PHP extension requires greater than 1G of memory to compile. You should be okay with adding an additional 1G, but it's difficult to determine how much memory your server already uses.

    Thank you.
     
  3. Bobe

    Bobe Registered

    Joined:
    Dec 2, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael, thanks for the reply. I have literally just now attempted another build after stopping the httpd and mysql services and it appeared to complete successfully. Still confused about the memory usage though since it always appeared to have plenty of available memory.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It requires greater than 1G for the compile to avoid memory usage errors.

    Thank you.
     
Loading...

Share This Page