1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Loading time of my site, can someone help me?

Discussion in 'Web Hosting' started by esi0411, Mar 5, 2017.

  1. esi0411

    esi0411 Registered Member

    Joined:
    May 22, 2010
    Messages:
    99
    Likes Received:
    6
    actually i dont know what is wrong with my site, the fist load is takes forever

    last black Friday i buy a semi dedicate hosting, the speck is bellow :
    serverspeck.png
    and my traffic :

    trafix.png

    Now , my site load is take 45 second (based on pingdom)

    pingdom.png

    GTMatrix and google speed test is fail to test
    gtmetrix-fail.png

    and CPU Host is in red flag
    Screenshot_9.png

    Any Suggestion? is this because the server hosting or my scrip (i modified a lot for the Wp theme )?
    if any one willing to test -- www. watchonline . red
     
  2. mark_iwfhosting

    mark_iwfhosting Newbie

    Joined:
    Feb 25, 2017
    Messages:
    13
    Likes Received:
    1
    Gender:
    Male
    First thing I would do is look at top and see what process is taking up all the CPU, is it a PHP process, database, something more... sinister?

    Litespeed supports caching WP both via a plugin and a without a plug in that should help. Opcache is available in PHP 5.5. Caching usually helps however it's done to reduce the amount of rendering the server has to do for the PHP scripts.

    Also 2 x CPU could mean a lot of things like just 2 cores and 2 GB of RAM sounds low for 14K sessions.
     
  3. dabandit

    dabandit Junior Member

    Joined:
    Feb 21, 2008
    Messages:
    141
    Likes Received:
    51
    Disable all of your plugins and enable one by one until you find the culprit.
     
  4. davids355

    davids355 Jr. VIP Jr. VIP

    Joined:
    Apr 25, 2011
    Messages:
    9,846
    Likes Received:
    7,467
    Home Page:
    You need a better hosting plan. Simple as that. Two cpu (and I'm guessing it's two virtual cpu) is not enough for that amount of traffic.
     
    • Thanks Thanks x 2
  5. Nitros

    Nitros Power Member

    Joined:
    Jan 30, 2009
    Messages:
    580
    Likes Received:
    298
    davids355 is right. Wordpress is pretty heavy script for that amount of traffic. I suggest trying some kind of cache plugin.
     
  6. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,073
    Likes Received:
    10,841
    Occupation:
    WHEREZ MA
    Location:
    BITCOINS AT?
    Home Page:
    Install Cloudflare and turn on long term caching.
     
  7. esi0411

    esi0411 Registered Member

    Joined:
    May 22, 2010
    Messages:
    99
    Likes Received:
    6
    Hi Everyone, Thanks Q for the replay, i just waked up from my sleep
    i suspect, there is some SQL Query that takes the resource. For every videos that played by visitors, my php save the 'flag' for counts the video ranking and for that, MySQL COUNT('record') and sort it, the record has more than two million records, now I try find another way to "ranking" process.

    for caching, m0vie site like mine is very dynamic, the embedded code always changes everytime, i try to avoid it
     
  8. papa_ji

    papa_ji Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 22, 2011
    Messages:
    1,060
    Likes Received:
    149
    Gender:
    Male
    Occupation:
    Founder of BlueAngelHost
    Location:
    Lahore, Pakistan
    Home Page:
    first disable ever useless plugin you have installed on your WordPress site, specially if you have any cache plugin and cron plugins and wordpress automated backup plugin disable them. if you don't have any of these then start disabling other plugins one by one and monitor cpu load. if there is no change after disabling the plugins then change your theme.

    However I also noticed that you have good amount of traffic so at this point I would recommend you to upgrade to VPS server in KVM Environment .

    Suggest VPS specs
    4 Core CPU
    6GB RAM
    SSD drive as per your diskspace usage
    Install it with whm + Cloudlinux + litespeed webserver


    Another thing
    there are few .htaccess tricks for cache use them instead of any plugin.
     
    • Thanks Thanks x 1
  9. sheldon911

    sheldon911 Newbie

    Joined:
    Jul 29, 2014
    Messages:
    38
    Likes Received:
    12
    Your page size is good, your requests are kind of high but I think your issue is multiple SQL Queries. I would not recommend caching or looking at other hosting options until you fix this. Even with an amazing host and great caching you are are putting way to much strain on CPU usage. I will typically use the below plugin to track database queries.

    wordpress.org/plugins/query-monitor/
     
    • Thanks Thanks x 1
  10. CyberHour

    CyberHour Jr. VIP Jr. VIP

    Joined:
    Apr 3, 2016
    Messages:
    647
    Likes Received:
    160
    Location:
    localhost
    Home Page:
    You have 2 issues to focus on:
    a) Your CPU cores (2) are just fine for your traffic however you guys are missing the most important part. Is not about the quantity but the power of those CPUs. If they are anything below 2.2Ghz better change your provider or upgrade your plan.

    b) Lack of proper optimization both server and website side
    -Apache optimization
    -MySQL optimization
    -Caches
    -etc etc
     
  11. esi0411

    esi0411 Registered Member

    Joined:
    May 22, 2010
    Messages:
    99
    Likes Received:
    6
    how do i know my CPUs power, it seem not listed anywhere,
    I suspect The biggest issue is MySQL, now i try another way to sorting the most video watched
     
  12. Aty

    Aty Jr. VIP Jr. VIP

    Joined:
    Jan 27, 2011
    Messages:
    5,957
    Likes Received:
    4,069
    Home Page:
  13. seohug

    seohug Jr. VIP Jr. VIP

    Joined:
    Feb 14, 2011
    Messages:
    337
    Likes Received:
    61
    Gender:
    Male
    Occupation:
    Automator
    Location:
    UK
    Home Page:
    WP does a lot of DB IO for the simplest tasks, I don't know many posts you have, but it's gets ugly without some format of caching. Else, get a better VPS or event consider a Dedicated host. Semi-dedicated is just another name for VPS.
     
    • Thanks Thanks x 1
  14. CenTex Hosting

    CenTex Hosting Jr. VIP Jr. VIP

    Joined:
    Nov 8, 2009
    Messages:
    1,907
    Likes Received:
    720
    Gender:
    Male
    Occupation:
    Founder/CEO
    Location:
    Austin, TX
    Home Page:
    are you on an openvz plan or KVM plan. If openvz could be that the server is just way over sold.

    What you could do is ask the host to test and bump the cores up on the server and watch what happens then bump the ram as well to find what config you need to run your site the best.

    There are some other tools that you could use that will let you know what you can do to your site to help it load faster.
     
    • Thanks Thanks x 1
  15. Sristy

    Sristy Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 17, 2010
    Messages:
    1,800
    Likes Received:
    478
    Gender:
    Female
    Location:
    In My Blog Network
    Home Page:
    Why don't you just contact your host and ask for solutions? They should be able to guide you. Sometimes shared hosting plans work better than having a VPS with low specs.
     
  16. esi0411

    esi0411 Registered Member

    Joined:
    May 22, 2010
    Messages:
    99
    Likes Received:
    6

    this is great idea, will ask for that, for the Plan, I dont know they said only "Cloud Linux", thxs q CenTex