Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It requires greater than 1G for the compile to avoid memory usage errors.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice