How can I debug/trace NSAPI applications?NSAPI applications are run in separate processes on your zeus webserver, one process per virtual server: bash$ ps -ef | grep zeus root 24704 1 0 14:05:12 ? 0:02 zeus.admin root 24705 24704 0 14:05:12 ? 0:06 zeus.admin root 24708 1 0 14:05:13 ? 0:06 zeus.web root 24710 24708 0 14:05:13 ? 0:00 zeus.web root 24711 24709 0 14:05:13 ? 0:01 zeus.nsapi test-1 root 24712 24709 0 14:05:13 ? 0:01 zeus.nsapi test-2 In this instance, process 24711 runs NSAPI applications on behalf ofvirtual server 'test-1' whilst process 24712 acts in the sameway for virtual server 'test-2'. You can attach truss toany of these processes. nsapisnoopThe nsapisnoop program in ZEUSHOME/web/bin monitorsthe protocol between the web server and the NSAPI runner. Use it asfollows:
When the virtual server restarts, it will connect to the runningnsapisnoop and log the request-response protocol between theserver and the NSAPI runner. From this information, you can derivewhat NSAPI applications are being run, what arguments they are beingpassed and what response they are returning. In addition, 'nsapisnoop -d2' also dumps all function callsthrough the __nsapi30_table function table.
Content Manager
[Administrator] 19 September 2005
|
Recent Articles
Other Resources
|


