You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/11/04 00:15:02 UTC
DO NOT REPLY [Bug 52132] New: process activity score calculated
incorrectly if time changes
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132
Bug #: 52132
Summary: process activity score calculated incorrectly if time
changes
Product: Apache httpd-2
Version: 2.2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_fcgid
AssignedTo: bugs@httpd.apache.org
ReportedBy: aphplix@gmail.com
Classification: Unclassified
Changing the system time by -1 hour caused the calculation of the process
activity score to be incorrect. This prevented the spawning of new application
processes for approx 1 hour.
FcgidTimeScore was set to default (1).
FcgidSpawnScoreUpLimit was set to default (10).
/var/log/messages
Nov 3 19:42:58 server207-27 ntpd[5052]: synchronized to 213.171.201.6, stratum
2
Nov 3 18:42:58 server207-27 ntpd[5052]: time reset -3599.951366 s
Nov 3 18:42:58 server207-27 ntpd[5052]: kernel time sync enabled 0001
...
/var/log/httpd/error_log
[Thu Nov 03 18:57:37 2011] [info] mod_fcgid: /index.php spawn score 2534 >= 10,
skip the spawn request
[Thu Nov 03 18:57:38 2011] [info] mod_fcgid: /index.php spawn score 2533 >= 10,
skip the spawn request
...
/var/log/http/vhost/error_log
[Thu Nov 03 19:25:58 2011] [warn] mod_fcgid: can't apply process slot for
/index.php
[Thu Nov 03 19:26:00 2011] [warn] mod_fcgid: can't apply process slot for
/cometchat_receive.php
...
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52132] [PATH] process activity score calculated
incorrectly if time changes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132
Michał Grzędzicki <la...@iq.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|process activity score |[PATH] process activity
|calculated incorrectly if |score calculated
|time changes |incorrectly if time changes
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52132] process activity score calculated
incorrectly if time changes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132
Michał Grzędzicki <la...@iq.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52132] process activity score calculated
incorrectly if time changes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132
Michał Grzędzicki <la...@iq.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #2 from Michał Grzędzicki <la...@iq.pl> 2012-04-10 21:14:52 UTC ---
the logs suggest absolute time change the code in
fcgid_spawn_ctl.c/register_life_death()
...
/* Decrease the score based on elapsed time */
current_node->score -=
sconf->time_score *
(int)(apr_time_sec(now) - apr_time_sec(current_node->last_stat_time));
/* Make score reasonable */
if (current_node->score < 0)
current_node->score = 0;
current_node->last_stat_time = now;
mod_fcgid can easly check for time going backward, this function Isn't used
very often so I think it won't have any impact on performance
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52132] process activity score calculated
incorrectly if time changes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132
--- Comment #3 from Michał Grzędzicki <la...@iq.pl> 2012-04-10 21:16:07 UTC ---
Created attachment 28573
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28573
check for time going back
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52132] process activity score calculated
incorrectly if time changes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132
William A. Rowe Jr. <wr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from William A. Rowe Jr. <wr...@apache.org> 2012-01-19 17:34:45 UTC ---
This is to be expected if you are changing absolute time. It causes havoc
on other time-sensitive apps and services as well.
If it happens due to a time zone change (local time) that is a defect. Could
you clarify for us?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 52132] [PATCH] process activity score calculated
incorrectly if time changes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132
Michał Grzędzicki <la...@iq.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[PATH] process activity |[PATCH] process activity
|score calculated |score calculated
|incorrectly if time changes |incorrectly if time changes
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org