we use <cfloop><cfmail/></cfloop> to send out emails, so does it mean that it could be cfmail tag which could be causing memory leaks? does cfmail use dllhost.exe as i have noticed this using huge amounts of memory and processor time?
-----Original Message----- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 14:14 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] Mailing Lists question > I have a question on large number of emails using cfmail. We are sending > out HTML emails to around 7000 registered users. We are currently looping > through cfmail tag using cfloop the required number of times and send out > emails using our IMail server. > Is there a better way of sending out this many emails? > I have noticed that whenever this many emails are sent out the server > processor usage reaches nearly 100%! and have seen that a process called > dllhost.exe uses up nearly 60percent of the processor and uses large amounts > of memory. > Can sending out 7000 emails from coldfusion using a cfloop cause this > problem. We use cf5. Our server has 1gig ram and good hard disk space. > Any advice, suggestions or links would be most welcome > Yes, but whatever you do DO NOT use the query attribute of CFMAIL. You will flood CF and the your mail server, probably crashing both and losing your batch of emails. ColdFusion is a little too efficient at producing the emails like this. If you're using CF to spool the mails to your mail server, you should look at introducing code that sends a number of emails, checks to see how many emails are in the spool folder and put a wait in until the queue goes down and then send another batch of emails. You'll hear tales of people sending upto 100,000 emails at one go with no problems, but then someone else will lose/bouncing 1 in 5 emails when sending 10,000 emails. CFMAIL is very useful, but it leaks memory like a sieve. So sending this number of emails using CFMAIL will probably require a restart of CF after its completed to free up the lost memory. Your best bet is to integrate directly with your mail server by writing the emails the mail servers spool or looking at infusion Mail Server, which being CF-based is very easy to integrate into (currently runs the houseof fusion mailing lists 1mil+ emails daily) http://www.coolfusion.com/products/ims/index.cfm Hope this helps. Stephen -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
