out of memory
- From: hirenshah.05@xxxxxxxxx ("friend.05@xxxxxxxxx")
- Date: Fri, 31 Oct 2008 09:01:09 -0700 (PDT)
Hi,
I want to parse large log file (in GBs)
and I am readin 2-3 such files in hash array.
But since it will very big hash array it is going out of memory.
what are the other approach I can take.
Example code:
open ($INFO, '<', $file) or die "Cannot open $file :$!\n";
while (<$INFO>)
{
(undef, undef, undef, $time, $cli_ip, $ser_ip, undef, $id,
undef) = split('\|');
push @{$time_table{"$cli_ip|$id"}}, $time;
}
close $INFO;
In above code $file is very big in size(in Gbs); so I am getting out
of memory !
.
- Prev by Date: Re: Issue with references and array slice with one member !
- Next by Date: merge 2 or more files together without creating new file
- Previous by thread: Issue with references and array slice with one member !
- Next by thread: merge 2 or more files together without creating new file
- Index(es):
Relevant Pages
|