The MU forums have moved to WordPress.org

Wordpress is Slow (45 posts)

  1. CoreyCampbell
    Member
    Posted 16 years ago #

    K I've tried tons of things but have no clue why wordpress is being slow. I've tested my server, it appears to be normal my other pages that don't have wordpress load in seconds.

    But when trying to access my site it seems as if the browser is taking forever to connect to wordpress. Once it actually connects the page loads almost instantly.

    I'm not quite sure where to start so any help would be much appreciated.

    My wordpress site is: http://blogs.mkcproductions.com/

    This page loads at the appropriate rate:
    http://videos.mkcproductions.com

    If anything looks weird it's probably because I'm still working on the site theme... but you should still get the feel of how slow it feels.

  2. lunabyte
    Member
    Posted 16 years ago #

    Is object cache enabled?

    What kind of hosting is this on?

    Is it on shared, a VPS, or a dedicated server?

    If a VPS or dedicated, how much RAM is available?
    How fast is the processor?
    What's the load on the server?
    What does a top tell you?

    Is there anything in the error logs pertaining to this site?

    Is there any additional programming, custom queries, additional script files, image files, or anything else being loaded?

    Is anything being loaded from an outside source that isn't on this specific domain (or subdomain as the case may be)?

    I see a page size of 161k, which isn't awful, but could be a little better.

    That's a 28k document size (the actual size of all the text presented), 63k of images, 28k of scripts, and 42k of CSS.

    How much "crap" is in mu-plugins that isn't needed? Every little bit stacks up.

    That should give you something to roll with, for starters.

  3. dsader
    Member
    Posted 16 years ago #

    http://blogs.mkcproductions.com/wp-content/mu-plugins/MyCSS/my.css

    Try it without this, mycss, plugin enabled.

  4. andrea_r
    Moderator
    Posted 16 years ago #

    My bet is on the MyCSS plugin. I tried one and everything just horked right down.

  5. suleiman
    Member
    Posted 16 years ago #

    dsader, do you really think the MyCSS plugin pack would make that much of a difference?

    It's just loading an extra stylesheet. And my stylesheet is under 2k.

  6. CoreyCampbell
    Member
    Posted 16 years ago #

    This is all I have in the mu-plugins directory:
    # bullet_arrow_down.gif
    # dashboardswitcher.php
    # delete-blog.php
    # friend-list.php
    # global-categories.php
    # invites.php
    # misc.php
    # mubar.htm
    # pluggable.php
    # profile-picture.php
    # thumbnails.php
    # widgets.php
    # widgets...
    ---# README.txt
    ---# author_profile.php
    ---# friends_list_widget.php
    ---# gsearch.php
    ---# recent-posts-mu.php
    ---# rss.png
    ---# widgets.php

    Where is object cache? Is it supposed to be on?

    As for my server stuff. I don't think it's directly related. Other pages that use practically the same theme but do not have wordpress integrated run fairly fast.

    I removed the MyCSS plugin... I don't see much of a change.

  7. dsader
    Member
    Posted 16 years ago #

    suleiman, in CoreyCampbell's case, my browser reported a server error on the Mycss.

    I'm guessing a permissions issue.

    I use MyCSS and, no it has no noticeable unintended effects.

    UPDATE:
    CoreyCampbell's page loads normal to me now.

  8. CoreyCampbell
    Member
    Posted 16 years ago #

    It loads normal but it takes FOREVER to load. I've been talking with my web host right now about my server speed but I still think it's something within Wordpress that is causing the lag.

    I've gone through and optimized the database but it still is taking quite some time to go to ppls blog. Do you think that maybe my .htaccess file might be playing a role in this? I'm not sure if it's configured right:

    RewriteEngine On
    RewriteBase /

    # Rewrite http://www.domain.com to domain.com
    # RewriteCond %{HTTP_HOST} ^www\.(.*)
    # RewriteRule ^(.*) http://%1/$1 [R,L]

    #uploaded files
    RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Wordpress's default settings were not working correctly in my first installation and this is all I could get to work.

    Thanks guys, this is driving me absolutely nuts.

  9. demonicume
    Member
    Posted 16 years ago #

    def not myCss.

  10. lunabyte
    Member
    Posted 16 years ago #

    You're grabbing at straws with htacces, really.

    Resources, caching, custom code.

    If you're on shared hosting, that's one issue.

    Object Cache not being enabled would be another.

    Again, this is MU, and not normal WordPress, or anything else. It is server level software and needs server level resources.

  11. drmike
    Member
    Posted 16 years ago #

    Same solution as regular wordpress. Find what's causing the issue. Try copying out the mu-plugin and plugin directories and replace them with empty ones. See how it loads then. If it loads fine, then it's an issue with one of the plugins. Start with the basic install and then add stuff back in one at a time.

    If you're running 1.2.2 or higher, remove the widget.php files as it's been moved into core. I'd also put the widget files within the mu-plugins directory and not a subdirectory. (rename them with 'widget-' if you want to keep them straight.)

  12. CoreyCampbell
    Member
    Posted 16 years ago #

    K Lunabyte. Like I said. I'm checking with my hosting and their technicians are helping me out. I just wanna make sure that it isn't anything within wordpress.

    Drmike, I'll try your solution. I don't have anything in just the regular plugins folder.

    And how do I make sure object cache is enabled?

  13. lunabyte
    Member
    Posted 16 years ago #

    While there are tons of posts on enabling object cache, and it's even on the codex...

    Add to wp-config.php, right above where it says stop editing at the bottom:

    define('ENABLE_CACHE', true);
  14. CoreyCampbell
    Member
    Posted 16 years ago #

    I've already tried doing that. Same results.

    I also tried emptying all my mu-plugins.

    I guess I'll just wait for my host now.

  15. lunabyte
    Member
    Posted 16 years ago #

    That's what it is pointing to, if removing all plugins and turning on caching didn't help.

    Here's a shot in the dark... Could it be the theme?

    What happens with a stock theme, like default or home?

  16. CoreyCampbell
    Member
    Posted 16 years ago #

    Same... thing. I've tried it with the lowest quality themes and a theme with all css removed. Still takes awhile. Ugh...

    Thanks everyone for your help.

  17. lunabyte
    Member
    Posted 16 years ago #

    Starting to look like it being time for more powerful hosting.

    Probably not what you want to hear, but if it's still running like ass with the default theme, and all plugins turned off, that doesn't leave much room for interpretation.

  18. CoreyCampbell
    Member
    Posted 16 years ago #

    Any one that you suggest that has a good price... right now would be the best time to change because my year of hosting ends in 23 days. ;)

  19. andrea_r
    Moderator
    Posted 16 years ago #

    futurehosting.biz

    Where are you now?

  20. CoreyCampbell
    Member
    Posted 16 years ago #

    globat.com

  21. CoreyCampbell
    Member
    Posted 16 years ago #

    is this your business? and are these prices monthly?

  22. andrea_r
    Moderator
    Posted 16 years ago #

    Not my business, but where I just moved to. And yeah, that per month.

    Worth every penny so far. It was recommended by soemone else here. there's plenty of hosting threads.

  23. CoreyCampbell
    Member
    Posted 16 years ago #

    K I'll look around. This is interesting what packaged deal do you have? I'm only 19 so I don't get tons of money, yet. But this looks interesting.

  24. dsader
    Member
    Posted 16 years ago #

  25. andrea_r
    Moderator
    Posted 16 years ago #

    Well start selling lemonade or something, because if you;re running MU on a shared server, at some point you'll either have to move to something more expensive because you've run out of resources or the host will boot you off.

    (Man, my son is 19. I feel old.)

    The plan I have now runs about $45/month. I take donations from users and do a little paid work to pay for it, plus I have a couple of my own personal blogs with ads that generate a good chunk of the funds.

    (And did you eat yet today? Is your laundry done? get a haircut, willya? ;) )

    I think you have my email already if you need it.

  26. andrea_r
    Moderator
    Posted 16 years ago #

    Oooo... I had a look...
    There'sd almost 300 extra lines of code being spewed out in the source of the page:
    - a styelsheet
    - a script for a dropdowm menu it looks like

    Both of these are appearing in the body, not the head, so errors ensue.

  27. CoreyCampbell
    Member
    Posted 16 years ago #

    Yes. I'm still working on fixing the errors... but even as I remove all that I'm not getting a change in speed.

    Andrea_r: I did eat yes. My laundry is completely done. My room spotless. And funny enough... I just got my haircut 2 days ago. lol

    And dsader... i didn't know that.. and i think
    that might be my problem any idea why it's doing that? Because It loads... looks as if it's going to be done... reloads...

    That's why i thought it was something wrong with my .htaccess as if a loop was constantly being repeated..

    I'm only running like 5 blogs I think. So I hope MU is that much of a resource hog... :$

    I do have friends that are helping me run this... it's our group website.. so they help pay.

  28. dsader
    Member
    Posted 16 years ago #

    CoreyCampbell,

    Sorry, I don't know why the page loads multiple times. Never seen it.

    I get about:blank from javas but that's it for unwanted activity.

    Check activity on other pages(single, search, archives etc.)

  29. dsader
    Member
    Posted 16 years ago #

    I'd guess mubar plugin, then.

  30. CoreyCampbell
    Member
    Posted 16 years ago #

    Hmm... I'm almost definite that's my problem too... i just makes sense... what are you using to check... does http://blog.mkcproductions.com do the same as apposed to http://blogs.mkcproductions.com?

About this Topic

  • Started 16 years ago by CoreyCampbell
  • Latest reply from bechster