Operating System - HP-UX
1833753 Members
2779 Online
110063 Solutions
New Discussion

Re: netstat and memory management in HP-UX 11

 
Dennis Fisher
New Member

netstat and memory management in HP-UX 11

HP-UX 10.20 supports "netstat -m". The man page says "Show statistics recorded by network memory management routines" for this option. Is there an HP-UX 11 equivalent? I'm seeing an Apache web server report "[error] (233)No buffer space available: accept: (client socket)" and would like to find out why. I suspect that there are more client requests than there are configured web server processes, but would like to confirm this somehow. Glance has not been very helpful in this situation. Suggestions?
3 REPLIES 3
Kofi ARTHIABAH
Honored Contributor

Re: netstat and memory management in HP-UX 11

Sorry, the -m option is not implemented in HPUX 11. A quick way to determine what you want is to do a ps -ef | grep -c [h]ttpd and compare the value there to the value that you configured in your httpd.conf as the number of connections MaxClients / MaxSpareServers / StartServers.

I would bump up the value of MaxClients if it is a busy web server.
nothing wrong with me that a few lines of code cannot fix!
Kofi ARTHIABAH
Honored Contributor

Re: netstat and memory management in HP-UX 11

Sorry, the -m option is not implemented in HPUX 11. A quick way to determine what you want is to do a ps -ef | grep -c [h]ttpd and compare the value there to the value that you configured in your httpd.conf as the number of connections MaxClients / MaxSpareServers / StartServers.

I would bump up the value of MaxClients if it is a busy web server.

BTW you can use lsof to find out information about memory utilisation of socket connections.
nothing wrong with me that a few lines of code cannot fix!
Dennis Fisher
New Member

Re: netstat and memory management in HP-UX 11

It's not the count of web processes that I'm after but network related memory use. The tip on lsof was interesting, but still only shows ESTABLISHED or LISTENing services. I was trying to measure the impact of connections in other states, like in a DoS attack.

Thanks