PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Old November 15th, 2012, 10:32 AM
jogboy jogboy is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 jogboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 7 sec
Reputation Power: 0
Mail_queue hangs after c.150 inserts

Hi, I need help - I'm using a foreach loop to run through just over a thousand email addresses on a distribution list and put them into the mail_queue table prior to sending via cron overnight.

The loop executes fine and the onscreen output is completed as expected, however after about 150 inserts instead of returning the id, the error message "Mail Queue Error: Cannot connect to database" comes back for each iteration of the loop. The first 150 emails are committed to the db but the remainder aren't.

There is nothing obvious in any of the logs, all packages are up to date and the same sending system works fine on a small test db of ten or so addresses both before and after the attempted production run.

The emails are html email including two small images - I tried removing the images to see if the memory load was the problem and this didn't make any difference - it still hung same as before.

Anyone got any ideas of what I should check next or how to fix it?

Reply With Quote
Old November 19th, 2012, 04:40 AM
jogboy jogboy is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 2 jogboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 7 sec
Reputation Power: 0
After a weekend of head scratching it came down to explicitly declaring and then raising the my.cnf max_connections setting to an appropriate level. Many thanks to the pear mail_queue team for pointing me in the right direction.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > Mail_queue hangs after c.150 inserts


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap