Drupal site requires higher memory after migration? What for?

We have a website with a previous memory limit of 12MB (12MB in php.ini and 16MB in settings.php) and worked before.

After upgrading to a new server, it started throwing memory errors and showing a half-blank screen.

We have exceeded the limit in both files (php.ini and settings.php) and it works now, but I don’t see how it’s possible that it now requires significantly more memory (it used to work with 12MB, now it works with less than 20 MB).

+2


a source to share


3 answers


I assume you haven't changed the OS in the process. Moving from Windows to Linux, or vice versa, is likely to change resource usage.

And this is a long shot, but perhaps you have switched from a 32-bit system to a 64-bit system? This will slightly increase memory usage, since addresses (pointers) will be twice as large on 64-bit architectures, and code with a lot of small objects uses a lot of pointers.



Overall, however, we cannot tell much without seeing what has changed in the system.

+2


a source


12 is too small unless you are only using drupal. The above is recommended more the more modules you install, usually with a 96MB machine, image processing is enough ...



+1


a source


12 MB is really very low. I would ignore it and continue.

Ideas that could change:

  • The old server might have modules installed that reduced memory usage, for example. memcache

  • The new server might have to rely on a library GD

    for image processing, whereas the old server might be ImageMagick

    (which is an external tool and doesn't count towards the memory limit)

0


a source







All Articles