Hi @prixer,
The 2048 stands for the memory limit of this webspace. Normally you configure it in the PHP settings of the webspace.
We get the memory limit with the standard PHP function ini_get('memory_limit')
.
If you have 8GB RAM and there is only this webspace on the server you can increase the memory limit in the server configuration up to 6GB or 7GB.
What you should do is increase the WordPress Memory Limit. You are using the default limit of 40MB. It’s not clear what this memory limit does when there is a much higher memory limit, but just in case we would increase it to the same limit as the memory limit.
WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as “Allowed memory size of xxxxxx bytes exhausted”.
WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.
The peak memory usage in the moment the administration page where you are seeing this info is loaded. This should not be a direct indicator of how much memory your server needs. This gives you a hint if the peak memory usage is very close to the memory limit. In order to know the amount of memory needed you should monitor the memory usage at server level for one week.
Hope this helps.
Best regards from Spain.