NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page CPU/RAM server issues with images?

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search
9 members in live chat ~  
NamePros Design Contests NamePros Design Contests
Forum Sponsorship
Join in on the FUN! You can start an affordable design contest and pick from entries talented members submit or you can enter a design contest for a chance to win CASH PRIZES! What are you waiting for? Get started in the fun TODAY! - Banners, Logos, Mascots, and MORE! (Please READ the design Contest section rules Prior to starting or entering a contest)



Reply
 
LinkBack Thread Tools
Old 11-24-2010, 09:16 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 126
Dario D. is an unknown quantity at this point
 



CPU/RAM server issues with images?


Hi, all.
Does it use more server CPU or RAM if your site images call for the full URL's (like http://www.yoursite.com/folder/another_folder/image.jpg), rather than just "../image.jpeg"?

My webhost (Lunarpages) is incessantly complaining that my images are using more than 2% server CPU/RAM, saying they think it's caused by "the normal http access to the images". They've also mentioned "too many PHP calls" (Wordpress blog), but I don't think that's an image thing.

Any ideas?
__________________
My site: Alphaila.com
Dario D. is offline   Reply With Quote
Old 11-25-2010, 06:41 AM   #2 (permalink)
Account Suspended
 
James-A's Avatar
Join Date: May 2006
Posts: 395
James-A is an unknown quantity at this point
 



Have you protected your blog images using hotlink protection feature using your control panel ? If NOT then there are chances someone is linking your images hence you are facing such problem.
I don't think having such absolute path for images should increase CPU/RAM consumption for sure !!!
James-A is offline   Reply With Quote
Old 11-25-2010, 09:51 AM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 126
Dario D. is an unknown quantity at this point
 



Sorry, I forgot to mention that hotlink protection was the first thing Lunarpages said to try.
__________________
My site: Alphaila.com
Last edited by Dario D.; 12-01-2010 at 12:04 PM.
Dario D. is offline   Reply With Quote
Old 11-25-2010, 10:00 AM   #4 (permalink)
Account Closed
Join Date: Nov 2010
Posts: 1
Woooo is an unknown quantity at this point
 



Ofcourse it uses more resources, everytime it gives a new http call to get file, and otherwise it is local call process.
Woooo is offline   Reply With Quote
Old 11-25-2010, 10:45 AM   #5 (permalink)
NamePros Regular
 
abdussamad's Avatar
Join Date: Jul 2006
Location: Karachi
Posts: 794
abdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of light
 



If hotlink protection is active then the problem is with your wordpress scripts and not the images. You will need to optimize your wordpress installation. I hear some plugins can cause increased CPU load. I have also read recommendations in favour of installing the wordpress supercache plugin to reduce CPU load.
abdussamad is offline   Reply With Quote
Old 11-25-2010, 12:36 PM THREAD STARTER               #6 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 126
Dario D. is an unknown quantity at this point
 



I have some variant of WP Super Cache running, but CPU hasn't gone down. I suspect that it could be my theme (an unfinished, custom theme that's currently in development). My host informs me that "[wp_root_folder]/index.php" is what's currently wasting the CPU. Can a theme do this? (I've changed it, and have to wait now for Lunarpages to check the CPU)
__________________
My site: Alphaila.com
Dario D. is offline   Reply With Quote
Old 11-25-2010, 01:13 PM   #7 (permalink)
NamePros Regular
 
abdussamad's Avatar
Join Date: Jul 2006
Location: Karachi
Posts: 794
abdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of light
 



Pretty much every request of a wordpress blog goes through index.php so that does not help in narrowing down the problem. My suggestion is to go through your plugins because they tend to cause this. You will have to do this yourself. You could try and ask for help on the wordpress forums. Be sure to list your plugins. People there may help you narrow down the possibilities. Another approach would be to google each plugin name along with the word "CPU" to see if any plugin is being talked about as a CPU hog.

If nothing works you will have to admit that your site is outgrowing shared hosting and upgrade to a VPS or a dedicated server.
abdussamad is offline   Reply With Quote
Old 12-01-2010, 02:26 PM THREAD STARTER               #8 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 126
Dario D. is an unknown quantity at this point
 



I deactivated all of my plugins, but it didn't help. Could switching the images to use local addresses (instead of full http ones) relieve some index.php use?
__________________
My site: Alphaila.com
Dario D. is offline   Reply With Quote
Old 12-01-2010, 02:35 PM   #9 (permalink)
NamePros Regular
 
abdussamad's Avatar
Join Date: Jul 2006
Location: Karachi
Posts: 794
abdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of lightabdussamad is a glorious beacon of light
 



As I said before the images are not the cause of the problem. Images are static files and they don't go through index.php. Images take up next to no CPU power to be served over the web. Your only option is to to admit that your site is outgrowing shared hosting and upgrade to a VPS or a dedicated server. An alternative is clustered hosting like the one offered by imountain.com.
abdussamad is offline   Reply With Quote
Old 12-03-2010, 12:34 AM THREAD STARTER               #10 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 126
Dario D. is an unknown quantity at this point
 



Thanks for the tips. I forgot to mention that several Lunarpages techs insisted that at least the RAM usage was being affected by my large images having to be pumped to many people at once. (I use a LOT of images on my trafficked pages)

Regarding hosting, yes, I'm looking into something new (I've looked at some cloud hosting companies).
__________________
My site: Alphaila.com
Dario D. is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
34 Domain Collection-Clients,Students,Patients First!!! ausername Domains For Sale - Auctions 0 08-22-2010 07:33 PM
Images uploaded to server not loading, but all other files work. I-Got-IT! Web Hosting Discussion 5 12-17-2008 12:11 AM
soooo many yahoo's redhippo Domain Name Discussion 5 07-12-2005 11:26 PM
Dedicated Servers from just £45 $90 + [UK] 1 TB Data Transfer P4 3.0GHZ Only £119 blackicehosting Web Hosting Offers 0 07-12-2005 06:24 PM
Unlimited Support Tickets For Your Clients TSGradyR For Sale / Advertising Board 3 02-23-2005 05:00 PM

 
All times are GMT -7. The time now is 07:15 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger