logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: apache web server HELP! extreme laggy pages
Author
stwjay



Joined: 21 Nov 2013
Posts: 2
Location: NY

PostPosted: Thu 21 Nov '13 21:17    Post subject: apache web server HELP! extreme laggy pages Reply with quote

Hello all,

I work for a company with a highly trafficked site (about 100,000 unique daily visitors). We have our "MANAGED" hosting through Rackspace for quite the pretty penny per month. It includes a dedicated back end / DB server and cloud servers for the front end.

The setup has been functioning perfect for 10 months now; but this past Monday the speed of the site immediately dropped. Page load times fell from 1-2 seconds to between 10-20 seconds, and sometimes not at all. As far as we know (and as far as Rackspace says), no server setting were modified. No new code was introduced on our end. It's a mainly static site, with minimal user interaction with the backend at all.

Can any expert offer some advice? We've monitored the traffic, checked IPs, etc. We've even tunes down several site features in the interest of reducing server load. Upon a server reboot, the active threads/processes running on it IMMEDIATELY jump back up to maxed out levels. It seems like once our daily traffic reaches 10MB/s, a type of queue forms and the delays begin. Rackspace assures us that we're not limited to that.

Please advise - thanks! -Jay-

Versions:
OS: cent OS on cloud
OS: Redhat on Dedicated Server
Apache: 2.2
PHP: 5.3 / MySQL: 5.1.69

EDIT: Some more background info: The site is typically busiest from 7am until 3pm EST. For the past few days, we've noticed that between 7am and 9-10pm the server has just lagged incredibly. However, at around that 9-10pm mark, something changes and the pages go back to loading almost instantly. (There is still decent traffic though.) Then at around 7am again it slows to a crawl.

Rackspace has offered solutions such as spinning up another server and incorporating their load balancing - they are in the process of this BUT they do NOT think the traffic is the issue. At one point they actually said there was potential packet loss somewhere in the network, but no progress has been made.
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Fri 22 Nov '13 14:10    Post subject: Analysis Reply with quote

Hello Jay,

first of all try to test your page at www.webpagetest.org.
There you can analyze if your page(s) are performing or parts of the code are potentially problematic.

The next thing would be the firewall and the loadbalancer.
Can you get logs from there? Then have a look!

Then the load on the serverstructure and the backbone.
And at the end of malware or something else that could cause such lags as long as configuration changes are impossible.

In very rare cases the routing is a problem.

Good Luck!
Back to top
stwjay



Joined: 21 Nov 2013
Posts: 2
Location: NY

PostPosted: Tue 26 Nov '13 19:01    Post subject: Reply with quote

UPDATE:

Tested out several site pages using webpagetest.org. It didn't look like any code issues; but virtually every image was taking forever to load.

We've had packet loss when pinging from one server to the other; and the servers are in the same datacenter. We believe there is some type of network issue. Rackspace originally told us that it looked to be a DDOS attack; they then said it was much more than our normal traffic; and then they said they were investigating their hardware. Eventually we determined SOMETHING had to be done, so another server was thrown up. Of course it helped immensely... for a price of course.

I'm still curious as to how out of nowhere one day the web server could no longer handle the load. It wasn't like the page load times were slowly getting worse; one day they just diminished to a crawl. Here's 2 charts that show our standard traffic:

jjmenterprises.com/images/bandwidth2.png

I believe the cap looks to be at/around 10 Mbps. Our IT Director said that he believes we do have a gb card in the hardware. Thoughts on why the traffic seems to have a nice rollercoaster chart for the past 8 months but for 4 days last week (until we load balanced with another server on Friday) it would keep plateauing? (During these times pages would take 15-20 seconds to load, sometimes timing out, and this would last for a good 10 hours from 7am thru the early evening hours; then all of a sudden at 8 or 9 pm the site would start loading instantly again.)

We don't mind much the cost of the additional server if it's necessary; just feel there is something else at play here.
Back to top


Reply to topic   Topic: apache web server HELP! extreme laggy pages View previous topic :: View next topic
Post new topic   Forum Index -> Apache