hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Help with server upgrade -- website loads slowly
Reply

Web Hosting Discussions on all aspects of web hosting including past experiences (both negative and positive), choosing a host, questions and answers, and other related subjects. If your service is unavailable, please click here.
Forum Jump

Help with server upgrade -- website loads slowly

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-04-2009, 04:14 PM
mukunig mukunig is offline
New Member
 
Join Date: Feb 2006
Posts: 4

Help with server upgrade -- website loads slowly


We have an ecommerce website php/mysql that runs slowly and is sometimes not very responsive. We have been on the same server since January 2006, and think it is time to upgrade. Here is our current server:

Athlon 64 2800
1GB Ram
Raid 1

We have a lot of issues with the site loading slowly and not responding well. Our code is not well optimized, and that is something we are working on to limit mysql queries. We are also putting a lot of effort into SEO and hope that web traffic will go up. Hopefully improved sql queries and increased site traffic will be a wash on server load.

What would most likely make the most difference to our site's performance? We will upgrade to at least a dual core cpu with 2 GB RAM.
Would we gain more if we got a quad core cpu or added more RAM? In our server stats now the cpu is often overloaded when the site is running slow, but I understand that could be any number of things (RAM, I/O), and not just cpu speed. Is that correct?

Thanks for all the help.

Reply With Quote


Sponsored Links
  #2  
Old 09-04-2009, 04:16 PM
MikeDVB MikeDVB is offline
Web Host Extraordinaire!!!
 
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,333
Usually it is MySQL performance that causes CPU usage - increasing the RAM and optimizing MySQL should help quite a bit.

__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
http://www.mddhosting.com/ - Providing Quality Services since 2007

Reply With Quote
  #3  
Old 09-04-2009, 04:37 PM
dbbrock1 dbbrock1 is offline
Web Hosting Master
 
Join Date: Jul 2002
Posts: 2,240
Ya I agree with the RAM upgrade. 1GB is hardly anything, especially for a site heavy on SQL connections. Try and upgrade to 2GB and see if that doesn't help you any.

__________________
Download my eBook + Videos: Starting your own successful web hosting company.
Learn from a web host with 7 years of experience.


Reply With Quote
Sponsored Links
  #4  
Old 09-04-2009, 04:37 PM
mukunig mukunig is offline
New Member
 
Join Date: Feb 2006
Posts: 4
Quote:
Originally Posted by MikeDVB View Post
Usually it is MySQL performance that causes CPU usage - increasing the RAM and optimizing MySQL should help quite a bit.
Is there a big difference in performance of dual or quad core servers? It sounds like upgrading RAM would make the biggest difference, and we shouldn't worry too much about the cpu?

Thanks

Reply With Quote
  #5  
Old 09-04-2009, 04:38 PM
MikeDVB MikeDVB is offline
Web Host Extraordinaire!!!
 
Join Date: Dec 2007
Location: Indianapolis, Indiana USA
Posts: 14,333
CPU can be important, it depends on how much RAM you have, how much you can optimize MySQL and your queries, and if you are doing anything else on the server that is CPU intensive.

__________________
Michael Denney - MDDHosting, LLC - Professional Hosting Solutions
LiteSpeed Powered - Shared, Reseller, Semi-Dedicated, and VPS
For high-end shared accounts ideal for business, check out our Semi-Dedicated offerings!
http://www.mddhosting.com/ - Providing Quality Services since 2007

Reply With Quote
  #6  
Old 09-04-2009, 04:54 PM
JulesR JulesR is offline
Disabled
 
Join Date: Mar 2008
Posts: 630
RAM is usually always the first bottleneck in any server that operates multiple services (read: web, database, mail). In your case, with only 1GB RAM, it's fairly easy to hit this bottleneck when you consider that you're running an eCommerce site. My advice would be to upgrade this first. How big is your eCommerce database?

Upgrading to at least a dual core processor would almost certainly improve things further, since you're distributing the workload further, which should make things more responsive.

Reply With Quote
  #7  
Old 09-04-2009, 05:35 PM
mukunig mukunig is offline
New Member
 
Join Date: Feb 2006
Posts: 4
Quote:
Originally Posted by JulesR View Post
RAM is usually always the first bottleneck in any server that operates multiple services (read: web, database, mail). In your case, with only 1GB RAM, it's fairly easy to hit this bottleneck when you consider that you're running an eCommerce site. My advice would be to upgrade this first. How big is your eCommerce database?

Upgrading to at least a dual core processor would almost certainly improve things further, since you're distributing the workload further, which should make things more responsive.
I think I will upgrade the RAM, although the price to add RAM to my current server is the same as upgrading to a Core2Duo E8400 3.0GH with the similar upgraded amount of RAM, so I may as well upgrade servers. Questions are will 2 GB of RAM be enough, although i guess I will upgrade to 2 GB and see if we need more. My other questions is since I'd be switching servers is it worth going to the Core2Quad Q9450 2.67GHz for only about $20 more a month. I'm happy with my hosting company, so plan to just upgrade with them.

The ecommerce database is 400 MB

Reply With Quote
  #8  
Old 09-04-2009, 05:41 PM
JulesR JulesR is offline
Disabled
 
Join Date: Mar 2008
Posts: 630
The more RAM you can afford, the better, since it's likely this is the first server resource you'll reach the limit of and possibly exceed to the point where you begin to swap to disk. Remember, it's much easier to reduce overall load by optimisation (script or database) than it is to decrease RAM usage (which can be nigh on impossible), so you really don't want to cut corners here.

A 4GB RAM specced dedicated server should be cheap enough these days to be an option for you, and that's what I would personally recommend a minimum of. 2GB will work, and should also be a reasonable improvement, however.

Reply With Quote
  #9  
Old 09-04-2009, 06:12 PM
josephgarbett josephgarbett is offline
Web Hosting Master
 
Join Date: Jun 2009
Location: UK: Oxford
Posts: 1,242
How are you using MySQL? How many quiries/tables ect.? just by 'trimming' down the information stored or loosing some of the possible quiries helps dramtically.

__________________
Pub, Gym and Programming is now my life.

Reply With Quote
  #10  
Old 09-04-2009, 06:34 PM
JulesR JulesR is offline
Disabled
 
Join Date: Mar 2008
Posts: 630
That won't really help with RAM usage though, just server load. Unless of course the 400MB database has a lot of wasted space and unnecessary data.

Reply With Quote
  #11  
Old 09-05-2009, 02:23 AM
mukunig mukunig is offline
New Member
 
Join Date: Feb 2006
Posts: 4
Thanks for the advice everyone! I am definitely going to try 2MB RAM, and consider going to 4.

On a side note, how important do you feel RAID is for an ecommerce site if there is nearly continuous offsite backup?

Thanks!

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP server is too slowly TenFu Hosting Security and Technology 10 08-22-2007 03:42 AM
Apache won't start after upgrade - tried loads.... Please help webdirect Hosting Security and Technology 3 05-24-2006 06:04 PM
Website loads slow, but once it loads, all other pages of site load fast jubalince Web Hosting 4 11-28-2005 05:10 PM
Dedicated Server slowly????? httpwwf Hosting Security and Technology 9 08-21-2004 10:30 PM
My server very slowly, why? astraler2k Hosting Security and Technology 1 01-07-2003 07:03 AM

Related posts from TheWhir.com
Title Type Date Posted
LeaseWeb Doubles Resources of Cloud, Virtual Server Plans Web Hosting News 2013-06-04 11:20:42
Server Sitters Adds Website Design Service for Web Hosts Web Hosting News 2012-12-21 16:57:19
Web Host ServInt Overhauls Dedicated Managed Servers with New Flex Line Web Hosting News 2012-03-13 10:48:00
Security Firm ArtSec Launches Website and Server Migration Service Web Hosting News 2011-12-09 18:43:03
Web Host ServInt Upgrades VPS Resources, Adds New VPS Plan Web Hosting News 2011-07-19 14:05:32


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?