WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help guys....Website loads @ snail's pace if at all (26 posts)

  1. eventsplug
    Member
    Posted 5 months ago #

    Hi Guys,
    Can someone take a look at my site or provide me with possible reasons why my site is so slow?

    It takes forever to load if at all. In most cases, loading results in a 404 or other sort of error. I have tried my best with DreamHost support but got no where and the same response over and over again.

    This is my last try before dropping DreamHost.

    Thanks

    http://www.agathoslabs.com

  2. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    I'm sorry support wasn't able to help :/

    I checked your server and load is low (this is good) but even running WP-CLI (our command line WP tool) was slow, so that gives me a couple thoughts.

    1) You're on PHP 5.2. You should change to 5.3 or 5.4 as soon as possible. Go into your Panel and edit the domain. on that page you can change PHP versions.

    2) You have both All-In-One SEO and WordPress SEO installed and active. You should only have one. Also you have google-sitemap-generator, and if you're using WordPress SEO, that can make site maps too, so I would suggest removing AIOSEO and the site map generator and just using WordPress SEO.

    3) You're using an eCommerce tool on shared hosting. It's ... just not going to be great :/ Wish it was, but they use a lot of power. You really may just need a VPS to get the best performance out of that.

    I also went ahead an ran an optimize on your database and bounced apache, to clear out any possibly hanging processes. That took longer than I would have expected, so I suspect that was slightly related.

    That said, the error where it hangs for a long time and then gives you an 'Internal service error' means you're hitting our process watcher (basically you're using too much of the server), and that's really telling that you need a VPS or at least something with more oomph than a shared box.

  3. eventsplug
    Member
    Posted 5 months ago #

    Thanks for the response Ipstenu-DH. It's the most comprehensive I've seen from a DH staff lately.

    The conundrum with AIOSEO is I've used it forever and do not want to loose the page/post optimizations I've religiously worked on. That said, I must say I deleted AIOSEO from the site in last month (base on a DH's rep recommendation) and did not see a difference in performance so I re-installed it after 3 weeks.

    I see a tap in the control panel that says "enable VPS" with a free weeks trial.
    1) How much will VPS cost me in addition to what I pay now?
    2) Will this guarantee better performance?
    3) If I try it for a week and don't see changes in performance, will getting things back to the way it is be a problem?
    4) I also see MySQL VPS. Is this better than VPS in terms of performance?

  4. virendra930
    Member
    Posted 5 months ago #

    hii eventsplug,
    yes your side speed in google speed is just 55 you can add this code in your .htaccess file and you can try W3 total cache plugin also and if you do that place all your Javascript in footer area

    ## EXPIRES CACHING ##
    
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 week"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 2 weeks"
    </IfModule>
    ## EXPIRES CACHING ##
    ##############################################################################
    
    ###############################################################################
    ##GZIP
    <IfModule mod_deflate.c>
    # compress text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddType x-font/otf .otf
    AddType x-font/ttf .ttf
    AddType x-font/eot .eot
    AddType x-font/woff .woff
    AddType image/x-icon .ico
    AddType image/png .png
    
    </IfModule>
    
    <IfModule mod_headers.c>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary: Accept-Encoding
      </FilesMatch>
    </IfModule>
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
    </IfModule>

    Please backup your htaccess file before editing hope it will help you

  5. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    Sorry, I was off celebrating my wife's birthday yesterday so I didn't get anywhere near a computer!

    AIOSEO is a hit-or-miss product. I personally really love Yoast's work (his code is amazing) so I tend to recommend him because I know he's good, and I know he's responsive to serious issues of security or functionality. If you like AIOSEO and it works, use that instead, but the point was more not to use both :)

    I see a tap in the control panel that says "enable VPS" with a free weeks trial.
    1) How much will VPS cost me in addition to what I pay now?
    2) Will this guarantee better performance?
    3) If I try it for a week and don't see changes in performance, will getting things back to the way it is be a problem?
    4) I also see MySQL VPS. Is this better than VPS in terms of performance?

    1) Depends on the size of a VPS. they can be $15 a month or $60 - depends on how much memory you end up needing.

    2) No, nothing is a 100% guarantee :/ However it's the only way to get more memory, which I feel you do need. I think it's more likely to help than any fussing with plugins, though.

    3) Nope! Not a problem at all :)

    4) Generally no, you don't need a VPS for SQL unless your issue is slow SQL which I don't think yours is (when I went in via PHPMyAdmin, it was fast).

  6. eventsplug
    Member
    Posted 5 months ago #

    Thanks Ipstenu-DH,
    I got the free week VPS trial service yesterday and will check in a day or 2 to see how much memory I actually need. I know of at least one page that actually came up without an error though still slow. Can you check again and give me a prognosis of how you think the site is performing now?
    Thanks again.

  7. eventsplug
    Member
    Posted 5 months ago #

    Thanks for the code virendra930. Sorry for the late response. Please let me know how the code will help performance.
    Thanks

  8. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    If you go to https://panel.dreamhost.com/index.cgi?tree=vserver.usage&amp; you'll see the usage charts, which shows VPS spikes for load and memory.

    Go to https://panel.dreamhost.com/index.cgi?tree=vserver.settings&amp; and activate PHP cache (also turn off Jabber while you're there). Then go and edit your domain and tell it to use XCache.

    This will let you switch from WP Super Cache to W3 Total Cache, which ties directly into X-Cache for better dynamic caching.

    You're getting around 1000 visits an hour, by the way, which is pretty impressive that it was running as well as it did on Shared.

  9. eventsplug
    Member
    Posted 5 months ago #

    Thanks again Ipstenu-DH.
    I did all you suggested above. As for XCache, the only related field I could find in the manage domain section was "PHP XCache Support:" This box was already checked and could not be unchecked. Is this the field you referred to when you said "Then go and edit your domain and tell it to use XCache"?

    Question: I ran into DreamPress while doing all this. Will DreamPress help me in anyway? Its $20.00/month and it says "Your site runs on multiple VPS servers specifically tuned for WordPress and has multiple layers of caching." If I can get my site to be functional on this; it seems more economical. What's your take?

  10. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    Yes, that's what I meant when I said to use cache. it SHOULD turn itself on like that. Sometimes it doesn't.

    DreamPress... I love it. I mean, it's my primary job here at DreamHost (I'm the mastermind for DP support). The trick to it is that it's not great for everyone and you have to think about how dynamic a site is, and how many people are logged in.

    IF you don't have a lot of logged in users visiting the site, and IF you're not a massive online store, and IF you don't have forums, it works amazingly well for many people. Once you have a site that is very dynamic (like it reloads different content per page per user) it gets messy. Mind, ANY caching tool gets messy at that point, since the concept behind caching is stuff doesn't change.

    The reason I suggested a VPS first was looking at your site and your traffic, it's one of those things that I thought "This site may actually need to be on a Dedicated Server! Let's suggest a VPS first." If the VPS is okay but a bit slow, then DreamPress might be exactly what you want.

    One massive caveat to DreamPress? We let you install pretty much whatever theme and plugin you want. That does not mean they all work well with DreamPress and you may have to make some hard choices. We'll help you find any conflicts between DreamPress and the themes/plugins, but you get to decide which is more important to you.

  11. eventsplug
    Member
    Posted 5 months ago #

    Thanks Ipstenu-DH,
    I want to use DreamPress for my website and take advantage of the introductory offer. I'm glad you're the MM for DP support because I can rely on every advice you give.
    What should I do to deactivate the VPS trial I'm currently using and activate DreamPress?

  12. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    Two methods, each alike in dignity :)

    1) Cancel the VPS. This will send you BACK to shared. Then go to the Domains -> DreamPress tab and move the domain of your choice.

    2) Skip the cancelation of VPS and just go to DreamPress

    Personally I prefer #1 since that gets you to Base Zero, shared, which is always a good thing in case of a crisis!

  13. eventsplug
    Member
    Posted 5 months ago #

    Ipstenu-DH,
    I will have to use option #2 because, according to the rep, I cannot revert to a shared server until my sites' usage is 300MB or lower for 2 days.

  14. eventsplug
    Member
    Posted 5 months ago #

    Ipstenu-DH,
    I've converted to DreamPress and so far so good. Of course I have to reconfigure my FTP settings. I noticed in the "manage user" tab for the new DP user that SFTP rather than FTP is selected. Also, the select box that says: "disallow FTP" is checked. Is this part of the DP optimization? Should I leave it as is? and use SFTP? BTW what is the difference between both?

  15. eventsplug
    Member
    Posted 5 months ago #

    Are there other settings I can change to optimize DP or I'm I good to go?

  16. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    Sorry, I was at an archery competition this weekend (sunburnt and didn't come in last! Not bad!) so I didn't check in since Friday.

    Also, the select box that says: "disallow FTP" is checked. Is this part of the DP optimization?

    DP Security :) You can use (and we recommend!) SFTP, but not FTP.

    SFTP is FTP via Secure Shell (SSH) and is the safest file transfer we've got. SFTP Clients like Cyberduck are free. Transmit is pay for but I love it.

  17. esmi
    Forum Moderator
    Posted 5 months ago #

    WinSCP is basic looking but pretty good for anyone looking for a free Windows based SFTP tool.
    (Congrats on the archery competition too!)

  18. eventsplug
    Member
    Posted 5 months ago #

    Thanks guys (Ipstenu-DH & esmi) for the info.
    Since we're talking weekends,I saw Kathy Griffin in Napa Valley.....hilarious as always :-)

    Ipstenu-DH, a friend's son just took up the sport. Let's see how long that lasts.

    Think its time to close this one out. Thanks again for all your help Ipstenu-DH.

  19. eventsplug
    Member
    Posted 5 months ago #

    Hi Ipstenu-DH,
    I've got a problem. One of my plugin called "User Files" is not allowing my users download files uploaded into their accounts. I upload using FTP (now SFTP). Downloading files has never been an issue before DreamPress. Do you know what is likely the problem?
    Thanks

  20. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    Which plugin? No offense, but there are 28k plugins just in the WP repository alone, so if you give a link, I'm WAY more likely to be able to debug than with a name :)

    (The day people stop naming their plugins the same, I will be so happy).

    http://wordpress.org/plugins/user-files/

    Are they logged in to WP as they download? How big are the files?

    Also? You have wp-super-cache on. That doesn't play well with DreamPress and is not supported.

  21. eventsplug
    Member
    Posted 5 months ago #

    Sorry Ipstenu-DH,
    - "Which plugin?" http://wordpress.org/plugins/user-files/
    - "Are they logged in to WP as they download?" Yes, they must be logged into the website. When the users login, the files become visible.
    - "How big are the files?" They are mostly PDFs and approximately 66-925KB.
    - "You have wp-super-cache on." I will turn this off. Any recommendation of cache plugin to use in its stead? or do I forget about cache plugins?

    Thanks

  22. eventsplug
    Member
    Posted 5 months ago #

    Ipstenu-DH,
    Let me know if you need admin access to my website to troubleshoot.

  23. eventsplug
    Member
    Posted 5 months ago #

    Hellooooo Ipstenu-DH,
    See below for a message I from the plugin author:
    ", I have figured out the issue and have altered the plugin to work around it. I would recommend contacting your host to address the problem as they will need to change settings on the backend. The download link was failing because of the inability to retrieve the get variable because it had an extension (query vars failed also in case they ask). For example, the url file=34/file1.pdf would fail while file=34/file1.pdf&s=y would work since the url does not end with the .pdf extension. Oddly, this did not happen in a test with a standalone php file and only with wordpress variables, I suspect this is part of the "optimizations" for wordpress. Regardless the issue is fixed, careful updating the plugin in the future as this could cause it to break again."

  24. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    So that makes a little sense though DreamPress is supposed to look for ? and & in a URL and not cache it.

    I would think, in so far as DreamPress works, we can tack ?nocache on the end. That's a pretty common cache buster by the way (we picked it because other plugins use it too).

  25. eventsplug
    Member
    Posted 5 months ago #

    Ipstenu-DH,
    Can you fix the problem on the hosting/server end? The "fix" mentioned above is just a bandage. It will break when the plugin is updated. Thanks

  26. Ipstenu-DH
    DreamHost Rep
    Posted 5 months ago #

    Yes and no. The issue is that Varnish is doing what it's supposed to do :) Caching static files! We want it to cache pdfs, and the URL format of "file=" is way too broad and would cause us to break cache for everyone which would not be a great idea. Instead of causing a problem for one user, we cause a problem for ALL users. Similarly, allowing file_uploads (which is where it stores the files) would cause serious slowdowns for others.

    So I have to present you with some options!

    Options one - Open a ticket with DreamHost and ask us to make you a Custom VCL rule to allow those specific URLs to skip caching. If you do this, please remember to give us the FULL URL of one of the files :) That helps us craft a specific rule for you. It may take us a little while to perfect it, but we certainly can do that.

    Option two - Ask the plugin dev to do a couple things:

    First - Put in a &nocache option in the plugin to bust cache. This will allow for more than just DreamPress to handle the files, as that's a standard call :) It would obviate issues with most caching systems.

    b) Use pretty URLs instead of file=folder/filename to access the files. This will allow us (and everyone else) to customize rules a lot more easily.

    Option three - Ask the dev to make a custom filter so you can add on variables to the URLs. This is actually a good idea anyway, as it would allow you to put tracking analytics on URLs that don't call things like Google Analytics (since they're files and not PHP calls).

    Option four - If you're not using their insert code and instead are making the URLs manually, just add &nocache to the end. That one I don;t like at all, but hey, use cases are special things!

Reply

You must log in to post.

About this Topic

Tags