vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   PHP Memory Error (https://vborg.vbsupport.ru/showthread.php?t=272975)

Lazorbeam 10-28-2011 07:36 PM

PHP Memory Error
 
I'm getting the following error when searching in vBulletin:

"Allowed memory size of X bytes exhausted (tried to allocate Y bytes) in (path) on line Z"

X = 134217728
Y = 20960
Z = 35
path = /home/stormsp1/public_html/consortium/wowhead/includes/wowhead_language.php

I took out the sizes and path as this makes this thread more searchable through Google (for anyone who runs into this problem in the future).

Now, I've searched for this error and it seems quite common. I have read about the php.ini fix and intend on going through with it, but I have some questions. The server I'm using is a VPS with 2GB+ RAM.
  • My server has plenty of RAM, why is it "exhausted" at 1GB (134217728 bytes)?
  • By adding memory_limit = 32M (arbitrary number) to php.ini, am I limiting the amount of memory available to 32M?
I'd be very grateful if someone could clarify all of that for me.

Thanks!

Zachery 10-28-2011 08:01 PM

What are they searching for? FWIW: 134217728 = 128~mb. Your script is dieing around 128mb, it needed 20~kb more to finish.

Yes, that is the php memory limit per script execution. It looks like you're currently using the default 128mb script limit. You'd want to increase that to up more, like 135.


All times are GMT. The time now is 12:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01158 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete