in reply to processing slows way down
One possibility is that you a have a badly scoped variable or structure that is retaining redundant information from record to record and growing to the point that it becomes harder and harder to allocated enough memory.
A fairly simple test would be to add a
at the bottom of the main loop and use ps or similar tool to monitor and record the tasks memory usage.my $recno = 0; while( <GET RECORD> ) { ... AddRecordToDB( ... ); do{ print 'Check memory:'; <STDIN>; } unless ++$recno % 1000; }
If the memory growth increases substaintially from one check to the next, your leaking somewhere. Then it's a case of tracking down where.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: processing slows way down
by Anonymous Monk on Jul 10, 2004 at 20:14 UTC | |
by BrowserUk (Patriarch) on Jul 10, 2004 at 20:52 UTC | |
by Anonymous Monk on Jul 11, 2004 at 00:42 UTC |