Dazz Posted July 16, 2023 Posted July 16, 2023 I recently migrated my server over to a new host. I changed folders and running background processes to move the files. The background processes are consistently causing Out of Memory errors. The new host has removed the memory limit that a PHP script is allowed to allocate by setting the PHP memory_limit parameter to -1. I have cleared System Cache, browser cache, and cloudflare cache. However the logs are still showing that Out of Memory. From what I can tell the scripts are about 65% complete with the move, but can't get any further.... Any suggestions? 2023-07-16 16:48:15.160778 [NOTICE] [2074682] [T0] [162.246.255.237:49905-H3:DC6851-216#APVH_www.vpuniverse.com:443] [STDERR] PHP Fatal error: Out of memory (allocated 1846378496) (tried to allocate 913750464 bytes) in /home/vpuniverse/domains/vpuniverse.com/public_html/system/Http/Response.php on line 107\n 2023-07-16 16:49:06.799417 [NOTICE] [2074682] [T0] [162.246.255.237:49905-H3:DC6851-220#APVH_www.vpuniverse.com:443] [STDERR] PHP Fatal error: Out of memory (allocated 1056960512) (tried to allocate 1038102528 bytes) in /home/vpuniverse/domains/vpuniverse.com/public_html/system/Http/Request/Curl.php on line 452\n 2023-07-16 16:49:23.388178 [NOTICE] [2074682] [T0] [162.246.255.237:49905-H3:DC6851-224#APVH_www.vpuniverse.com:443] [STDERR] PHP Fatal error: Out of memory (allocated 1846378496) (tried to allocate 913750464 bytes) in /home/vpuniverse/domains/vpuniverse.com/public_html/system/Http/Response.php on line 107\n
Randy Calvert Posted July 17, 2023 Posted July 17, 2023 Don’t use negative one value. Set it manually to something bigger. Your php apparently is ignoring the “unlimited” flag.
Marc Posted July 17, 2023 Posted July 17, 2023 Do you know what task is trying to use that, as thats a lot of memory its trying to use
Dazz Posted July 17, 2023 Author Posted July 17, 2023 (edited) 11 hours ago, Randy Calvert said: Don’t use negative one value. Set it manually to something bigger. Your php apparently is ignoring the “unlimited” flag. They set the flag to 2GB and they finally started processing. However, it's been stuck on Processing DeleteMovedFile. Last night it was showing Under Background Processes it shows at 94%, but I clicked it to run it manually. It showed DeleteMovedFiles - 115106 / 115106. That was 12 hours ago... Dashboard currently shows it at 94% last night, and at 94.86% now. Edited July 17, 2023 by Dazz
Jim M Posted July 17, 2023 Posted July 17, 2023 2 minutes ago, Dazz said: They set the flag to 2GB and they finally started processing. However, it's been stuck on Processing DeleteMovedFile. Under Background Processes it shows at 94%, but clicking to run it manually it shows DeleteMovedFiles - 115106/115106 which has been going for 12 hours or so. Did you encounter any errors in your browser console when you are running that?
Dazz Posted July 17, 2023 Author Posted July 17, 2023 Just now, Jim M said: Did you encounter any errors in your browser console when you are running that? Sorry, I edited my response right before you posted. This may be a non-issue at this time now. At the time of the Out of Memory errors there were other processes... I think the main process was moving my downloaded files, some of which are big files. That's when it was giving the Out of memory errors. Once my host changed that to 2gb those started processing and eventually that process finished. However, this process has been going on for over 12 hours... DeleteMovedFiles Last night dashboard showed that process at 94%, so I ran it manually... it then showed DeleteMovedFiles - 115106/115106 which is where it has been since. If I check the manual process it is at 12.88%, but dashboard shows it at 95.68% It was at 94% last night before bed. It does seem that the process is still going. At this point, I'm just letting it continue... hopefully the process will complete. At one time I thought we had more control over the background processing... thought we could move one process higher than another.
Jim M Posted July 17, 2023 Posted July 17, 2023 9 minutes ago, Dazz said: It does seem that the process is still going. At this point, I'm just letting it continue... hopefully the process will complete. Ah, gotcha. OK, please let us know if it does seem to stop or encounter errors. Sometimes these processes can take time. 10 minutes ago, Dazz said: At one time I thought we had more control over the background processing... thought we could move one process higher than another. I'm afraid, we never allowed that in our background processes. The system manages it and the importance.
Dazz Posted July 17, 2023 Author Posted July 17, 2023 30 minutes ago, Jim M said: Ah, gotcha. OK, please let us know if it does seem to stop or encounter errors. Sometimes these processes can take time. I'm afraid, we never allowed that in our background processes. The system manages it and the importance. This process appears to have finally completed. I have no more pending background processes.... Ahh, ok... I think it was VBulletin that allowed background processes to be changed... used them long long long ago. Jim M 1
Recommended Posts