> Hello, > > I have to write a "daemon" in Perl, with the quite simple structure below : > > sub test { > while(1) { > Oracle database connection; > $state = result of a database query; > > if ( $state == 1 ) { > call to another function; > } > } > } > > My function "test" works and makes its job perfectly. Despite this, I have > pointed a problem out : memory leak. Indeed, the memory size of the process > grows significantly during its running time, and this is not acceptable. > I begin to believe writing a such "daemon" in Perl is not a good idea, > according > to articles I read recently. But if someone here has an idea, or suggestions > to > help me, you would spare me a lot of time. > > Thanks for help > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > >
Hello again, I have remembered I was using an "old" version of Perl, the first release of the 5.8.x branch : 5.8.0. I know by experience that using in production environment the very first releases of such new versions is not a good idea, and it seems I'm right. I have installed the lastest release : 5.8.8 and it seems to solve my problem ! Of course I need to make further tests, I'll post later to confirm. Mickaƫl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>