Scott, Here are the three different teset scripts we used
CGI: ------------------------- #!/usr/local/bin/perl use CGI; my $string = "<Html><body>Simple Page</body></html>"; $query = new CGI; print $query->header; print("$string"); $query->delete_all(); exit(0); --------------------------- ADP (no exec): --------------------------- <% set string "<Html><body>Simple Page</body></html>" ns_return 200 text/html $string %> --------------------------- ADP w/ exec: --------------------------- <% set string "<Html><body>[exec date]</body></html>" ns_return 200 text/html $string %> --------------------------- The nsd.tcl file is attached. I believe it is mostly the standard one that comes w/ debian with a few tweeks to get CGIs enabled. Thanks, Matthew On Fri, Mar 28, 2003 at 05:57:40PM -0600, Scott Goodwin wrote: > Hi Matthew, > > Sounds like a memory leak in nscgi. Can you send me the perl script and > your nsd.tcl file? I'll see if I can duplicate the problem, track it > down and fix it. > > thanks, > > /s. > > On Friday, March 28, 2003, at 04:57 PM, Matthew Krenzer wrote: > > >I know this subject was addressed a while ago but I'm curious to know > >if > >there has been any resolution to this. > > > >We have setup a linux box running aolserver 3.5 w/ tcl 8.4.2 and have > >performed the following tests: > > > >1. Running a very simple perl cgi > >2. Running an ADP to do the same as the cgi > >3. Running an ADP that execs a command > > > >We hammered the snot of the aolserver in each case and case 1 above > >leaked > >memory (about 2MB a minute at full throtle) - the other two did not > >leak memory. > > > >In the previous thread it was mentioned that perhaps the leaks were > >related > >to 'exec' in a multithreaded app. But in this case, execs from tcl > >did not > >result in a leak - only those for the CGI processing. > > > >Does anyone know what could cause this or what a potential solution > >is? (Of > >course long term we will convert all of our cgis to adps, but that > >will take > >time - we'd like to switch out the webserver before then). > > > >Any information would be most welcome, > > > >Thanks, > >Matthew > > > > > >-- > >AOLserver - http://www.aolserver.com/ > >To Remove yourself from this list: > >http://www.aolserver.com/listserv.html > >List information and options: http://listserv.aol.com/ > > > > > -- > AOLserver - http://www.aolserver.com/ > To Remove yourself from this list: http://www.aolserver.com/listserv.html > List information and options: http://listserv.aol.com/ -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
nmd.tcl
Description: Tcl script