Long webpage load times

Support for webhosts that use CentOS
Rambomst
Posts: 3
Joined: 2010/10/18 04:04:33
Location: Sydney, Australia
Contact:

Long webpage load times

Post by Rambomst » 2010/10/18 04:29:49

I recently bought a VPS with the following specs
[code]
Operating system: CentOS Linux 5.5
Kernel and CPU: Linux 2.6.18-028stab070.4 on x86_64
Processor information: Intel(R) Xeon(R) CPU E5630 @ 2.53GHz, 16 cores
Real memory: 2 GB total, 361.74 MB used
Local disk space: 30 GB total, 3.62 GB used.
[/code]
I am having an issue where at random times it takes 1-2 minutes to load a web page on my web server. When this happens both the RAM and CPU usage are low and haven't increased in usage.

This is my first time using a VPS and I am sure it is something I have done wrong but unfortunately I am unable to work out what that is so any assistance in fixing this issue is much appreciated.

If anyone is curious the link to the website is www.trident-gaming.net and the web server is Apache.

getinfo.sh printout:
[code]
[url=http://pastebin.centos.org/35396]http://pastebin.centos.org/35396[/url]
[/code]

bonobon122
Posts: 3
Joined: 2010/10/18 11:19:07

Re: Long webpage load times

Post by bonobon122 » 2010/10/18 11:23:51

Can you ping to your server?

Is the DNS configured, what about hostname? Can you access the server using the IP?

Should be a network configuration problem.

Rambomst
Posts: 3
Joined: 2010/10/18 04:04:33
Location: Sydney, Australia
Contact:

Re: Long webpage load times

Post by Rambomst » 2010/10/19 00:12:43

Yes I can ping it. The DNS is configured and I can also access the server using the IP but what exactly do you mean by "what about the hostname?"?

bonobon122
Posts: 3
Joined: 2010/10/18 11:19:07

Re: Long webpage load times

Post by bonobon122 » 2010/10/19 07:38:48

When you access the server with the IP, do you also have slow response?

Gives "hostname" the correct output. Can you ping within your VPS to your hostname?

Maybe it's a firewall issue. Stop the firewall and try connecting.

Rambomst
Posts: 3
Joined: 2010/10/18 04:04:33
Location: Sydney, Australia
Contact:

Re: Long webpage load times

Post by Rambomst » 2010/10/19 08:41:31

[quote]
When you access the server with the IP, do you also have slow response?[/quote]
I am able to ping the IP and get a response also can connect to SSH when the webpage is taking 1-2 mins to load but browsing the webpage doesn't.

[quote]
Gives "hostname" the correct output. Can you ping within your VPS to your hostname?[/quote]
I am able to ping it within my VPS.

[quote]
Maybe it's a firewall issue. Stop the firewall and try connecting.[/quote]
I still have the issue even when the firewall is off.

bonobon122
Posts: 3
Joined: 2010/10/18 11:19:07

Re: Long webpage load times

Post by bonobon122 » 2010/10/19 09:00:57

I would reinstall the apache server and check if it works fast without an application on it. Then, I would contact the VPS provider.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Long webpage load times

Post by pschaff » 2010/10/20 20:37:22

Welcome to the CentOS fora Rambomst. Reading [url=https://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url] is recommended for new users, but as you provided [b]getinfo.sh[/b] output you must have already done that. Congratulations on being one of the select few to do so without prompting. :-)

You may want to contact the provider first. Reinstalling is unlikely to help performance, and as this is a highly-modified OS [i]based[/i] on CentOS (from a [url=https://www.centos.org/search.php?query=028stab&mid=30&action=showall&andor=AND]search on a substring of the kernel version[/url] I'd guess OpenVZ), and not true CentOS, advice from here may result in breaking your system.

[url=http://wiki.centos.org/AdditionalResources/OtherVoices]Other Voices[/url]
[url=http://wiki.centos.org/TipsAndTricks/BrokenSpins]When CentOS Is Not CentOS[/url]

You also have the Jason's Utter Ramblings Repo enabled without yum-priorities so if you have updated you have already replaced core packages with 3rd party packages, which may or may not have been intended, but may explain the breakage.

Please read about [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url], [url=http://wiki.centos.org/AdditionalResources/Repositories]Repositories[/url], and note the warnings and advice about installing and configuring the [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum priorities plugin[/url].

I also note that SELinux is disabled, so you are forgoing one of the greatest security features of an Enterprise Linux distribution.

One other thing to check is available memory and swap usage, as revealed by the "free" command. Insufficient real memory could explain poor performance.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Long webpage load times

Post by gerald_clark » 2011/01/18 15:20:08

You are running a container along with an unknown number of other containers.
They are all sharing the CPUs and the network card.
You cannot determine what is causing the slowdown without knowing what programs
all of the other VPS on that machine are running.

You need to have your hoster do the analysis.

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: Long webpage load times

Post by foxb » 2011/01/18 15:21:45

Your site makes 85 requests just to load the page ?!

It looks more like heavy script... I do not see a CentOS problem... probably you need to optimize your site (Google will help)...

hansolo
Posts: 231
Joined: 2010/01/13 11:17:42
Location: SI

Re: Long webpage load times

Post by hansolo » 2011/01/18 21:29:19

I'm sorry to see the sites in which one made a lot of scripts running dependent of each other.

My suggestion is like [b]foxb[/b] suggested - you should try [url=http://tools.pingdom.com/]website load analyzer[/url] (google for more)
and solve the dependent scripts to make it run faster. (the link on page loads 4 seconds -> w w w.trident-gaming.net/forums/ and also all other images related there - h t tp:// w w w.trident-gaming.net/forums/public/style_images/brave/_custom/bg-rep.png )
Also [url=http://loadimpact.com]Server Load test[/url] is useful

good luck

Post Reply

Return to “CentOS 5 - Webhosting Support”