Slow Loading Website Even After Following Tutorials
Oct 17, 2007
i am trying to optimize my dedicated server to host one website (php-nuke platnuam 7.6v2b5 taking 1min to 1min 30secs to load). ive read the tutorials and it does not seem to make a difference no matter what i try. if one of you guys could kindly point out what could possibly be the problem i would be very greatful.
Vmstat:
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 0 891124 228272 1964832 0 0 34 21 99 81 1 0 98 0 0
0 0 0 891124 228284 1964824 0 0 0 9 1045 161 0 0 100 0 0
1 0 0 891124 228292 1964832 0 0 0 3 1031 130 0 0 100 0 0
0 0 0 891124 228300 1964832 0 0 0 3 1045 157 0 0 100 0 0
0 0 0 891000 228308 1964832 0 0 0 7 1035 144 0 0 100 0 0
Distro:
REDHAT Enterprise 5 i686
Mysql:
4.1.22-standard
Apache:
Server version: Apache/2.0.61
Server built: Oct 17 2007 14:55:40
Cpanel::Easy::Apache v3.2.0 rev2623
php:
PHP 5.2.4 (cli) (built: Oct 17 2007 15:00:59)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
things from the tutorials section ive tried:
this website/showthread.php?t=549666
this website/showthread.php?t=579135
this website/showthread.php?t=340239 (only did 4. Tuning sysctl.conf from here)
I seem to be having a problem with slow loading. When I type in a couple of domain names on my browser, I noticed that it will take 2 seconds, before the site will start to load.
On my status bar, it would show "Looking for www.domain.com" during that 2 seconds.
It seems like the DNS is taking a long time to find my IP?
a DNSstuff.com's tools report, shows my DNS as pretty healthy.
I have a VPS over at futurehosting, and I'm having some issues with my PHP/MySQL sites loading slowly after a few days of uptime. A restart of the various services (apache/mysql) fixes the issue, but I'd like the issue to not start in the first place.
I know very little of server administration (I'm still learning) so just let me know what info you need to see to do the troubleshooting and I'll get it to you.
I'm running a forum system on my server. Loading pages that don't connect to the forum database load normal. Whenever I browse any page that connects to the forum database on my forum, the page either takes ages to load or times out loading. I never exceed using 14% of one of my two cores, I'm using a quarter of my 1.5GB ram. It's only been loading slow like this since I've switched from running Windows to Ubuntu Server 8.10. I enabled logging slow queries on SQL, but nothing's been recorded. I've installed the server packages through Webmin,
when I access the server through its local IP address it's still very slow.
I have a website www.officegofor.ca. The site takes a very long time to load. I don't think it's because of the server's connection speed. What would be the best way to diagnose the problem? What could the problem be? I noticed that it get's slower and slower with time and when I restart apache it's faster (but still not fast enough).
I have a page that is loading very slowly the first time I connect to it. After that it's very fast.
Now I did some research and found out that this could be a DNS issue and that my nameserver might do a reverse DNS lookup. I do not know excatly what that means yet, but I suppose that could be the issue.
To the my.cnf file I added skip-name-resolve in order to disable DNS lookups, but what I can do to find out if I have a dns issue?
I am working with wamp on development phase. We have a Symfony 2 project and I am using Assetic to manage the assets. (no filter used for my test, so no compression or whatever).
I know I am in the development mode and that assetic is meant to work differently on prod environment but the loading of js, css and images is so slow (could be 30s for a dozen css, a dozen js -most of them are already minified- and 4 images, I am using firebug to check) that I wonder if there is a problem with Apache.
regarding the speed of loading my website. How do you find in terms of speed of my blog? Is it slow? - My blog: mangochico.com
I am contemplating in changing host as I believe my current host isn't up to par when it comes to loading times.
Tell me what you think about the loading times and if you happen to know a good, reliable and fast host please list it below so I can take a look at it and see if it fits to my needs.
I signed on to a host just a few weeks ago and from my computer at home I got some work-in-progress pages up and running. However, I tried looking at the pages from some other computers and get weird, inconsistent results. In those computers either my site page loads, or GoDaddy domain parking page loads (I registered the domain with GoDaddy).
Why are some computers referring back to GoDaddy's page while in other places they go right to my pages on the web host? Have I did something wrong in setting up the nameservers? Currently I have my host's nameservers on the top of the nameserver list, but GoDaddy's are still on the list, although below my host's in priority order.
Looking for an RSYNC tutorial, something that focuses on backing http data, exporting the databases then transferring offsite to a receiving rsync server once a week.
Something that's understandable and logical would be great, happy to work through over the next week and continue more in depth with it.
My customers are complaining that my web site is extremely slow in China. But I have never received any complain from outside China (I have talked to non-China users).
What could be the reason behind this? Or how can I find the root cause?
I have a website that I recently moved to a dedicated server. Before hand I had the website hosted with 2 other hosting companies (not dedicated).
I decided to go to a dedicated server because the website ran extremely slow or even went down due to traffic.
With the dedicated server I am having the same problem with the same amount of visitors online. This usually occurs with aprox 250 members online.
I know nothing about servers and have no idea how to cure this problem or if possibly it could be a setting in the server. However this is killing my website because new people are unable to register because of site coming down from traffic.
I have a client who has 3 to 4 websites. His websites are database driven mysql. When we transfered to a new server everything works. Then he requested a iconv and GD installations. Then it was installed. Now all of his sites is impossibly to view but its up. The rest of the clients are doing just fine. What do you think is the problem? we recompiled php several times already same thing.
For about the last two weeks I've had issues connecting with the website that I help run www.learnoutloud.com from my home connection which is Time Warner Cable Internet connection in Los Angeles. I'm on a Dell laptop Inspiron 6000 running Windows XP. I'm always able to connect to the site but what's happening is the page will get hung up on loading a single image usually and then it will take about a minute just to load that last image. And sometimes the page won't load at all, but all it takes usually is hitting the refresh button and the page loads instantly. I was hoping this issue would just go away, but it's been persistent after numerous restarts of our cable modem and switching from wireless to plugged in and so forth. And it's really only happening for our site and no others, which is just puzzling.
At our office on our DSL connection our site loads fine and we haven't had any customer complaints about the site loading slow like this. Our traffic numbers have stayed steady so I don't think it's a global problem connecting with our site. At home I conduct a trace route and it looks good:
Tracing route to learnoutloud.com [72.34.53.155] over a maximum of 30 hops:
1 5 ms 5 ms 1 ms 192.168.1.1 2 15 ms 13 ms 12 ms cpe-76-170-64-1.socal.res.rr.com [76.170.64.1] 3 12 ms 11 ms 9 ms 76.166.6.77 4 11 ms 12 ms 12 ms tge9-3.bwlaca1-rtr2.socal.rr.com [76.166.1.6] 5 11 ms 12 ms 16 ms tge9-2.bwlaca1-rtr1.socal.rr.com [76.166.1.4] 6 14 ms 15 ms 47 ms tge2-2-0.lsanca1-rtr1.socal.rr.com [66.75.161.20 1] 7 15 ms 18 ms 25 ms xe-8-1-0.edge3.LosAngeles1.Level3.net [4.78.195. 189] 8 15 ms 15 ms 15 ms ae-12-69.car2.LosAngeles1.Level3.net [4.68.20.4]
9 16 ms 15 ms 25 ms INTERNAP-NE.car2.Level3.net [4.71.36.78] 10 15 ms 15 ms 27 ms border1.po2-bbnet2.ext1.lax.pnap.net [216.52.255 .86] 11 16 ms 38 ms 25 ms insiderh-2.border1.ext1.lax.pnap.net [63.251.209 .106] 12 19 ms 29 ms 18 ms 72.34.41.10 13 32 ms 18 ms 18 ms 72.34.53.155
Trace complete.
Does anyone know what the heck is going on and how I can fix this?
Today, without any change on the server side my single running website on my server started running low. After checking the running processes I realised I have these 8 processes running with high cpu load something that didn't had before.
4245 user 20 0 283m 103m 10m R 85.1 0.3 6:44.88 /usr/bin/php-cgi -c /var/www/vhosts/system/domain/etc/php.ini 4243 user 20 0 241m 68m 8736 R 83.8 0.2 6:33.45 /usr/bin/php-cgi -c /var/www/vhosts/system/domain/etc/php.ini 4259 user 20 0 254m 82m 8720 R 83.5 0.3 6:11.00 /usr/bin/php-cgi -c /var/www/vhosts/system/domain/etc/php.ini 4244 user 20 0 282m 103m 10m R 82.1 0.3 6:46.49 /usr/bin/php-cgi -c /var/www/vhosts/system/domain/etc/php.ini 4247 user 20 0 248m 76m 8712 R 78.8 0.2 6:50.31 /usr/bin/php-cgi -c /var/www/vhosts/system/domain/etc/php.ini 4264 user 20 0 258m 85m 8712 R 72.9 0.3 6:49.83 /usr/bin/php-cgi -c /var/www/vhosts/system/domain/etc/php.ini
apache error log doesn't show any warnings, errors.
I've been having trouble with my VPS for a while now. In the QoS alerts page in Virtuozzo it seems to be a problem with numtcpsock and tcprcvbuf, mainly numtcpsock.
Copy these into the browser: i18.photobucket.com/albums/b106/gnatfish/qosnumtcpsock2.jpg
I've got 25 domains on a Virtuozzo/Plesk8.6/CentOS5 VPS. Each domain has one up-to-date install of WordPress, most have very little traffic (average 200mb per month), maybe 2 domains get 5-7gb traffic per month.
I monitor port 80 connections and rarely see more than 10 at a time. That should in my opinion be no problem at all for a VPS with 768mb guaranteed ram and 2.4ghz cpu. I've got 30gb hard drive spare too.
But.... about 8 or 10 times a day it grinds to a complete halt: server load at 500-1000%, sites timing out, plesk takes 3mins to load, often I can't even connect with SSH, and the plesk web server, apache
80 seconds sounds like a huge amount of time for a MySQL insert to me! Does anyone know if this is likely to be the cause of my trouble? Some problem with Plesk and the database? Or could it be something else?
i am getting iptables errors when reloading APF, and after that APF takes a few seconds to move thru each line in deny_hosts.rules (and also other rules files). is this normal? if i have a very long list of deny rules wouldnt this delay loading other rules?
(running centos/virtuozzo 2.6.18-028stab062.3)
Code: /etc/apf/apf -r apf(7689): {glob} flushing & zeroing chain policies apf(7689): {glob} firewall offline apf(7721): {glob} activating firewall apf(7761): {glob} determined (IFACE_IN) venet0 has address 127.0.0.1 apf(7761): {glob} determined (IFACE_OUT) venet0 has address 127.0.0.1 apf(7761): {glob} loading preroute.rules iptables: Unknown error 18446744073709551615 iptables: Unknown error 18446744073709551615 iptables: Unknown error 18446744073709551615 iptables: Unknown error 18446744073709551615 iptables: Unknown error 18446744073709551615 iptables: Unknown error 18446744073709551615 iptables: Unknown error 18446744073709551615 apf(7761): {resnet} downloading http://r-fx.ca/downloads/reserved.networks apf(7761): {resnet} parsing reserved.networks into /etc/apf/internals/reserved.networks apf(7761): {glob} loading reserved.networks apf(7761): {glob} loading bt.rules apf(7761): {glob} loading deny_hosts.rules apf(7761): {trust} deny all to/from 124.166.250.250 ' not found.3.5: host/network `124.166.250.250 Try `iptables -h' or 'iptables --help' for more information. ' not found.3.5: host/network `124.166.250.250 Try `iptables -h' or 'iptables --help' for more information. apf(7761): {trust} deny all to/from 200.233.149.110
I have a Shared Hosting , and a Vps . i use the VPS to Storage Audio files and Leach to them from my Shared Hosting . the shared hosting Only Has Some php, and Html pages with the links to leach from the vps ..
Now which One Gets The Load , or which one is the One Suffering the Load . the Shared Hosting or the VPS ..