WordPress.org

Forums

WordPress File Monitor Plus
[resolved] Fatal error: Allowed memory size exceeded (7 posts)

  1. memelab
    Member
    Posted 3 years ago #

    Hi!
    I get the error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 756099 bytes) in [snip]

    Doesn't that indicate that the allowed memory size is greater than what's required?

    I tried unchecking hash checking, but still got the error.

    Any suggestions?
    Thanks, Tim

    http://wordpress.org/extend/plugins/wordpress-file-monitor-plus/

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    This is not a plugin specific error. Try increasing the memory available to PHP: http://wordpress.org/support/topic/253495#post-1017842

  3. memelab
    Member
    Posted 3 years ago #

    Thanks for the reply esmi!

    Just curious.. I figured I had enough memory available 33554432 is about 32meg, right? and the plugin wants 756099 bytes...

    Just checked, phpinfo() shows my Local and Master memory_limit as 128meg!

    hmm.. no mention of any particular requirements in the install docs/ FAQ..

  4. Scott Cariss
    Member
    Plugin Author

    Posted 3 years ago #

    Are you getting this error after doing a manual scan?

    Quite simply put you are running out of memory when doing a scan.

    To get the memory usage down try unticking hash, excluding cache directories and excluding safe filetypes. If this doesn't solve it then there isn't a lot that can be done other than getting your webhost to up the memory limit.

  5. Scott Cariss
    Member
    Plugin Author

    Posted 3 years ago #

    Just curious.. I figured I had enough memory available 33554432 is about 32meg, right? and the plugin wants 756099 bytes...

    According to the error you have 32MB available to PHP and the script tried to allocate an additional 756099 bytes bytes and ran out of memory to do that. This could mean that the script has already used 32MB or there isnt 32MB of RAM available to the script at that time.

  6. memelab
    Member
    Posted 3 years ago #

    Thanks for the replies!

    funny - i have the line:
    define('WP_MEMORY_LIMIT', '256M' );
    in my wp-config.php, and phpinfo() shows 128meg memory, as I mentioned (when I changed php.ini to set 64meg, this is reflected in phpinfo() )

    switching off hashes, and excluding images as you suggested worked...

    As I've been testing the manual scan, I've noticed that there are large numbers of reportedly removed files, which are still on the server.. is that because a scan was interrupted?

    what is the format for the excluded directory field? is that the server path without a trailing slash?

    Thanks Scott

    here are some logs from wp-admin/error_log, in case its helpful:

    [24-Oct-2011 14:20:41] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 756099 bytes) in 	/home/mysite/public_html/wp-includes/wp-db.php on line 838
    [24-Oct-2011 14:22:25] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 756099 bytes) in 	/home/mysite/public_html/wp-includes/wp-db.php on line 838
    [24-Oct-2011 14:22:39] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 1053397 bytes) in	/home/mysite/public_html/wp-includes/wp-db.php on line 774
    [24-Oct-2011 15:40:19] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 1075837 bytes) in 	/home/mysite/public_html/wp-includes/wp-db.php on line 774
    [24-Oct-2011 15:40:47] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 559965 bytes) in 	/home/mysite/public_html/wp-includes/wp-db.php on line 774
    [24-Oct-2011 15:41:56] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 1073905 bytes) in 	/home/mysite/public_html/wp-includes/wp-db.php on line 774
    [24-Oct-2011 15:52:48] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 1081793 bytes) in 	/home/mysite/public_html/wp-includes/functions.php on line 251
  7. Scott Cariss
    Member
    Plugin Author

    Posted 3 years ago #

    If you are getting reports of files removed then this could be due to the following reasons:

    - You have changed the directory you are scanning since last scan.
    - You have excluded files and folders to be scanned since last scan.

    The format for exact dirs to ignore is the full path to the folder excluding the final slash E.G. /home/user/public_html/wordpress/cache/

    The format for dir names to ignore is just simple a folder name on its own with no slashes. You wouldn't use this unless you have a lot of folders that are the same E.G .svn

    Each entry should be separated by a new line.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress File Monitor Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic