Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
11-01-2007, 02:26 AM
|
#1
|
Senior Member
Registered: Dec 2004
Posts: 1,056
Rep:
|
faster new machine serves images slower than old machine?
I have a live site, let's call it mydomain.com. The site has been up for 46 days and served up about 1.5 million page views last month which means about 8 million hits.
I'm setting up a new server with a faster CPU (which happens to be dual-core), more RAM, 3 hard drives instead of one, and a 100 Mb/s network interface instead of 10Mb/s.
I've copied my site code over to the new machine which I can access by visiting server2.mydomain.com.
For some reason, the pages seem to render more slowly on the new machine even though it should be faster. In particular, the new machine appears to load images more slowly. Why might this be?? I can clear the cache in my browser, visit the same page on both sites and the live machine (a 2ghz celeron) appears to serve the images more quickly than the hot new box (2.2ghz dual-core AMD chip). Might this be due to some DNS weirdness as in the the old machine is a more widely visited IP address than the new machine? Is there some way to benchmark this sort of thing so I can bring a quantitative argument to my hosting provider about it?
|
|
|
11-01-2007, 03:01 AM
|
#2
|
Member
Registered: Oct 2007
Location: INDIA
Distribution: Rehat, Fedora, RHEL
Posts: 47
Rep:
|
Hi,
if you doubt about DNS, then try access your site by ip address. then see the difference
|
|
|
11-01-2007, 12:23 PM
|
#3
|
Member
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, macOS, SLES, Ubuntu
Posts: 327
Rep:
|
As crazy at it sounds, you might want to check the duplex setting of the new server's NIC. I've seen some at 1000/half and it is PAINFUL to use those boxes.
Beyond that, I think Selva146's suggestion on bypassing DNS by using the direct IP address is a great idea.
|
|
|
11-01-2007, 04:28 PM
|
#4
|
Senior Member
Registered: Dec 2004
Posts: 1,056
Original Poster
Rep:
|
I used tracert and apparently the old server has 29 hops where the new one has only 18. I'm guessing the route packets take is not permanent and may improve with time as the new server becomes more popular?
How might I check the duplex setting on the new server? It's on the east coast (i'm in cali). Is there a CLI command?
|
|
|
11-01-2007, 06:00 PM
|
#5
|
Member
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104
Rep:
|
duplex settings: check the output of "ethtool eth0"
you can try forcing full-duplex with ethtool, as well.
I doubt it's a forward dns issue. You might be having reverse dns lookup issues though -- eg for apache logging. Check your httpd logs and config.
Also, consider looking at your httpd config anyway. There's a lot of settings in there that can substantially affect performance...
|
|
|
All times are GMT -5. The time now is 03:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|