title: WordPress PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 4096 bytes)
body: <p>There are many questions already asked about this error, but I could not find a solution for my situation, so I created a new one where I hope to get answers to two very specific questions:</p>
  
  <p><strong>1. Where from does the number 2097152 come?</strong></p>
  
  <p>In my php.ini I have memory_limit set to 256M, in my wp-config.php I have WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT set to 256M, so I would expect to get errors stating that 268435456 bytes were allocated and exceeded, where from 2097152 comes?</p>
  
  <p>2097152 = 2048K = 2M, I looked through all the files in Apache, PHP and WordPress folders and could not find any of these values used, please help.</p>
  
  <p><strong>2. Why is amount that was tried to allocate (4096) is less than allocated (2097152)?</strong></p>
  
  <p>Could someone please explain, what am I missing here?</p>