- This topic is empty.
-
AuthorPosts
-
September 19, 2014 at 7:09 am #183596
papdronning
ParticipantThe site marensblog.dk is tremendously slow and we keep using up all the memory on the server (32GB) – and I can’t figure out why. There’s a lot of visitors, but still …
I’ve tested it using GT metrix and fixeda couple of problems, but nothing did much difference.
Any ideas?
September 19, 2014 at 11:50 am #183625shaneisme
ParticipantWhen troubleshooting a WP site, it helps to disable all plugins and see if the problem goes away. If so, reactivate one at a time to see where the problem lies.
I’d say 90% of the time you can find it in there. The other 10% gets a little more complicated.
September 19, 2014 at 11:55 am #183626shaneisme
ParticipantAs a side note, I don’t feel it’s that slow… at least right now.
September 19, 2014 at 1:35 pm #183633__
ParticipantDoesn’t feel slow to me, either. But if it really is taking up that much RAM, then something is leaking memory. PHP shouldn’t be able to allocate the much memory in the first place, unless you’ve changed the default config settings.
Do you know that it’s the PHP process doing it? I would be suspicious of other processes on the machine. (I’m assuming it’s a private/ virtual private server, since you have that much memory to use at all.)
September 22, 2014 at 5:16 am #183973papdronning
ParticipantWhenever she posts and mayby 1000 users try to access the site simultaniously the site uses all the server’s memory. I’ve tested the site with the P3 plugin and that says that Jigoshop is the most demanding process. But it’s not really a possibility to erase that.
September 22, 2014 at 10:08 am #184121__
Participant“Jigoshop” meaning this? And is it actually using all that memory?
To clarify, however, WP plugins are not “processes.” They are PHP scripts, that run inside the PHP (or Apache) process. By default, PHP is configured to use no more than 128MB. Unless you changed PHP’s memory limit, it is highly unlikely that WP is responsible for using all that memory: it would cbe killed long before that.
As I said above, I would suspect other processes. Databases or in-memory caches (like memcached) are possibilities, but really, it could be any program you have running on the server.
If it is just WP under peak loads, I would say you need to look into caching responses, or possibly using a CDN. Did you try disabling plugins and restarting them one-by-one, as @shaneisme suggested?
September 22, 2014 at 11:21 am #184133papdronning
ParticipantHavn’t changed the limit.
It appears to be during peak loads.
It was also an issue before it was moved to the virtual server.
You write databases or inmemory caches. What would the solution be to this? The blog has like 30.000 comments and has been around a while, so the database is quite large. I’ve used some of the database clean-up tools, but don’t know how else to go about this.
Do you think it’ll help rebuilding the site on another, more lightweight, theme?
September 23, 2014 at 12:19 am #184188papdronning
ParticipantAnd it would call that bit even though you’re on the blog-pages and not the shop-pages?
How can I change this? Do I just delete the code or should it be altered into something else? (sorry …)
September 25, 2014 at 3:26 am #184700papdronning
ParticipantMayby this makes sense to some of you guys.
Now everything is loading super quickly. But when I test the site I get this: http://gtmetrix.com/reports/marensblog.dk/yuNWq8hx
There’s a 301 redirect that takes 6 seconds to load. What is that? I don’t have a 301 redirect set up anywhere.
September 25, 2014 at 12:28 pm #184748mcjohnst
ParticipantCheck your HTAccess and plugins for the redirect. Or any weird PHP header settings in the project files.
September 26, 2014 at 5:32 am #184786papdronning
ParticipantGot that fixed. Turned out it was W3 cache that had left some crap in the htaccess
Still uses up the memory on the server when she posts and visitor count peaks, though.
I have CDN, security, optimized images, imimized css. It loads extremely quickly and tests fine om gtmetrix. But uses up the memory and becomes slow when a lot of people sto by.
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.