Firstly is it possible to un-use a module to free up memory?

But now to my main query, I have this code for my SOAP Server...
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;
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!)

And finally, does anyone know if I could fork() this script off to handle simultaneous requests on the same port? or does it do it for me? I don't think I saw any mention in the docs.

I'd like to use the daemon method rather than apache CGI to keep the server load down (no need for any other Apache functionality).

Thanks

In reply to SOAP dispatch_to, but unload later by Cagao

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.