rle Former NetApp Employee

Re: file-list-directory-iter-start/next/end

Hi Rahul,

The reason that your memory process space goes up to 2 GB, is because you request all the records in the iter-next invoke. Try requesting less records, maybe a 100 at a time, and see what happens.  The iter APIs were designed to put less stress on client memory and meter network bandwidth.  I realize that a lot of API examples use the records value from the iter-start, but less stress way is to use the iter-next APIs with small records size.  I hope this helps,

   - Rick -