Hosting issues for a site with lot of images

by jkiley
9 replies
Hi,

I have a site with lot of images and thousands of links on internet going to those images. This site gets lot of traffic (about 4-6K users a day).

I am using cloudflare.com's CDN to help with some of the issues, but my dedicated server is having tough time handling the traffic. I am wondering what can I do to to minimize issues with hosting image site.

Anybody here?
#hosting #images #issues #lot #site
  • Profile picture of the author Clintin
    You really didn't explain what is going on, you said you are having issues but what are the issues that you are having? What is your website?

    If you site is running slow, see if you can disable CloudFlare and see how it runs then. What is your Dedicated Server specs? Who are you hosted with?

    It also may be a script that you have on the site if it is moving slow, a dedicated server should be able to handle 6k visitors.
    Signature

    l

    {{ DiscussionBoard.errors[7509183].message }}
    • Profile picture of the author jkiley
      Originally Posted by Clintin View Post

      You really didn't explain what is going on, you said you are having issues but what are the issues that you are having? What is your website?

      If you site is running slow, see if you can disable CloudFlare and see how it runs then. What is your Dedicated Server specs? Who are you hosted with?

      It also may be a script that you have on the site if it is moving slow, a dedicated server should be able to handle 6k visitors.
      CPUs are at 100% usage for a long time. The reason is to serve all those images hosted on the site. There are thousands of links out there which are either pointing to these images or to user profiles, etc. So, as those sites get traffic and their pages are refreshed, it puts pressure on my server. Site is squiby.net. I have turned off cloudflare, and that has some/no effect on it. I am renting elite linux server from hostgator. Dual Quad Intel Xeon E3-1265L 2.5GHz (8CPUs), with 8GB of memory. Memory is fine. Site is CPU intensive mostly because of those images.
      {{ DiscussionBoard.errors[7509264].message }}
  • Profile picture of the author seasoned
    One of the biggest old problems of hosts is graphics. The reason is that what happens is that when a person goes to a page, it only downloads HTML! The browser then goes through each link and requests THAT. That drives the hits up. going to a page with 6 new graphics creates SEVEN hits! THEN, if those graphics are LARGE, it can take a LONG time, and eat bandwidth.

    Frankly it is MY policy, and I suggest YOU do the same, to keep pages under 3 seconds. You should also display NON scaled graphics! By THAT, I mean SOME sites may take a 3" x 5" graphic, and have html render it as 1" x 1.5". OK, that works. It may look the same. WHAT is wrong with it? You are now downloading TEN times as much and YOUR server and the visitors browser are burning resources! ALSO, consider resolution. Do you REALLY need the resolution on the site? AND, if it is layered, MERGE THEM! If it is animated, have fewer FPS. If you can use text and color, DO! You can EASILY make these changes, speed u your site, lower costs, etc... If you are REALLY having 3-6K users a day, this is a BIG deal! IMAGINE! A 6K graphic on your page, that you don't need, means you have over 1GB extra bandwidth that month for NOTHING! If you have to pay....

    Steve
    {{ DiscussionBoard.errors[7509519].message }}
  • Profile picture of the author WillR
    Get all of those images onto a CDN such as Amazon S3. Get them off your server. That will take a big strain off your server.
    {{ DiscussionBoard.errors[7509791].message }}
  • Profile picture of the author fun
    you should optimize server, database, codes, etc. 4-6k visits a day is not a big traffic at all even at a shared hosting account. your server is able to handle over1 million page views a day.

    i have checked your site. the images are processed by php engine. you should check your httpd or htaccess file or server control panel if there something starting with "AddHandler"
    {{ DiscussionBoard.errors[7510315].message }}
  • Profile picture of the author Dennis Gaskill
    Why are you letting people link to the images on your server? Is that why it's gaining popularity? Or are they link buttons to your site? If you're just hosting images for other people and aren't getting anything out of it turn on hot link protection and cut them off.
    Signature

    Just when you think you've got it all figured out, someone changes the rules.

    {{ DiscussionBoard.errors[7510329].message }}
  • Profile picture of the author moreno
    Try to host your images on amazon s3 or some external service , get the trouble out of your server!
    {{ DiscussionBoard.errors[7510575].message }}
  • Migrating the images to some other external Content Delivery Service (i'll suggest Amazon S3) will certainly ease the server's workload. Could you tell us the specifications of your Dedicated Server?
    Signature
    Success doesn't come in an instant, just like Rome wasn't built in a day.
    Want to grow your forum? Get help from GrowMyForumCommunity.com
    Order your Free Forum Evaluation Report today.

    Use 10% discount code: Z6L9UTJP8J. With 100% Money Back Guarantee!
    {{ DiscussionBoard.errors[7510728].message }}
  • Profile picture of the author seasoned
    6K per HIT=180000 over a month
    10Mbps=~2,592,000,000,000 a month
    That means 14400000 hits a month or 480,000 a day
    6000 HITS/day(about 180000a month) with only 6K =1/80th of 100% of the bandwidth

    Hopefully, they will view more than 1 page and, if you have graphics, you almost certainly will have more than 6K per page. GRANTED, they make networks that are over 100 times as fast now, but almost no host is going to have anything close to that going to your system. They make ones 10 times as fast, but THAT usually isn't pure either. ALSO, this doesn't take into account downloads and other load, or memory or CPU speed, or switching time. BESIDES, it assumes all access is spread out, and it WON'T be! There will likely be several spikes and valleys.

    So I would say that you should stay away from shared systems. Besides, a problem like this will have a shared host SHUT YOU DOWN!!!!! And they LITERALLY kill first and ask questions later. It could be HOURS before you are notified.

    As for the graphics being fed through PHP, they should be fed DIRECTLY! It is bad enough that the HTTP server has to process them, but IT is optimized for that, and nothing can make things better, since it will be ADDING work. As for the CDN, etc? as I said earlier, doing such a thing WOULD reduce the load on your server, if they are loaded DIRECTLY! If the PHP on your system loads from THEM, it will INCREASE your problems, starting wth DOUBLING the bandwidth usage. If they are loaded normally from the browser, the bulk of the load will shift to the CDN.

    Steve
    {{ DiscussionBoard.errors[7511071].message }}

Trending Topics