I am coding a largely CGI generated site in the following environment:
OS: SunOS 5.7
PERL: 5.004_04
MySQL: 3.22.23b
Webserver: Netscape 4.1
Modules:
DBI 1.13
mod_perl is not installed
Msql-Mysql-modules
So here is the problem: When placed on the server for public viewing, our site causes a slow memory leak which gradually consumes the 2GB of RAM on the server and eventually crashes it. Placing one of our CGI files in a shell script and running it with command line arguments in a loop 100 times crashes the server immediately. However, when we take this same script and run it on a server with the same environment except with PERL 5.005_03, no memory leak occurs. Normally, I would just upgrade the version of PERL on the original server and put it behind me, but I can't because it is not my server-it is a corporate one...I might be able to get it installed but I need "real documented proof" that this is the problem before I can get the corporate server team to upgrade as it will require testing on a massive scale.
Also, the scripts have been looked at repeatedly and exhaustively by seasoned programmers...there is nothing that should be causing this...all database and file handles that are opened are closed again, the scripts do not spawn additional processes, there are no infinite loops, etc. Since the problem occurs at the command line at well, we can pretty much rule the webserver out. So...any ideas?
Anything at all would help, even if you are just speculating and dont have a real clue...