Get PID on Sun Web Server
Unix - Solaris/Linux/HP-UX/AIX
On these platforms, the Web Server uses three processes:
· A watchdog process
· A parent Server process - webservd or ns-httpd
· A child Server process - webservd or ns-httpd
The Worker process is the child Server process.
This can be found with the following commands:
This can be found with the following commands:
#ps -ef | grep wdog
#ptree <pid of wdog> (Solaris and HP-UX)
#pstree <pid of wdog> (Linux)
#proctree <pid of wdog> (AIX)
#ptree <pid of wdog> (Solaris and HP-UX)
#pstree <pid of wdog> (Linux)
#proctree <pid of wdog> (AIX)
The last webservd or ns-httpd process in the list is the process required.
For example, on Solaris this would be:
# ps -ef | grep wdog
root 3878 1 0 Jul 18 ? 0:01 webservd-wdog -d /prods/web/709/admin-server/config -r /prods/web/709 -t /tmp/a
root 5510 1 0 12:02:39 ? 0:00 webservd-wdog -d /prods/web/709/https-web.com/config -r /prods/web/709
Use the Instance not the Admin Server:
# ptree 5510
5510 webservd-wdog -d /prods/web/709/https-web.com/config -r /prods/web/709
5511 webservd -d /prods/web/709/https-web.com/config -r /prods/web/709 -t /t
5512 webservd -d /prods/web/709/https-web.com/config -r /prods/web/709 -t /t
The correct PID would be '5512'.
root 3878 1 0 Jul 18 ? 0:01 webservd-wdog -d /prods/web/709/admin-server/config -r /prods/web/709 -t /tmp/a
root 5510 1 0 12:02:39 ? 0:00 webservd-wdog -d /prods/web/709/https-web.com/config -r /prods/web/709
Use the Instance not the Admin Server:
# ptree 5510
5510 webservd-wdog -d /prods/web/709/https-web.com/config -r /prods/web/709
5511 webservd -d /prods/web/709/https-web.com/config -r /prods/web/709 -t /t
5512 webservd -d /prods/web/709/https-web.com/config -r /prods/web/709 -t /t
The correct PID would be '5512'.
On Windows
Windows only has a watchdog process and one Server process. So the process required is the single Server process.
Proxy Server
Proxy Server uses the same process structure as Web Server. Therefore:
· On Unix the same commands will work. The Server process is called 'proxyd'.
· on Windows it’s still the single Server process
No comments:
Post a Comment