• Resolved williamwps

    (@williamwps)


    Hello,

    When I start to backup and error as below:

    I have this php error log as below:

    [19-Mar-2024 15:54:07] ERROR: fork() failed: Cannot allocate memory (12)
    
    [19-Mar-2024 15:54:12] ERROR: fork() failed: Cannot allocate memory (12)
    
    [19-Mar-2024 15:54:16] ERROR: fork() failed: Cannot allocate memory (12)
    
    [19-Mar-2024 15:54:20] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 75 idle, and 89 total children
    
    [19-Mar-2024 15:54:23] ERROR: fork() failed: Cannot allocate memory (12)
    
    [19-Mar-2024 15:54:28] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 75 idle, and 89 total children
    
    [19-Mar-2024 15:54:30] ERROR: fork() failed: Cannot allocate memory (12)

    I think it about memory but my server has 8Gb still not enough? so how could I limit this plugin memory when backup? bcos it consume a lot memory during backup.

Viewing 1 replies (of 1 total)
  • Plugin Author Yani

    (@yaniiliev)

    The errors you’re encountering indicate that the PHP processes are running out of memory, despite your server having 8GB of RAM. This can occur due to the way PHP and your web server (likely using PHP-FPM for process management) are configured, rather than the total amount of server memory available.

    Here are a few steps to address this issue:

    1. Increase PHP Memory Limit: You might have 8GB of RAM on your server, but the PHP memory limit for each script might be set much lower. You can increase the PHP memory limit in your php.ini file:

    memory_limit = 512M # You can adjust this value higher if needed

    Make sure to restart your web server after making changes.

    2. Optimize PHP-FPM Settings: The warnings about PHP-FPM’s child processes suggest you might need to adjust your PHP-FPM configuration. Specifically, you can increase the pm.start_servers, pm.min_spare_servers, and pm.max_spare_servers settings to better handle the load. For example:
    `pm.start_servers = 20
    pm.min_spare_servers = 10
    pm.max_spare_servers = 30`
    Again, restart your web server after making any changes.

    3. Monitor Server Resources: Monitor your server’s resource usage during a backup to see if other processes are also consuming significant amounts of memory, which could contribute to these issues.

    If these steps do not resolve the problem, it might be useful to consult with your hosting provider or a server administrator who can provide more specific guidance based on your server’s configuration and the workload.

    • This reply was modified 7 months ago by Yani.
Viewing 1 replies (of 1 total)
  • The topic ‘Unable to run export!’ is closed to new replies.