Re: Perl memory leaks (and valgrind)

2015-10-03 Thread Shlomi Fish
On Fri, 2 Oct 2015 22:07:03 +0200 David Emanuel da Costa Santiago wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > > Hi Shlomi > > I just noticed that, if i merge yenc_encode_c_for_perl with > _yenc_encode_c into one function then valgrind sto

Re: Perl memory leaks (and valgrind)

2015-10-02 Thread David Emanuel da Costa Santiago
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Shlomi I just noticed that, if i merge yenc_encode_c_for_perl with _yenc_encode_c into one function then valgrind stops reporting memory leaks. I need to do more tests though. Thanks and best regards, David Santiago On Thu, 1 Oct 2015 22

Re: Perl memory leaks (and valgrind)

2015-10-01 Thread Shlomi Fish
On Thu, 1 Oct 2015 19:51:12 +0200 David Emanuel da Costa Santiago wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > Now with the code attached. > > Best regards, > David Santiago > Hi David! One thing that strikes me as a problem is the fact that _yenc_encode_c returns a stri

Re: Perl memory leaks (and valgrind)

2015-10-01 Thread David Emanuel da Costa Santiago
tool a reliable tool for checking for memory leaks in > perl and in our perl scripts? > > I have a perl script that's consuming all the memory available on my > system. I rechecked the script and since i didn't found anything > (algorithm wise) that can cause such

Perl memory leaks (and valgrind)

2015-10-01 Thread David Emanuel da Costa Santiago
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello all, Is the valgrind tool a reliable tool for checking for memory leaks in perl and in our perl scripts? I have a perl script that's consuming all the memory available on my system. I rechecked the script and since i didn't foun

Re: Memory leaks with threads

2007-07-09 Thread Michael Scondo
d a runaway of >> the memory consumption. >> After a few hundred connects and disconnects I'll get an Out of memory. :-( >> >> In order to test threads in perl, I wrote a new script which just spawns and >> terminates threads. ( Attached it below ) >> >

Memory leaks with threads

2007-07-05 Thread Michael Scondo
Hi, I'm still trying to get familiar with threads and sockets. However, I got in some troubles with memory leaks, could anyone perhaps give me a hint in which way I should write a multithreaded socket server ? I wrote a small server, which accepts connections on a tcp socket and spawns a

memory leaks

