Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 07-23-2012, 05:52 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you do have quite a few forums - do you know how many you have totat? But I'm not sure that's the problem - what mods do you have installed? FWIW I only have a couple of forums on my test site and according to the debug mode info it's only using 7Mb to generate the page.
Reply With Quote
  #3  
Old 07-23-2012, 06:00 PM
Maksi Maksi is offline
 
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Well, you do have quite a few forums - do you know how many you have totat? But I'm not sure that's the problem - what mods do you have installed? FWIW I only have a couple of forums on my test site and according to the debug mode info it's only using 7Mb to generate the page.
Hey kh99,

So far I have about 10k forums and plan to run about 50k to 100k forums. I have two plugins installed, the VSA subforum manager and a plugin that I had created by Badshah93 for coping forums. I can understand when coping forums it would take a lot of memory, but when I'm not coping anything, it still uses a lot of memory. Any help would be appreciated.:up:
Reply With Quote
  #4  
Old 07-23-2012, 06:08 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Maksi View Post
So far I have about 10k forums and plan to run about 50k to 100k forums. I have two plugins installed, the VSA subforum manager and a plugin that I had created by Badshah93 for coping forums. I can understand when coping forums it would take a lot of memory, but when I'm not coping anything, it still uses a lot of memory. Any help would be appreciated.:up:
Oh, 10k forums. Yeah, that's likely to be the issue in one way or another, I think. You could try temporarily disabling the VSA subforum manager and see if things speed up, but it could just be the number of forums - vbulletin isn't really optimized for dealing with that.
Reply With Quote
  #5  
Old 07-23-2012, 06:16 PM
Maksi Maksi is offline
 
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Oh, 10k forums. Yeah, that's likely to be the issue in one way or another, I think. You could try temporarily disabling the VSA subforum manager and see if things speed up, but it could just be the number of forums - vbulletin isn't really optimized for dealing with that.
I'll disable the VSA subforum manager to see if that makes a difference. I hope there's a work around for this and it doesn't get worse as I add more forums. If it gets worse due to the number of forums, I can't imagine what the memory would be like at 100k forums.

Best Regards
Maksi
Reply With Quote
  #6  
Old 07-23-2012, 06:18 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is an unusual number of forums, but I know the issue's been discussed before so someone else here might have more to say about it. Also you might post in the server configuration section on vbulletin.com, maybe the server guy has something to say about the issue.
Reply With Quote
  #7  
Old 07-23-2012, 06:25 PM
Maksi Maksi is offline
 
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
It is an unusual number of forums, but I know the issue's been discussed before so someone else here might have more to say about it. Also you might post in the server configuration section on vbulletin.com, maybe the server guy has something to say about the issue.
Good Idea. I posted in the VB4 Problems and Troubleshooting section. I should have posted in the Server Configuration section, I just don't want to post twice about the same issue on that forum. I might ask one of the mods to move the post that I posted if possible. Thank you for your suggestions kh99:up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07023 seconds
  • Memory Usage 2,225KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete