FW: FW: Running out of memory

2001-07-10 Thread Blader Robert G DLVA
Thanks to everyone that responded. Adding a "my" before the line that did the split and stored the result in an array - @fw_logs = split(/;/, $LINE); seemed to make all the difference. I'm not certain I understand why - if anyone can shed light on that I'd appreciate it. for that ma

Re: Running out of memory

2001-07-10 Thread Michael Fowler
On Tue, Jul 10, 2001 at 01:35:05PM +0100, John Edwards wrote: > open ( FWLOG, "./logfile.010626"); > > while() { # Reads one line at a time into memory > ... > } > > @data = ; # Reads the whole file into memory > > You are replicating the second case, by reading the file a line at a time, > the

Re: FW: Running out of memory

2001-07-10 Thread Michael Fowler
On Tue, Jul 10, 2001 at 07:18:22AM -0400, Blader Robert G DLVA wrote: > open ( FWLOG, "./logfile.010626"); > > while ( $LINE = ) { > > chomp ($LINE); > @fw_log = split (/;/, $LINE); > > } If this is the only code you're using that has the problem you describe, and you didn't

RE: Running out of memory

2001-07-10 Thread John Edwards
-- From: Blader Robert G DLVA [mailto:[EMAIL PROTECTED]] Sent: 10 July 2001 12:18 To: '[EMAIL PROTECTED]' Subject: FW: Running out of memory I have a program that reads through a log file (from a firewall actually) and generates a few statistics from it. Problem is that is use

FW: Running out of memory

2001-07-10 Thread Blader Robert G DLVA
I have a program that reads through a log file (from a firewall actually) and generates a few statistics from it. Problem is that is uses a ton of memory. I had to add a lot (500MB) of swap to a Linux box with 128 MB to begin with. BTW - Nothing else is running. I commented out everyt

Re: Huge hash ... running out of memory without warning???

2001-06-14 Thread Brett W. McCoy
On Thu, 14 Jun 2001, Paul wrote: > dbm's are *wonderful* for some data, but not for dynamically accessing > complex data structures. This only stores the top level, which *points* > to actual data further down the chain at the time of the program run. :o/ Right. In a later message, I suggested

Re: Huge hash ... running out of memory without warning???

2001-06-14 Thread Paul
int this part of that array...' > > Thought it was a bug in the code, but then I ran the program on a > > machine with more memory and *now* the elements that were missing > > previously are printed, but some 'further on down the line' are > not. It > > se

RE: Huge hash ... running out of memory without warning???

2001-06-13 Thread Brett W. McCoy
On Wed, 13 Jun 2001, Bryan Gmyrek wrote: > Hi, I tried to do this, but it didn't really work because first I > declare an array like this: > my @day; > > Then I did as you said... > > Then, I add information using things like: > > $day[$ext]{$line[2]}{$line[0]}{pages}=$line[1]; Oh, yeah, you're

Re: RE: Huge hash ... running out of memory without warning???

2001-06-13 Thread Eduard Grinvald
IL PROTECTED]> Date: Wednesday, June 13, 2001 2:59 pm Subject: RE: Huge hash ... running out of memory without warning??? > Eduard, > > Thanks for the help. I think I will tie it into a DB file as you > suggest. Too bad this has to be such a pain ... it is so > '

RE: Huge hash ... running out of memory without warning???

2001-06-13 Thread Bryan Gmyrek
MAIL PROTECTED] Subject: Re: Huge hash ... running out of memory without warning??? On Wed, 13 Jun 2001, Bryan Gmyrek wrote: > I have just written a program that makes an array of hashes of hashes of > hashes. It reads all kind of information in from a bunch of files and > then later I a

Re: Huge hash ... running out of memory without warning???

2001-06-13 Thread WebMaster AIM-US
... running out of memory without warning??? Author: <[EMAIL PROTECTED]> at Internet Date:6/13/2001 2:04 PM I have just written a program that makes an array of hashes of hashes of hashes. It reads all kind of information in from a bunch of files and then later I access the elements o

Re: Huge hash ... running out of memory without warning???

2001-06-13 Thread Brett W. McCoy
with more memory and *now* the elements that were missing > previously are printed, but some 'further on down the line' are not. It > seems that the computer is running out of memory and at some point no > data really gets added to this monster of a list of lists... What the > he

Re: Huge hash ... running out of memory without warning???

2001-06-13 Thread Eduard Grinvald
ybVrFf+QHtfgkAsRK3oXY+7gwAJ4sWtYC GuYw+8LgdC7Mp2ICim9MqA== =iAF5 -END PGP PUBLIC KEY BLOCK- =cut - Original Message - From: "Bryan Gmyrek" <[EMAIL PROTECTED]> Date: Wednesday, June 13, 2001 2:04 pm Subject: Huge hash ... running out of memory without warning??? > I have ju

Huge hash ... running out of memory without warning???

2001-06-13 Thread Bryan Gmyrek
t some 'further on down the line' are not. It seems that the computer is running out of memory and at some point no data really gets added to this monster of a list of lists... What the heck should I do so that I can perform these functions, but not run into this problem of running out of memory? Cheers, Bryan