Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
One of my client hosted their web site on a Xeon E5-2640 v2 @ 2.00GHz Server with 32GB Ram, mostly accessed by 30-40 users at the same time. There are no images or videos on the page either, so I'm wondering why is it so slow to load the page? The page mainly consists only text, but with quite a lot of stored procedure working in the database.

And what i noticed is that some of my other client hosted the same site using Desktop PC with i7 processor and 8-16GB of ram, and they all ran faster compared to the above scenario. Do I need to specifically optimize the code in order to work properly on the server?
Posted

1 solution

No, you need to do some analysis of the traffic to find where the bottleneck is.

I take it the production database server and the web server are two different machines.

Follow the traffic starting with the inbound request from the browser. Use a network sniffer to get timings of when the request comes in and when the response goes out. This is the window of time that you have to account for, every millisecond.

Follow the traffic from the web app to the database and back. When does the browser request start? How many queries are generated by that request? How long until the first query is sent to the database? How long until the last query is sent? How long does that take to process? How long until the database response starts? How much data is coming back from the database? Does the web app need all of that data to do its job for the request? How long until the last byte of the database response is sent? How long does the page take to process all this data?

There's a lot of work to do and various sniffers and profilers are going to be required to narrow it down.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900