The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-26-2009
satvelucbe satvelucbe is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
memory leak in igawk script

Hi,
We are having igawk statement calling gawk function and processing a master file, each gawk function have rules and action. We are using associative array to keep the output of each rule and finally printing the associative array. We are seeing the memory is growing incrementally in TOP command (size, res). We are deleting the associatve arrays after each pass.

igawk --re-interval -F -v OFS= -f symc.import.awk.Utils -f symc.import.cb.3eye.DSConstants -f symc.import.cb.3eye.DSUtilities -f AR_State_Master_DS1.gawk -f AR_State_Master_DS2.gawk -f Sub_Expr_Master_DS1.gawk -f corrections_Generator.gawk -f metricsGenerator.gawk -f update_Master.gawk "master.txt"

1. What are the tools I can use to find the memory leak
2. What could cause memory leak in gawk with associative array