Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

help with slow website issues

Posted on 2008-10-28
4
Medium Priority
?
272 Views
Last Modified: 2013-11-05
I've never run into anything like this before.

We are seeing an issue with one of our websites. Pages of the site load extremely slow. However, this is only when you type the domain name into the browser. If you use the ip address of the server then the pages load very quickly. The difference is not small. With the IP address, a database intensive page will load in under 10 seconds. On the other hand, with the domain name the same page can take as much as 10 minutes and in some cases the page just stops loading.

Any help or guidance appreciated.
0
Comment
Question by:Hube02
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Rowley
ID: 22829324
Could be that you have hostname lookups enabled on your web server. What OS/web server software are you using?
0
 
LVL 18

Author Comment

by:Hube02
ID: 22830839
This site is hosted on IX Webhosting. I need to contact them, but their support really sucks lately.

This is what we have. We have the same host name set up on two different accounts. One is the old site and the second is the new site. There are no problems with the old site and there are no problems accessing the new site by IP.

When they re-point the domain name to the new IP this is where the problem happens. There is still no trouble with accessing the site by IP, but, there is a problem accessing it by domain name. We are thinking that the server is having an issue with the two domains of the same name on the same provider??? but this is just a guess, like somehow the host is getting lost as to what it should serve. Eventually, the new site does appear, but it takes anywhere from 5 to 10 minutes to display a page that takes under 10 seconds to display when accessing by IP.

Any way for me to determine if this host name lookup is enabled? Should I contact the provider and see if they can help with this?
0
 
LVL 13

Expert Comment

by:Rowley
ID: 22830923
You should most definately get in touch with your hosting company to get this resolved. You could also check that your DNS is configured correctly.
0
 
LVL 18

Accepted Solution

by:
Hube02 earned 0 total points
ID: 22859754
The problem was unrelated to the host, server, or dns. the problem was in how php was getting information. Rather than looking in the local file system the script was actually using http calls to the same server to get image information, to be specific it was using getimagesize('http://www.domainname.com');. I corrected the problem by accessing the images directly using local file commands rather then the above.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
New style of hardware planning for Microsoft Exchange server.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question