Out of memory error compiling with Fileinfo

Bobe

Registered
Dec 2, 2014
2
0
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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?
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.
 

Bobe

Registered
Dec 2, 2014
2
0
1
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.
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Still confused about the memory usage though since it always appeared to have plenty of available memory.
It requires greater than 1G for the compile to avoid memory usage errors.

Thank you.