PDA

View Full Version : I need help with memory on my server for my forum


Maksi
07-23-2012, 05:37 PM
So last night I ended up getting this error message on my site MidGuide.com (http://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/showthread.php/404788-I-need-help-with-memory-on-my-server-for-my-forum

Please help. This is the site: MidGuide.com (http://midguide.com)

Thanks

kh99
07-23-2012, 05:52 PM
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.

Maksi
07-23-2012, 06:00 PM
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:

kh99
07-23-2012, 06:08 PM
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.

Maksi
07-23-2012, 06:16 PM
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

kh99
07-23-2012, 06:18 PM
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.

Maksi
07-23-2012, 06:25 PM
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: