Title: PHP memory_limit set to 2048m when plugin enabled
Last modified: August 21, 2016

---

# PHP memory_limit set to 2048m when plugin enabled

 *  Resolved [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-memory_limit-set-to-2048m-when-plugin-enabled/)
 * I noticed my site was allocating 2048m of memory to each PHP process, far greater
   than what I had specified in php.ini as my default and considerably greater than
   what I had set in this particular site’s wp-config.php. Upon further investigation
   I found that the Sucuri plugin was setting `@ini_set('memory_limit', '2048M');`,
   but not just for some cases, any time the plugin was enabled. Is this by design?
   As it stands I have it commented out as it was causing issues when the server
   is under load.
 * [http://wordpress.org/plugins/sucuri-scanner/](http://wordpress.org/plugins/sucuri-scanner/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [doublesharp](https://wordpress.org/support/users/doublesharp/)
 * (@doublesharp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-memory_limit-set-to-2048m-when-plugin-enabled/#post-4343474)
 * I ran a 10 minute load test with the plugin enabled and disabled (no other changes),
   and processed 15,683 requests when it was enabled and 40,517 when it was disabled…
 *  [brunoaborges](https://wordpress.org/support/users/brunoaborges/)
 * (@brunoaborges)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-memory_limit-set-to-2048m-when-plugin-enabled/#post-4343595)
 * Hi,
 * Thanks for your message.
    This configuration will be changed in the future releases
   of our plugin.
 * Regards,
 * Bruno Borges
    _[ [Signature moderated](http://codex.wordpress.org/Forum_Welcome#Signatures).]_
 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-memory_limit-set-to-2048m-when-plugin-enabled/#post-4343623)
 * This was a featured copied from our premium plugin, we added an option in the
   settings page were you can configure the memory limit for the plugin when running
   the filesystem scans.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP memory_limit set to 2048m when plugin enabled’ is closed to new replies.

 * ![](https://ps.w.org/sucuri-scanner/assets/icon-256x256.png?rev=2875755)
 * [Sucuri Security - Auditing, Malware Scanner and Security Hardening](https://wordpress.org/plugins/sucuri-scanner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sucuri-scanner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sucuri-scanner/)
 * [Active Topics](https://wordpress.org/support/plugin/sucuri-scanner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sucuri-scanner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sucuri-scanner/reviews/)

## Tags

 * [memory_limit](https://wordpress.org/support/topic-tag/memory_limit/)

 * 3 replies
 * 3 participants
 * Last reply from: [yorman](https://wordpress.org/support/users/yorman/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/php-memory_limit-set-to-2048m-when-plugin-enabled/#post-4343623)
 * Status: resolved