Operating System - HP-UX
1826647 Members
3416 Online
109695 Solutions
New Discussion

how to use ipcs for monitoring web server

 
SOLVED
Go to solution
Dagmar Boelen
Frequent Advisor

how to use ipcs for monitoring web server

We use a apache webserver in our production environment. Someone told me that I could use the ipcs-command to monitor the webserver. I check the man-pages but I don't understand which information I get with ipcs in relation to the webserver
4 REPLIES 4
Massimo Bianchi
Honored Contributor

Re: how to use ipcs for monitoring web server

Hi,
i think your friends refers to monitoring the memory for leaks.


In this case you may find more usefull some scripts (from Twang ), that use the "ps" :

#!/bin/ksh

t=0
for j in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -
rnk1 | grep -v Kbytes | grep | awk '{print $1}'`
do
t=`expr $t + $j`
done
echo "\nMemory claimed by : $t Kbytes .\n"


William Wong_2
Trusted Contributor
Solution

Re: how to use ipcs for monitoring web server

IPCS is used to show information about the messages queues, shared memory segments and semaphores that are currently being used by the system. This will only allow you to monitor some of the resources that an Apache Webserver uses. As previously noted there are other resources such as CPU%, memory usage, disk I/O that IPCS will not help to monitor.
What specifically about the Apache webserver
are you trying to monitor? Top will show how much CPU and memory that Apache is using. If you have glance installed you can get further performance details about what resources Apache is using on your server.
Dagmar Boelen
Frequent Advisor

Re: how to use ipcs for monitoring web server

Hi William. I think he meant the message queue.
What kind of info does ipcs provide me about this message queue? How many sessions are open to the webserver. Which arguments should use with ipcs?
Uday_S_Ankolekar
Honored Contributor

Re: how to use ipcs for monitoring web server

ipcs -moba command will show you the information needed and ipcs -q will give message queue details

-USA..
Good Luck..