Web Site Performance Issue

Thread Tools Search this Thread
Top Forums Web Development Web Site Performance Issue
# 1  
Old 10-04-2011
Web Site Performance Issue

Hi All,

I am currently managing a web site. I find that during the peak time period,ie,between 1300hrs to 2100hrs everyday,the response slows down whenever i access the applications hosted by the server.However when i try to access the static content in the web server,it loads quickly.
The architecture is as below:

client --> webserver --> appserver --> dbservers.

OS - RHEl 5.4
Web Server - Apache 2.2.23
App Server - Jboss 4.2.3

While debugging i found that when the Thread count reaches 260 in webserver then the issue starts. However there are days when i have seen no issue even if the thread count is 260.Also even if thread count has reached 260,http requests for static content requests are processes without any delay.Only the "https" requests that access the application are not responding properly.

I have searched the thread count in Appserver and it is below "200" and the Max count has been set to "250". So i am not sure how to debug further. Any help is greatly appreciated.

BTW,i am talking about a domain which hardly receives around 3000 hits a day(as per Awstats report). So it really perplexes me.

# 2  
Old 10-18-2011
Read up on sar. Here's an example.

Here's another solution: between 1300 and 2100 run the ps command every minute. Append the output to a file which is rotated. Look at the file every day.

sid=`ps --pid $$ --no-headers -o sid`
ps -N --sid $sid -C sleep --sort start_time,comm,pid -ww \
         -o pid,c,pmem:5,rss:8,sz:8,size:8=TSIZE,vsz:8,nlwp,wchan:16,start_time,tty:8,args

You could make ascript out of it ("ps-snapshot" for instance) and add it to a cron file to run every few minutes like this:

*/3 * * * * /usr/local/bin/ps-snapshot >> /var/log/ps

Make sure you add /var/log/ps to the list of files to be rotated in /etc/logrotate.d
This User Gave Thanks to otheus For This Post:
# 3  
Old 10-24-2011
Thanks Otheus for the response.
I had the server stats collected through Nmon and also through my monitoring utilities and didn't see much difference.
Anyway i will implement your script and see if anything turns up.

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Site Performance II

I have updated the backend hosting for UNIX.COM and would appreciate feedback either in the form of a vote in the poll or a post so that we can plan for more changes if any are needed. In particular let me us know if you see any strange behavior from the site as there may still be some... (8 Replies)
Discussion started by: reborg
8 Replies

2. Shell Programming and Scripting

I need help in creating my first web site?

I have always wanted to create my own site, I've only had one class about the basics in creating web pages but know i would like to get into more and more detailed info about doing so anyone with alot of experience please help me out.:b: (0 Replies)
Discussion started by: kprescod4158
0 Replies

3. AIX

how to browse a web site using script

hi guys, ok this script, i am trying to browse a http site and store the output in a text file ... when i run the script , i get a http compatibility error. does any1 have a good solution to contact a http server and save the html in a text file.. i know the result comes with html tags. ... (4 Replies)
Discussion started by: kirantalla
4 Replies

4. What is on Your Mind?

Site Performance

The UNIX Forums have many users, thanks to you. We will be upgrading the server soon, to make more processing room for all the users every day. In the meantime (while waiting on the server upgrade) have limited the forum to disallow new connections when the load average is above 20; and... (9 Replies)
Discussion started by: Neo
9 Replies

5. AIX

intranet web site

hello I would like to create an internal web site, but how do i make it with Aix ? I must to install apache and send my http pages in the declared repertory ? There are some configuration files to modify ?? thank you (2 Replies)
Discussion started by: pascalbout
2 Replies

6. UNIX for Dummies Questions & Answers

Web Site Creation - testing .*pl etc....

Hiya All, How can I test my PERL Scripts whilst making my web site? I'm hoping there is some software out there that emulates a Web Server - without all the hassle of my building/setting up a Web Server from Stratch (Never done anything like that before - my next big project! 8) ) ... (7 Replies)
Discussion started by: marty 600
7 Replies

7. UNIX for Dummies Questions & Answers

Web site mirroring

I have a unix server running RedHat Linux 9.0. I want to mirror my site on a different server with the same configuration so if the main server goes down, the other server will take over. How is this best accomplished? (1 Reply)
Discussion started by: wvmlt
1 Replies

8. UNIX for Dummies Questions & Answers

Web site setup

Hi, I have a m/c loaded with redhat linux, static IP address and this m/c intern connected to the internet thro leaseline. Now i need to setup a company website has www.abc.xyz.com. What necessary configuration i need to do so that others can view our website. Thanks Bache Gowda (5 Replies)
Discussion started by: bache_gowda
5 Replies
Login or Register to Ask a Question