2005-07-23 Thread Tom Allison
I'm running some very long tests using Test::More and after ~20K iterations I am getting ~200MB of memory usage. It's really slowing things down. Are there any pointers on how to track down or eliminate memory leakage? Anything at all would probably help some. -- To unsubscribe, e-mail: [EM

Re: how to find memory leaks?

2002-09-23 Thread david
Steve Grazzini wrote: > David <[EMAIL PROTECTED]> wrote: >> the heap will not go away (because Perl does it's own memory >> management) until the client exit.). > > Actually, the default config uses libc malloc. you simply can't free() yourself david -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: how to find memory leaks?

2002-09-21 Thread Steve Grazzini
David <[EMAIL PROTECTED]> wrote: > the heap will not go away (because Perl does it's own memory > management) until the client exit.). Actually, the default config uses libc malloc. (check perl -V) -- Steve perldoc -qa.j | perl -lpe '($_)=m("(.*)")' -- To unsubscribe, e-mail: [EMAIL PROTEC

Re: how to find memory leaks?

2002-09-21 Thread Frank Wiles
.--[ chad kellerman wrote (2002/09/20 at 15:32:11) ]-- | | I tried doing the same thing but my supervisor got mad. We aren't | allowed to use any type of system call in our scripts. If the system | call is in a perl module it's one thing but not in our code. | | system or e

Re: how to find memory leaks?

2002-09-20 Thread chad kellerman
Frank- I think he believes it's more of a security issue then anything else. We only have three os's here. Solaris x86, Solaris sparc, and linux. So I don't think it's a port issue. --chad On Fri, 2002-09-20 at 15:49, Frank Wiles wrote: > .--[ chad kellerman wrote (2002/09/20 at 15

RE: how to find memory leaks?

2002-09-20 Thread david
Chad Kellerman wrote: > I tried doing the same thing but my supervisor got mad. We aren't > allowed to use any type of system call in our scripts. If the system > call is in a perl module it's one thing but not in our code. > > system or exec anything that executes from /bin/sh > > even thoug

RE: how to find memory leaks?

2002-09-20 Thread chad kellerman
I tried doing the same thing but my supervisor got mad. We aren't allowed to use any type of system call in our scripts. If the system call is in a perl module it's one thing but not in our code. system or exec anything that executes from /bin/sh even though it is so much nicer to do that, esp

RE: how to find memory leaks?

2002-09-20 Thread david
Chad Kellerman wrote: > Dave, > > Actually in each fork. I was tarring up information from another > server with Net::SSH::Perl. The full tar ball was written to stdout and > I would gzip in on the originating server. If I did not fork each tar > the server would crash in a matter of minutes

RE: how to find memory leaks?

2002-09-20 Thread chad kellerman
Dave, Actually in each fork. I was tarring up information from another server with Net::SSH::Perl. The full tar ball was written to stdout and I would gzip in on the originating server. If I did not fork each tar the server would crash in a matter of minutes. But with the forks I actually co

RE: how to find memory leaks?

2002-09-20 Thread david
Chad Kellerman wrote: > > here's my $.02 on this subject. Correct me if I am wrong. > Once perl uses memory it does not want to let it go back to the system. > I believe I have read the the developers are working on this. Since you > have your script running as a daemon. It will not release a

RE: how to find memory leaks?

2002-09-20 Thread chad kellerman
; -Original Message- > From: Angerstein [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 12:30 AM > To: [EMAIL PROTECTED] > Subject: how to find memory leaks? > > > Hi, > I have a deamon like programm, which runs tasks at give timestamps. > This is in a w

RE: how to find memory leaks?

2002-09-20 Thread Timothy Johnson
20, 2002 12:30 AM To: [EMAIL PROTECTED] Subject: how to find memory leaks? Hi, I have a deamon like programm, which runs tasks at give timestamps. This is in a while (1) {} if startjobx == time loop. Now i have the problem that one or more of my datastructures eats more and more memory. I

WG: how to find memory leaks?

2002-09-20 Thread Angerstein
-Ursprüngliche Nachricht- Von: Angerstein [mailto:[EMAIL PROTECTED]] Gesendet am: Freitag, 20. September 2002 09:30 An: [EMAIL PROTECTED] Betreff: how to find memory leaks? Hi, I have a deamon like programm, which runs tasks at give timestamps. This is in a while (1) {} if startjobx

how to find memory leaks?

2002-09-20 Thread Angerstein
Hi, I have a deamon like programm, which runs tasks at give timestamps. This is in a while (1) {} if startjobx == time loop. Now i have the problem that one or more of my datastructures eats more and more memory. I "delete" every value after using it from my hashes or array from arrays, but it s

RE: SybPerl - Memory leaks

2002-05-02 Thread Jason Frisvold
egrenes [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 6:45 AM To: Jonathan E. Paton; [EMAIL PROTECTED] Subject: Re: SybPerl - Memory leaks The same thing happens when I comment out the checks. The script uses more memory when I connect to the database: $dbh = new Sybase::DBlib $us

Re: SybPerl - Memory leaks

2002-05-02 Thread Rune Hegrenes
ED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 12:31 PM Subject: Re: SybPerl - Memory leaks > > The script is not smallish, but the main loop looks like this: > > > > { > > # Connecting > > $dbh = new Sybase::DBlib $userid, $password, $host;

Re: SybPerl - Memory leaks

2002-05-02 Thread Jonathan E. Paton
> The script is not smallish, but the main loop looks like this: > > { > # Connecting > $dbh = new Sybase::DBlib $userid, $password, $host; > $dbh->dbuse($database); > > # Checking > checkProsesses(); > checkSegmentStatus(); > getMonitor(); > > # Disconnecting >

Re: SybPerl - Memory leaks

2002-05-02 Thread Rune Hegrenes
Rune - Original Message - From: "Jonathan E. Paton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 12:15 PM Subject: Re: SybPerl - Memory leaks > > I've created a script that is checking the status of an ASE-server.

Re: SybPerl - Memory leaks

2002-05-02 Thread Jonathan E. Paton
> I've created a script that is checking the status of an ASE-server. > It's running in an infinitive loop: > > 1. Connect to the database > 2. Doing some checks... > 3. Disconnecting from the db > 4. Sleeping for avile > 5. > > I found that the perl prosess is using about 4

SybPerl - Memory leaks

2002-05-02 Thread Rune Hegrenes
Hi I've created a script that is checking the status of an ASE-server. It's running in an infinitive loop: 1. Connect to the database 2. Doing som checks... 3. Disconnecting from the db 4. Sleeping for avile 5. I found that the perl prosess is using about 4k more memory fo

Evaluating r.e with parentheses causes memory leaks?

2001-04-29 Thread Pavel Šmerk
Hi, (excuse my poor English, I hope it will be still intelligible ;-) I want to use Perl for some substitutions on large texts, but it seems to me that perl does not correctly free memory after evaluating r.e. with parentheses (see below). Problem is solved by using eval statement around r.e. --