Subject: Re: [CentOS] how to check the number of thread on apache server To: CentOS mailing listcentos@centos.org Message-ID: AANLkTi=5hQOOw3t2qgD9-HLH6XNC+F8OZtHc5HPxNsLS@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1
On Fri, Aug 20, 2010 at 7:02 PM, Kwan Lowekwan.lowe@gmail.com wrote:
On Fri, Aug 20, 2010 at 1:57 PM, Agnello George agnello.dsouza@gmail.com wrote:
how to check the number of thread? on my ? Apache server? ,? is there a specific command , and how do i increase these threads ..
If you are talking about worker threads. Turn on server-status in the httpd.conf (make sure security is set correctly), and check http://serverip/server-status.
Slightly OT .... FWIW ....
One quick-and-dirty way to check threads for any process is to use the ncurses-based 'htop' utility. I much prefer this to 'top' for several reasons, including its ability to hide/display kernel threads, hide/display user threads (in a different color if you like), display with vertical and horizontal scrolling, assign processor affinity on the fly, ptrace/strace processes, and a lot more.
It's in Dag Wieers' rpmforge repository for CentOS.
The suggestions offered in this discussion are all very useful with regard to tuning Apache.
Chuck