memory leaks when using FAST CGI + Apache + Perl

"Alexey Melezhik" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi!

We are using Apache 2 + FAST CGI + Perl.
Recently we have noticed memory leak in our web application. When we
`top' on web server it could be seen that memory allocated by user.cgi
process keep growing up to 100-300 Mb.

Well, to make the long story short, I need suitable memory debugging
tool for Perl+FAST CGI. I need to dump all globals and lexicals to, to
see where the memory leack migth be,
also I have to deal with memory allocations by C fucntions, used in Perl;

I know the main idea:

Start FAST CGI as External Server:

# in my Apache config file:
FastCgiExternalServer
/path_to_my_fast_cgi_server_script/fast_cgi_ext_server.pl -host
localhost:8888

cat fast_cgi_ext_server.pl:

#!/usr/bin/perl

    use CGI::Fast;
    &do_some_initialization();
    $ENV{FCGI_SOCKET_PATH} = "localhost:8888";
    $ENV{FCGI_LISTEN_QUEUE} = 100;
    while ($q = new CGI::Fast) {
     &process_request($q);
    }


But what else should I do to debugg web application under perl?
Add -d option in shebang in fast_cgi_ext_server.pl ?:  #!/usr/bin/perl  -d

I would be very appreciate for any help

-- 
Alexey Melezhik
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.