PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Memory usage of search.php script - Allowed memory size exhausted errors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Memory usage of search.php script - Allowed memory size exhausted errors

    We have had a few reports of the "Allowed memory size of XXXXXXX bytes exhausted" error message recently.

    The solution to Allowed memory size issue is in the FAQ. But we though it would be interesting to see just how much RAM a large set of index files would use.

    The index used was 170MB in size. With around 27,000 pages in the index.

    Click image for larger version

Name:	ZoomMemoryUsage.jpg
Views:	1
Size:	20.0 KB
ID:	30614

    As can been seen in the (rather small) screen shot,
    PHP 5.2.13 used 139MB of RAM
    PHP 5.2.17 used 247MB of RAM
    PHP 5.3.28 used 258MB of RAM

    So it seems that more recent versions of PHP are using a lot more RAM than the order versions. Which probably explains the recent issues we have seen reported.

    With smaller sets of index files the RAM usage will obviously be much less.

    In reality this isn't a lot of RAM, as typical servers have 16GB+ of RAM available, but some people might still run into trouble on cheaper shared hosting plans and large sets of index files.
Working...
X