To recreate this problem:
When running certain searches in our forums, we are getting this error:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 35 bytes) in /home/forums/www/search.php on line 946
http://forums.pcper.com/search.php?
search for "case" -- you'll get the error.
serach for "shrout" -- you won't get the error
I am assuming this is because there are a lot of results for the word "case" on our forums.
I know one solution is to keep increasing hte amount of memory that PHP is allowed to use, but this seems kind of dangerous to me. Having a single search use up 32 or 64 MB of memory, then having multiple people searching for hte same or similar sized terms at the same time....and you can see how this might eat up the 2 GB of memory my server has pretty quickly.
Is there no protection or work around for this error in vBulletin's software?
When running certain searches in our forums, we are getting this error:
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 35 bytes) in /home/forums/www/search.php on line 946
http://forums.pcper.com/search.php?
search for "case" -- you'll get the error.
serach for "shrout" -- you won't get the error
I am assuming this is because there are a lot of results for the word "case" on our forums.
I know one solution is to keep increasing hte amount of memory that PHP is allowed to use, but this seems kind of dangerous to me. Having a single search use up 32 or 64 MB of memory, then having multiple people searching for hte same or similar sized terms at the same time....and you can see how this might eat up the 2 GB of memory my server has pretty quickly.
Is there no protection or work around for this error in vBulletin's software?
Comment