ColdFusion server crashes at 20k emails
Hello,
I'm looping through a 60K recordset and sending mail for each loop iteration. Right arount 20K emails sent, the memory consumed gets so high that the server slows, then crashes. The loop is never able to finish. I notice in Server Monitor that the memory usage slowly creeps up, then right when it hits 100%, it crashes. Hitting garbage collection does no good.
The loop that is running does a simple cfmail, then an insert into the database to log this process in order to follow the process and see how many mails went out. The code is located in a cffunction inside a cfc.
I'm running ColdFusion 8.0, Standard Edtion. Should I increase the Heap size? That seems like it might give it more time before it crashes again. It seems like the server is holding memory for some reason, as if the loop iteration is requiring CF to create objects, then load them into memory, and not release until the process has stopped. I'm not creating anything that I think would cause CF to store into memory.
Any help is appreciated.
Peter
