View Single Post
  #1  
Old 07-23-2012, 05:37 PM
Maksi Maksi is offline
 
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I need help with memory on my server for my forum

So last night I ended up getting this error message on my site MidGuide.com :

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 768332 bytes) in /home/xxxxxxxx/public_html/includes/class_core.php(4633) : eval()'d code on line 462

I contacted my host and this is what they responded with:
You are hitting the limits allowed for PHP memory on a shared server. You will need to reduce the amount of plugins running on your site at every page load. You may wish to enable to install a caching plugin that alleviates some of the memory usage. Consuming 128 MB of memory for every page load is an incredibly high amount of memory to consume.

So I ended up upgrading from a shared plan to a vps, here are the vps specification :

Dedicated CPU = 1.2 GHz
System RAM = 768 MB
Disk Space = 20 GB
Bandwidth = 500 GB

I was told that PHP has built in opcode caching - eAccelerator already installed and configured on my server.

The transfer was done this morning about 2 hours ago and after it was complete I noticed my pages are loading and running slow. I contacted them and they told me that 768 mb memory is not enough and that I should upgrade to to a bigger plan. Here is what I've used so far in the last 2 hours:

Host wrote:
As you can see you already have 523MB of swap used which would indicate that your server has run of of memory and used swap for memory handling, thus the slow page loading.

total used free shared buffers cached
Mem: 768 662 105 0 1 44
-/+ buffers/cache: 616 151
Swap: 1023 523 500

Would the datastore help with this issue: https://www.vbulletin.com/docs/html/datastore

I'm currently running VB 4.2.0

I don't want to upgrade anymore, and would only like to upgrade in time. What could I do to not have memory issues?

I also posted this here: https://www.vbulletin.com/forum/show...r-for-my-forum

Please help. This is the site: MidGuide.com

Thanks
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01067 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete