in reply to How to Accurately Determine Amount of RAM
Hi Rob,
This sounds like an XY Problem to me. Rather than looking into how much memory there is, why not look into the issue of why you're using so much memory?
At a guess, I'd say you are reading the entire file into memory -- and when that exhausts available memory, your script fails. A better approach would be to read the file in a line (or chunk) at a time. Does that help at all?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to Accurately Determine Amount of RAM
by hepcat72 (Sexton) on Jul 08, 2014 at 18:12 UTC | |
by talexb (Chancellor) on Jul 08, 2014 at 19:10 UTC |