Author Topic: My server is timing me out at 4500 emails!  (Read 3426 times)

positiveprofits

  • Posts: 10
    • View Profile
My server is timing me out at 4500 emails!
« on: May 09, 2006, 12:45:07 pm »
How do i increase the amount of emails that go out without having to press teh resume button?  this is very frustrating! :(
It is timing out at around 4500 emails.
David Shirar

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
My server is timing me out at 4500 emails!
« Reply #1 on: May 09, 2006, 05:34:45 pm »
What is your SMTP 'Reconnect every X emails' option set to on the Configuration page?  Is it over 4500?  If so, you may want to reduce it to 2500 or 1000.

In more recent versions you might enable the option "Write SMTP Log" on the Send Email page to see if there is a server error message ListMail is missing.

Your host could have a strict limit on the execution time of PHP scripts.  This might cause what you describe - you'll have to ask your host about this possibility.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

positiveprofits

  • Posts: 10
    • View Profile
thanks for the reply
« Reply #2 on: May 09, 2006, 11:15:14 pm »
i  am getting a green line on teh bottom of the ie page.  s th mailing goes so does the green line till i reach around 4500 or 5000.  then the page says DONE on teh bottom left.  its like the page itself is timing out.
my smtp reconnect is set at 2.5k.
I will try with a different, lower number like you said.
perhps its a problem with teh server....I did send a support ticket with tech support...perhaps you or one of your masterminds could assist.
Im lost basically.

Peace
David

positiveprofits

  • Posts: 10
    • View Profile
here ya go, some concrete info
« Reply #3 on: May 09, 2006, 11:22:52 pm »
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/fattomcat.com/httpdocs/l/admin.php on line 615
that happened at about 6500


so i tried again, and i got to 13000 and no message of error.
so far im just having to watch it.  

the message also says ' mailer seems to be failing'.

any suggestions??

Peace
David

positiveprofits

  • Posts: 10
    • View Profile
My server is timing me out at 4500 emails!
« Reply #4 on: May 09, 2006, 11:49:57 pm »
Cannot write SMTP debug file (./attach/LM_SMTP_2006-05-10-02-42-55.txt)
Is your ./attach folder CHMOD 777? SMTP log disabled.


the above is what i got before my next mailing.


Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/fattomcat.com/httpdocs/l/admin.php on line 680

then the above happened at about 6500.

I will wait for your reply till I post again.  It would be great if you could check my support ticket at tech support.  perhaps its an internal prob.


Thank You
David

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
My server is timing me out at 4500 emails!
« Reply #5 on: May 10, 2006, 05:18:14 pm »
David,

It appears that your host does not allow running scripts past 30 seconds.  Please ask your host to turn "PHP safe mode" off for your domain - that should fix it.

Here's a timer test script you can upload to your site (as .php) and browse to:
Code: [Select]
<?phpini_set('max_execution_time',0);   function timeWait($microtime)   {       $timeLimit = $microtime + array_sum(explode(" ",microtime()));       while(array_sum(explode(" ",microtime())) < $timeLimit)       {/*nothing*/}       return(true);   }   echo "Testing 1s...<br>Process started at " . date("H:i:s") . " and " . current(explode(" ",microtime())) . " nanoseconds.<br>";flush();   timeWait(1);   echo "Process completed at " . date("H:i:s") . " and " . current(explode(" ",microtime())) . " nanoseconds.<br><br>";   echo "Testing 5s...<br>Process started at " . date("H:i:s") . " and " . current(explode(" ",microtime())) . " nanoseconds.<br>";flush();   timeWait(5);   echo "Process completed at " . date("H:i:s") . " and " . current(explode(" ",microtime())) . " nanoseconds.<br><br>";   echo "Testing 35s...<br>Process started at " . date("H:i:s") . " and " . current(explode(" ",microtime())) . " nanoseconds.<br>";flush();   timeWait(35);   echo "Process completed at " . date("H:i:s") . " and " . current(explode(" ",microtime())) . " nanoseconds.";?>


Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

positiveprofits

  • Posts: 10
    • View Profile
Called Tech Support!
« Reply #6 on: May 11, 2006, 12:01:58 pm »
I called tech support; my guy said safe mode is off and has been.
what else can i try?

david

btw thanks for the timer script

positiveprofits

  • Posts: 10
    • View Profile
How and Where??
« Reply #7 on: May 12, 2006, 02:18:42 pm »
Hi Dean, thanks for the timer script...my guy at indexcore says the php is already off the safe mode.  

what does this timer script do and what directory would i upload it to?
Is it part of the listmail program?  


Regards
David

positiveprofits

  • Posts: 10
    • View Profile
ok I tried it!
« Reply #8 on: May 13, 2006, 07:48:26 pm »
I uploaded the script and it did ok for a couple rounds tehn it said:

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/vhosts/fattomcat.com/httpdocs/l/testscript.php on line 6


can anyone help me?

David

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
My server is timing me out at 4500 emails!
« Reply #9 on: May 13, 2006, 09:04:20 pm »
David,
Quote
what does this timer script do and what directory would i upload it to?

The timer script performs 3 operations.  The first one takes 1s, the second 5s, and the third 35s.  If this script does not run to completion it is a definite indication that your server will not allow setting the script time limit as necessary.

Setting the time limit to unlimited is done with this line:
Code: [Select]
ini_set('max_execution_time',0);
There appears to be a strict 30 second limit on PHP script execution on your server/domain.  Your host should be able to allow PHP scripts to set the time limit to unlimited.

Unfortunately, this being server-configuration-related there is nothing else I can do from here.  On my (Plesk-based) servers setting safe mode to OFF fixes it, but your host could have different settings.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

john

  • Posts: 4
    • View Profile
My server is timing me out at 4500 emails!
« Reply #10 on: May 27, 2006, 05:25:08 pm »
Hi David,

In your listmail configuration under Host - I'm assuming you are using smtp server for sending - put in 127.0.0.1 and reconnect every 99 emails.

That's what I've done with one of my lists and the mailing is getting completed now.

John

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
My server is timing me out at 4500 emails!
« Reply #11 on: June 29, 2006, 08:35:30 pm »
Thanks for your reply John but I think David will still have troubles with the 30 second time limit.  I haven't heard back in over a month so I assume/hope his host got it sorted out for him.

We often try "localhost" instead of 127.0.0.1 as it's essentially the same. :)

Regards!
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting