Why my site is so slow?

26 replies
I have a drupal 7 site and I've checked all forum's recomendations to improve performance.
1) I'm using drupal cache and compress to gzip css and js files
2) I'm using boost module
3) I'm using APC to improve PHP cache
4) I'm using CloudFlare CDN

Even with this improvements my site is still slow?
There's any problem with MySql?
#site #slow
  • Profile picture of the author datastyling
    I would advice you code everything from scratch than using any available framework or CMS...i have a website that has 100,000 members but the site is still working normally even-though it is hosted in just a normal shared hosting account.
    Signature

    BOOK DESIGN & LAYOUT / WEB DEVELOPMENT
    WEBSITE: www.datastyling.com (book design & layout - $95 only) www.thorhosting.co (hosting with free fully functional website) www.infoph.com (open internet directory, jobs, classifieds & news)
    SKYPE: datastyling
    FACEBOOK: https://www.facebook.com/bookdesignservices

    {{ DiscussionBoard.errors[9072210].message }}
  • Profile picture of the author David B
    Hard to say without more details. Have you got logs with timings for different parts of your code? That would help you narrow down areas of focus.

    Have you reviewed Garbage Collection (gc ) logs? Use settings like java -XX:+PrintGCDetails -Xloggc:logs/gc.log ... to get details about how your JVM is handling memory.
    {{ DiscussionBoard.errors[9072766].message }}
    • Profile picture of the author greenPanda
      I recommend checking the database. CMS can be really messy when it comes to saving data. You probably have a lot of reduntant records.

      But as said above, you should give more information - logs and such.
      {{ DiscussionBoard.errors[9072831].message }}
  • Profile picture of the author glampe
    Is it a shared hosting site? If so, I would guess the ISPs database server is the cause. Drupal and Wordpress make a lot of database calls that can really slow things down.
    {{ DiscussionBoard.errors[9072996].message }}
  • Profile picture of the author CSmitty
    There are speed test sites that show you how fast your site is loading and what elements of your site are taking the longest, you should find and use one.
    {{ DiscussionBoard.errors[9073350].message }}
  • Profile picture of the author SJL
    I can't honestly give you an answer without having the address, but to get started you should run thru PageSpeed Insights
    {{ DiscussionBoard.errors[9074820].message }}
    • Profile picture of the author lluporini
      Starts with the basics.

      You say the site is slow. Well, let's measure that up to indentify where the problems are.

      That process is called profiling.

      You can use Chrome for example to begin digging. Use the developer tools to watch for the loadup time of your resources and see what's taking time on the whole request/response roundtrip. Then from there go digging deeper.

      Come back with more details so we can help you.

      Best,
      Luis
      {{ DiscussionBoard.errors[9075342].message }}
  • Profile picture of the author bawany
    try the "yslow" addon for firefox abd chrome.

    it will give you all the reasons why its slow, and how you can fix it
    Signature
    World Web is switching to Smartphones, IS YOUR WEBSITE RESPONSIVE AND READY FOR IT?

    UPDATE YOUR WEBSITE, GET RESPONSIVE NOW!
    {{ DiscussionBoard.errors[9077947].message }}
  • Profile picture of the author tutu8
    normally the database is the slowest part. How much ram do you have? How big is the db?

    as to page loading, try to set expiry date of css and js files as well.
    {{ DiscussionBoard.errors[9109496].message }}
    • Profile picture of the author Jason Stewart
      There are many, many reasons a site can be slow. Instead of just taking guesses in the dark, you'll have to gather some performance metrics. I suggest newrelic. It's simple to set up, and you can drill down into and see exactly what your slow requests are doing so that you can make an informed decision on how to fix it.
      Signature

      Beat the competition with better long tail keywords:

      http://keywordstreamer.com

      {{ DiscussionBoard.errors[9114802].message }}
  • Profile picture of the author saqiiii1
    you can cache your js and css file so that way it take one time load whenever a user visit you site it'll increase your website speed.
    {{ DiscussionBoard.errors[9116985].message }}
  • Profile picture of the author abdulwahab1290
    Check your hosting. Most probably your hosting issue.
    {{ DiscussionBoard.errors[9116991].message }}
  • Profile picture of the author jeffatrackaid
    To optimize your site, you have to understand where the problems lie. Generally I break this down into 3 areas:

    Backend
    Your server hardware, application stack (e.g. apache/php/mysql), and the application itself (Drupal).
    Frontend
    This deals more with site design and layout. How many HTTP requests are needed, how js/css is loaded and similar design oriented items.

    Delivery
    This is more about the network used to deliver your site, e.g. cloudflare or similar CDN services and DNS lookup speeds.


    Testing
    The trick to site optimization is to test with the right tools. I start with general tools like:
    WebPagetest - Website Performance and Optimization Test
    You can quickly get an overview of where bottlenecks may reside.

    Things like Time to First Byte, HTTP Compression and expires headers are controlled on the backend.

    Things like having 15 CSS and 20 JS files on your page would be on the frontend.

    Slow DNS would be a delivery/network issue.

    Getting Dirty
    Once you have an overview, you will need more detailed tools to find the bottlenecks.

    Backend Tools
    On the backend on server tools like top, mytop, sysstat, apachetop, mysqltuner and similar command line utilities (at least on Linux) will help at the application stack level

    Once you move into your code itself, things like NewRelic can help you pinpoint specific slow functions or MySQL statements.

    Front End Tools
    On the frontend, I use Firebug, Pagespeed and similar tools. These are built right into your browser and can help you spot blocking css/js.

    Webpagetest.org also does a good job of spotting poorly optimized images. Tools like Yahoo's smushit as well as pngcrush, ImageMagic and jpegtrans can help here.

    Delivery Tools
    Webpagtest.org, Pingdom, DNSStuff, Watchmouse can all help you debug connection and DNS timing issues. This is usually the least problematic unless you have incorrectly configured DNS.

    Where to Start
    Usually there are improvements to be made in all 3 areas. As you improve one area another may become the bottleneck. The process is iterative and can be time consuming.

    You should let the testing tell you where the most problematic areas are, but I also recommend you start with your strengths.

    As a Linux sysadmin, I start on backend issues as I can quickly knock out problems in Apache, PHP, and MySQL, especially if they've not been optimized previously. I can often get cache headers, compression and time to first byte problems fixed in a few hours of work and these can have huge improvements on site speed.

    Test Tool Caution
    Just a final note about various test tools.

    While most provide some type of score or grade, I find the scores somewhat useless. Many tools average these scores over all assets on your site - some may be on 3rd parties that you do not control. So pay attention to details. For example, getting a "C" on compression or caching could be due to 3rd party tracking codes. So pay attention to the details.

    Also, note that these tools typically make just 1 page request. Make sure you do a few tests to get an idea of the average result. You don't want to start optimizing using a test that may not be representative.

    Better monitor tools, Neustar/Gomez/NewRelic, offer paid solutions so you can get averages over time and from different locations. If performance is critical to your business investing in these during the optimization work can be useful.
    {{ DiscussionBoard.errors[9117292].message }}
  • Profile picture of the author Sgt Kraut
    You could also reduce the image size with Yahoo! Smush.itâ„¢.
    {{ DiscussionBoard.errors[9117737].message }}
  • Profile picture of the author RDB85
    I would look at your website in a speed tester first. Try minifying your files and if its your database I am sure there is something to minimise this.
    {{ DiscussionBoard.errors[9127063].message }}
  • Profile picture of the author James 0
    Do you have lots of images loading on your website? That could slow down your site.
    {{ DiscussionBoard.errors[9128593].message }}
  • Profile picture of the author Appdevelopers
    Hi,
    I had a really slow site so I moved to hosting my files in cloud using amazon. AWS services are a great way of creating a service as pay as you go.
    {{ DiscussionBoard.errors[9160763].message }}
  • Profile picture of the author nettechindia
    Some time it occurs due to the coding error in it.
    {{ DiscussionBoard.errors[9194662].message }}
  • Profile picture of the author jminkler
    site is slow yet you have drupal links in profile? Whats wrong here?
    {{ DiscussionBoard.errors[9207242].message }}
  • Profile picture of the author brainvireinfo
    You can use some good tools which can help you to make your site faster - Pingdome is good website where you can check your website
    {{ DiscussionBoard.errors[9222934].message }}
  • Profile picture of the author martinluther
    https://drupal.org/node/131189 Check this out.. This is the community conversation of Drupal. If the problem still persist, concern to your website developer.
    {{ DiscussionBoard.errors[9264195].message }}
  • Profile picture of the author wondercoder
    You should check your images whether its optimized or not and if you are using database for dynamic contents check the optimization of sql statements
    {{ DiscussionBoard.errors[9264858].message }}
  • Profile picture of the author Edward Floyd
    Not many people have mentioned hardware here. Are you on shared hosting or a private VPS? It may be the actual hardware you're hosting your site on which could be slow, and not the content of your site.
    {{ DiscussionBoard.errors[9281524].message }}
  • Profile picture of the author webtraf101
    What type of hosting you are using? server also one factor why your site is slow..
    {{ DiscussionBoard.errors[9283063].message }}
  • Profile picture of the author kingjpm
    Are you displaying any third party ads and/or feeds? HTTP requests to other sites can slow down the load of the page. Use Firebug's NET panel to see what is taking so long to load. Click "All". You could always use JavaScript to load a feed last into your DOM.
    Signature
    RogueDen.com
    {{ DiscussionBoard.errors[9283455].message }}
  • Profile picture of the author davidnavarro85
    First of all check your network connection and also the backend and the hosting.Some time it will taken more time for loading.
    {{ DiscussionBoard.errors[9629638].message }}

Trending Topics