Fog Version 5507 Cannot Access Host Management
-
When I click on the Host management button it doen’t load all i get is this error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194433 bytes) in /var/www/html/fog/lib/db/MySQL.class.php on line 166
all other “tabs” work
posting per Sebastian Roth.
-
How many hosts do you have?
-
i think it is a little over 50 that is registered
-
Okay,
So I just injected 2k hosts, and I but my settings to 128 (default php setup) and i’m not seeing any issue loading them. I’ll test some more to try narrowing down where the issue is.
-
I did make a change if you want to give it a shot, but it doesn’t explain why 50 hosts is causing a memory problem. I just did this on 2011 hosts and I pushed the list all at 128M available and all displayed just fine. Testing on CentOS 6.7. I will check on Ubuntu 15.10 and Fedora 22.
-
I will give it a try I am running ubuntu 14.04 fyi
-
ok build 5509 similar error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194433 bytes) in /var/www/html/fog/lib/db/MySQL.class.php on line 163
-
I’m not able to replicate the memory usage, but what I could suggest is to up the memory limit? I don’t know, what, on your system is trying to use it all. You can Up the memory limit from FOG Configuration Page->FOG Settings->General Settings->FOG_MEMORY_LIMIT. It’s done in megs, so 128 = 128M, 256 = 256M etc…
-
@jeffj I should clarify, I can replicate the problem (the memory over limit problem) but not without actually going over memory problems.
For example, I’ll get the memory limit problem if I have 4011 hosts, because the memory in use is 168M (on my ubuntu 15.10 system). So, with this in hand, if I up the memory to 170M with 4k hosts, I should be able to load without a problem, but if I add a few more hosts I will see the error.
-
@Tom-Elliott said:
I’m not able to replicate the memory usage, but what I could suggest is to up the memory limit? I don’t know, what, on your system is trying to use it all. You can Up the memory limit from FOG Configuration Page->FOG Settings->General Settings->FOG_MEMORY_LIMIT. It’s done in megs, so 128 = 128M, 256 = 256M etc…
wiki hashtagging this for addition to the wiki.
-
uping the memory fixed im still not sure what is taking the memory but I changed it to 256 and now the page loads correctly. Thank you for your help.
-
@Tom-Elliott said:
I’m not able to replicate the memory usage, but what I could suggest is to up the memory limit? I don’t know, what, on your system is trying to use it all. You can Up the memory limit from FOG Configuration Page->FOG Settings->General Settings->FOG_MEMORY_LIMIT. It’s done in megs, so 128 = 128M, 256 = 256M etc…
Added here:
https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_Web_Interface