php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63719 mail function becomes slow until apache restart
Submitted: 2012-12-07 13:12 UTC Modified: 2013-02-18 00:36 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (33.3%)
From: skunk at ipfrom dot com Assigned:
Status: No Feedback Package: Mail related
PHP Version: 5.3.19 OS: gentoo linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: skunk at ipfrom dot com
New email:
PHP Version: OS:

 

 [2012-12-07 13:12 UTC] skunk at ipfrom dot com
Description:
------------
i'm seeing this on more than one production servers:
after some days of uptime the mail() function starts to take about a minute to 
execute and only a restart of apache (prefork) makes it fast again.
one of the web servers is running roundcube which has the possibility to either 
use the mail() function or to connect directly to a smtp server, with the former 
after few days sending a mail becomes very slow while with the latest it's always 
fast,
on a side note, when the slowness starts happening apache takes a long time to 
kill all processes on restart.
thank you.

Test script:
---------------
sorry, i'm unable to replicate this issue because it happens on production servers with real traffic.

Expected result:
----------------
mail() function should exec fast

Actual result:
--------------
when mail() slows down a restart of apache is required

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-07 13:38 UTC] skunk at ipfrom dot com
i forgot to say the sendmail command works fine and even executing from the 
command line a script containing the mail() function is practically 
instantaneous, it happens only if apache (2.2.23) executes the script.
 [2012-12-18 22:28 UTC] willfitch@php.net
-Status: Open +Status: Feedback
 [2012-12-18 22:28 UTC] willfitch@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

You need to provide a sample script that's causing the issue. This sounds like an 
environment specific problem.
 [2013-02-18 00:36 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC