Cagao has asked for the wisdom of the Perl Monks concerning the following question:
I took a note of memory usage once the daemon starts, then after one call it loads the module i'm dispatching to, and the memory goes up, which is fine, but is it possible to un-load the module once that call is finished with to keep the server load down? If not it's obviously better to simply 'use' all the modules I'm going to use, but it'd be nicer not to do that. This is for a VERY busy server (current loads reach 150 on a good day!)use SOAP::Transport::HTTP; my $daemon = SOAP::Transport::HTTP::Daemon -> new (LocalPort => 8123, Reuse => 1) -> dispatch_to('/home/rob/www.intelcompute.com/site/cgi-bin', 'SOA +PServer'); print "Contact to SOAP server at ", $daemon->url, "\n\n"; $daemon->handle;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP dispatch_to, but unload later
by shmem (Chancellor) on Jul 01, 2007 at 07:08 UTC |