Running a CLI script that fopen's a file, parses the lines into an
array, checks the array entries against a few regular expression
qualifiers (i.e. !eregi("bot",$e ntry)) and dump the good entries into
a MySQL db.
The fopen'ed file is a 410MB text file with log entries formatted like
a .CSV file ("" text qualifiers and comma separators).
Running the script from a web browser in Windows98: Works fine, except
it stops about 1/10th of the way through (@~40MB).
Running the script via CLI on the RH9 server: Works fine, except I get
"Terminated " about 3/4rs of the way through (@~300MB).
Am I running into a memory useage issue or what? There's no
distinction between the last entry run successfully and the one after
that, in the log file dump, and everything goes into the db
fine...until the script terminates.
The Windows98 machine is running 512MB/PC133 DRAM with a 120GB HDD,
connected via a full T1 to the RH9 server with the MySQL db.
The RH9 server is a production server (I know...but I'm running out of
options on where to process this behemoth text file!) running 1GB RAM
and twin 60GB HDDs.
I will probably take what I have, trim the file to the remaining
entries, and append to the db, however I would like to understand why
the script is cutting out.
Thanks in advance for any illumination!
array, checks the array entries against a few regular expression
qualifiers (i.e. !eregi("bot",$e ntry)) and dump the good entries into
a MySQL db.
The fopen'ed file is a 410MB text file with log entries formatted like
a .CSV file ("" text qualifiers and comma separators).
Running the script from a web browser in Windows98: Works fine, except
it stops about 1/10th of the way through (@~40MB).
Running the script via CLI on the RH9 server: Works fine, except I get
"Terminated " about 3/4rs of the way through (@~300MB).
Am I running into a memory useage issue or what? There's no
distinction between the last entry run successfully and the one after
that, in the log file dump, and everything goes into the db
fine...until the script terminates.
The Windows98 machine is running 512MB/PC133 DRAM with a 120GB HDD,
connected via a full T1 to the RH9 server with the MySQL db.
The RH9 server is a production server (I know...but I'm running out of
options on where to process this behemoth text file!) running 1GB RAM
and twin 60GB HDDs.
I will probably take what I have, trim the file to the remaining
entries, and append to the db, however I would like to understand why
the script is cutting out.
Thanks in advance for any illumination!
Comment