Received: (qmail 26900 invoked by uid 2012); 28 Dec 1998 16:17:06 -0000 Message-Id: <19981228161706.26899.qmail@hyperreal.org> Date: 28 Dec 1998 16:17:06 -0000 From: Steve Etzell Reply-To: etzell@mindframe.com To: apbugs@hyperreal.org Subject: Apache hangs after heavy/long usage X-Send-Pr-Version: 3.2 >Number: 3599 >Category: os-windows >Synopsis: Apache hangs after heavy/long usage >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 >Closed-Date: Sun Jul 16 19:09:51 PDT 2000 >Last-Modified: Sun Jul 16 19:09:51 PDT 2000 >Originator: etzell@mindframe.com >Release: 1.3.3 >Organization: >Environment: Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. >Description: Apache is being used with Cold Fusion to server a high traffic commerce site. This site easily saturates a T1 line with traffic. We started using apache over Netscape Enterprise 3.5.1 for performance reasons. I originally configed apache with MaxRequestsPerChild set to 300000. Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 and the apache worked fine for about a day and a half. It never totaly hung but most people got a 'server too busy' response. Stop and start the apache process and everything was fine. I saw a bugreport about the MaxRequestsPerChild. I only mentioned it becuase the server hang for the MaxRequestsPerChild is exactly the same as the hang over extended use. >How-To-Repeat: set MaxRequestsPerChild to anything but 0 or Use the site under heavy traffic with cold fusion for a while. >Fix: No >Release-Note: >Audit-Trail: State-Changed-From-To: open-feedback State-Changed-By: coar State-Changed-When: Mon Dec 28 08:31:25 PST 1998 State-Changed-Why: 1.3b6 is quite old, and as the name implies it is a beta release. Please upgrade to 1.3.3 and see if the problem is still there. From: Steve Etzell To: coar@apache.org, apbugs@apache.org Cc: Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Mon, 28 Dec 1998 10:36:15 -0600 coar@apache.org wrote: > > [In order for any reply to be added to the PR database, ] > [you need to include in the Cc line ] > [and leave the subject line UNCHANGED. This is not done] > [automatically because of the potential for mail loops. ] > [If you do not include this Cc, your reply may be ig- ] > [nored unless you are responding to an explicit request ] > [from a developer. ] > [Reply only with text; DO NOT SEND ATTACHMENTS! ] > > Synopsis: Apache hangs after heavy/long usage > > State-Changed-From-To: open-feedback > State-Changed-By: coar > State-Changed-When: Mon Dec 28 08:31:25 PST 1998 > State-Changed-Why: > > 1.3b6 is quite old, and as the name implies it is a beta > release. Please upgrade to 1.3.3 and see if the problem > is still there. Oops, I actually have 1.3.3 installed. I don't know where my brain was when I entered the version #. Release-Changed-From-To: 1.3b6-1.3.3 Release-Changed-By: coar Release-Changed-When: Mon Dec 28 09:15:04 PST 1998 From: Dirk-WIllem van Gulik To: etzell@mindframe.com Cc: apbugs@hyperreal.org Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Wed, 30 Dec 1998 14:19:36 +0100 Steve Etzell wrote: > >Number: 3599 > >Category: os-windows > >Synopsis: Apache hangs after heavy/long usage > >Confidential: no > >Severity: critical > >Priority: medium > >Responsible: apache > >State: open > >Class: sw-bug > >Submitter-Id: apache > >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 > >Last-Modified: > >Originator: etzell@mindframe.com > >Organization: > apache > >Release: 1.3b6 > >Environment: > Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. > >Description: > Apache is being used with Cold Fusion to server a high traffic commerce > site. This site easily saturates a T1 line with traffic. We started > using apache over Netscape Enterprise 3.5.1 for performance reasons. > I originally configed apache with MaxRequestsPerChild set to 300000. > Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 > and the apache worked fine for about a day and a half. It never totaly > hung but most people got a 'server too busy' response. Stop and > start the apache process and everything was fine. Although this might have everything to do with Solaris libraries, rather than Cold Fusion; I:ve ran into much the same on Solaris 2.5 around the 10k requests per single child. (Solaris was for us about three times as fast, on the same hardware) It clearly is not a memory leak; and running it with truss revealed it whas in the ODBC of the cold fusion module. Lowering the MaxRequestsPerChild to 2k 'solved' the issue. Interesting to note; it only seemed to be the number of request, not the load, or the time in which it happened and only when ODBC was involved. The move to solaris caused such a low MaxRequestsPerChild not to have any noticable impact Are you sure that on NT there is such an impact to warrant a high max request per child, it is there exactly to prevent this sort of resource hog hangs ? > I saw a bugreport about the MaxRequestsPerChild. I only mentioned > it becuase the server hang for the MaxRequestsPerChild is exactly > the same as the hang over extended use. > >How-To-Repeat: > set MaxRequestsPerChild to anything but 0 or Use the site under > heavy traffic with cold fusion for a while. > >Fix: > No > >Audit-Trail: > >Unformatted: > [In order for any reply to be added to the PR database, ] > [you need to include in the Cc line ] > [and leave the subject line UNCHANGED. This is not done] > [automatically because of the potential for mail loops. ] > [If you do not include this Cc, your reply may be ig- ] > [nored unless you are responding to an explicit request ] > [from a developer. ] > [Reply only with text; DO NOT SEND ATTACHMENTS! ] From: Dirk-WIllem van Gulik To: etzell@mindframe.com Cc: apbugs@hyperreal.org Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Wed, 30 Dec 1998 16:56:41 +0100 Steve Etzell wrote: > >Number: 3599 > >Category: os-windows > >Synopsis: Apache hangs after heavy/long usage > >Confidential: no > >Severity: critical > >Priority: medium > >Responsible: apache > >State: open > >Class: sw-bug > >Submitter-Id: apache > >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 > >Last-Modified: > >Originator: etzell@mindframe.com > >Organization: > apache > >Release: 1.3b6 > >Environment: > Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. > >Description: > Apache is being used with Cold Fusion to server a high traffic commerce > site. This site easily saturates a T1 line with traffic. We started > using apache over Netscape Enterprise 3.5.1 for performance reasons. > I originally configed apache with MaxRequestsPerChild set to 300000. > Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 > and the apache worked fine for about a day and a half. It never totaly > hung but most people got a 'server too busy' response. Stop and > start the apache process and everything was fine. Although this might have everything to do with Solaris libraries, rather than Cold Fusion; I:ve ran into much the same on Solaris 2.5 around the 10k requests per single child. (Solaris was for us about three times as fast, on the same hardware) It clearly is not a memory leak; and running it with truss revealed it whas in the ODBC of the cold fusion module. Lowering the MaxRequestsPerChild to 2k 'solved' the issue. Interesting to note; it only seemed to be the number of request, not the load, or the time in which it happened and only when ODBC was involved. The move to solaris caused such a low MaxRequestsPerChild not to have any noticable impact Are you sure that on NT there is such an impact to warrant a high max request per child, it is there exactly to prevent this sort of resource hog hangs ? > I saw a bugreport about the MaxRequestsPerChild. I only mentioned > it becuase the server hang for the MaxRequestsPerChild is exactly > the same as the hang over extended use. > >How-To-Repeat: > set MaxRequestsPerChild to anything but 0 or Use the site under > heavy traffic with cold fusion for a while. > >Fix: > No > >Audit-Trail: > >Unformatted: > [In order for any reply to be added to the PR database, ] > [you need to include in the Cc line ] > [and leave the subject line UNCHANGED. This is not done] > [automatically because of the potential for mail loops. ] > [If you do not include this Cc, your reply may be ig- ] > [nored unless you are responding to an explicit request ] > [from a developer. ] > [Reply only with text; DO NOT SEND ATTACHMENTS! ] From: Steve Etzell To: Dirk.vanGulik@jrc.it, apbugs@Apache.Org Cc: Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Wed, 30 Dec 1998 10:49:43 -0600 Dirk-WIllem van Gulik wrote: > > Steve Etzell wrote: > > > >Number: 3599 > > >Category: os-windows > > >Synopsis: Apache hangs after heavy/long usage > > >Confidential: no > > >Severity: critical > > >Priority: medium > > >Responsible: apache > > >State: open > > >Class: sw-bug > > >Submitter-Id: apache > > >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 > > >Last-Modified: > > >Originator: etzell@mindframe.com > > >Organization: > > apache > > >Release: 1.3b6 > > >Environment: > > Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. > > >Description: > >Apache is being used with Cold Fusion to server a high traffic commerce > > site. This site easily saturates a T1 line with traffic. We started > > using apache over Netscape Enterprise 3.5.1 for performance reasons. > > I originally configed apache with MaxRequestsPerChild set to 300000. > > Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 > and the apache worked fine for about a day and a half. It never totaly > > hung but most people got a 'server too busy' response. Stop and > > start the apache process and everything was fine. > > Although this might have everything to do with Solaris libraries, rather > than Cold Fusion; I:ve ran into much the same on Solaris 2.5 around the > 10k requests per single child. (Solaris was for us about three times as > fast, on the same hardware) It clearly is not a memory leak; and running > it with truss revealed it whas in the ODBC of the cold fusion module. > Lowering the MaxRequestsPerChild to 2k 'solved' the issue. Interesting > to note; it only seemed to be the number of request, not the load, > or the time in which it happened and only when ODBC was involved. > The move to solaris caused such a low MaxRequestsPerChild not to > have any noticable impact > > Are you sure that on NT there is such an impact to warrant a high max > request per child, it is there exactly to prevent this sort of > resource hog hangs ? We have Apache running on another server that is not using CF nearly as much and we never have a problem with that site. I tried setting MaxRequestsPerChild to 5000. It ran for about 20 minutes before restarting itself. In the next 10 minutes after that the server became busy and received 5000 access in about 10 minutes. Apache hung while servicing 98 request (150 max) and had 5100 total access. I waited about 2 minutes for the process to restart itself and it never did. I stopped and started the process manually. I tried setting it to 2000 as you suggested and Apache just hung faster while servicing about the same load. I set MaxRequestsPerChild back to 0 so it will at least run longer before hanging. I have Apache and CF stop and start at 0300 every day to prevent problems. It still hangs at least once a day in its current configuration. I'm fairly certain that Apache hangs because we are using CF. I need to know whether it is something I can nag Allaire about or if it is something that can be fixed on the Apache end. I have a much better chance of keeping this site up if there is a modification I can make to Apache. > > I saw a bugreport about the MaxRequestsPerChild. I only mentioned > > it becuase the server hang for the MaxRequestsPerChild is exactly > > the same as the hang over extended use. > > >How-To-Repeat: > > set MaxRequestsPerChild to anything but 0 or Use the site under > > heavy traffic with cold fusion for a while. > > >Fix: > > No > > >Audit-Trail: > > >Unformatted: > > [In order for any reply to be added to the PR database, ] > > [you need to include in the Cc line ] > > [and leave the subject line UNCHANGED. This is not done] > > [automatically because of the potential for mail loops. ] > > [If you do not include this Cc, your reply may be ig- ] > > [nored unless you are responding to an explicit request ] > > [from a developer. ] > > [Reply only with text; DO NOT SEND ATTACHMENTS! ] From: Dirk-WIllem van Gulik To: Steve Etzell Cc: apbugs@Apache.Org Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Fri, 01 Jan 1999 12:54:33 +0100 Steve Etzell wrote: > Dirk-WIllem van Gulik wrote: > > > > Steve Etzell wrote: > > > > > >Number: 3599 > > > >Category: os-windows > > > >Synopsis: Apache hangs after heavy/long usage > > > >Confidential: no > > > >Severity: critical > > > >Priority: medium > > > >Responsible: apache > > > >State: open > > > >Class: sw-bug > > > >Submitter-Id: apache > > > >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 > > > >Last-Modified: > > > >Originator: etzell@mindframe.com > > > >Organization: > > > apache > > > >Release: 1.3b6 > > > >Environment: > > > Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. > > > >Description: > > >Apache is being used with Cold Fusion to server a high traffic commerce > > > site. This site easily saturates a T1 line with traffic. We started > > > using apache over Netscape Enterprise 3.5.1 for performance reasons. > > > I originally configed apache with MaxRequestsPerChild set to 300000. > > > Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 > > and the apache worked fine for about a day and a half. It never totaly > > > hung but most people got a 'server too busy' response. Stop and > > > start the apache process and everything was fine. > > > > Although this might have everything to do with Solaris libraries, rather > > than Cold Fusion; I:ve ran into much the same on Solaris 2.5 around the > > 10k requests per single child. (Solaris was for us about three times as > > fast, on the same hardware) It clearly is not a memory leak; and running > > it with truss revealed it whas in the ODBC of the cold fusion module. > > Lowering the MaxRequestsPerChild to 2k 'solved' the issue. Interesting > > to note; it only seemed to be the number of request, not the load, > > or the time in which it happened and only when ODBC was involved. > > The move to solaris caused such a low MaxRequestsPerChild not to > > have any noticable impact > > > > Are you sure that on NT there is such an impact to warrant a high max > > request per child, it is there exactly to prevent this sort of > > resource hog hangs ? > > We have Apache running on another server that is not using CF > nearly as much and we never have a problem with that site. > I tried setting MaxRequestsPerChild to 5000. It ran for > about 20 minutes before restarting itself. In the next 10 > minutes after that the server became busy and received > 5000 access in about 10 minutes. Apache hung while servicing > 98 request (150 max) and had 5100 total access. I waited > about 2 minutes for the process to restart itself and it > never did. I stopped and started the process manually. > > I tried setting it to 2000 as you suggested and Apache just > hung faster while servicing about the same load. I set > MaxRequestsPerChild back to 0 so it will at least run longer > before hanging. I have Apache and CF stop and start at > 0300 every day to prevent problems. It still hangs at > least once a day in its current configuration. > > I'm fairly certain that Apache hangs because we are using > CF. I need to know whether it is something I can nag Allaire > about or if it is something that can be fixed on the Apache > end. I have a much better chance of kee Well, based (purely) on solaris, Ive got no 'truss' and 'lsof' on NT, we have the feeling that it is directly related to the cold fusion module and more specifically to the ODBC connection. One good check you could do is to use the separate cold fusion engine; i.e. the non module approach. This cgi application is completel separate from apache. If that one shows the same behaviour; you are one step further. > ping this site up > if there is a modification I can make to Apache. > > > > I saw a bugreport about the MaxRequestsPerChild. I only mentioned > > > it becuase the server hang for the MaxRequestsPerChild is exactly > > > the same as the hang over extended use. > > > >How-To-Repeat: > > > set MaxRequestsPerChild to anything but 0 or Use the site under > > > heavy traffic with cold fusion for a while. > > > >Fix: > > > No > > > >Audit-Trail: > > > >Unformatted: > > > [In order for any reply to be added to the PR database, ] > > > [you need to include in the Cc line ] > > > [and leave the subject line UNCHANGED. This is not done] > > > [automatically because of the potential for mail loops. ] > > > [If you do not include this Cc, your reply may be ig- ] > > > [nored unless you are responding to an explicit request ] > > > [from a developer. ] > > > [Reply only with text; DO NOT SEND ATTACHMENTS! ] From: Dirk-WIllem van Gulik To: Steve Etzell Cc: apbugs@Apache.Org Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Fri, 01 Jan 1999 12:54:33 +0100 Steve Etzell wrote: > Dirk-WIllem van Gulik wrote: > > > > Steve Etzell wrote: > > > > > >Number: 3599 > > > >Category: os-windows > > > >Synopsis: Apache hangs after heavy/long usage > > > >Confidential: no > > > >Severity: critical > > > >Priority: medium > > > >Responsible: apache > > > >State: open > > > >Class: sw-bug > > > >Submitter-Id: apache > > > >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 > > > >Last-Modified: > > > >Originator: etzell@mindframe.com > > > >Organization: > > > apache > > > >Release: 1.3b6 > > > >Environment: > > > Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. > > > >Description: > > >Apache is being used with Cold Fusion to server a high traffic commerce > > > site. This site easily saturates a T1 line with traffic. We started > > > using apache over Netscape Enterprise 3.5.1 for performance reasons. > > > I originally configed apache with MaxRequestsPerChild set to 300000. > > > Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 > > and the apache worked fine for about a day and a half. It never totaly > > > hung but most people got a 'server too busy' response. Stop and > > > start the apache process and everything was fine. > > > > Although this might have everything to do with Solaris libraries, rather > > than Cold Fusion; I:ve ran into much the same on Solaris 2.5 around the > > 10k requests per single child. (Solaris was for us about three times as > > fast, on the same hardware) It clearly is not a memory leak; and running > > it with truss revealed it whas in the ODBC of the cold fusion module. > > Lowering the MaxRequestsPerChild to 2k 'solved' the issue. Interesting > > to note; it only seemed to be the number of request, not the load, > > or the time in which it happened and only when ODBC was involved. > > The move to solaris caused such a low MaxRequestsPerChild not to > > have any noticable impact > > > > Are you sure that on NT there is such an impact to warrant a high max > > request per child, it is there exactly to prevent this sort of > > resource hog hangs ? > > We have Apache running on another server that is not using CF > nearly as much and we never have a problem with that siX-Mozilla-Status: 0009 MaxRequestsPerChild to 5000. It ran for > about 20 minutes before restarting itself. In the next 10 > minutes after that the server became busy and received > 5000 access in about 10 minutes. Apache hung while servicing > 98 request (150 max) and had 5100 total access. I waited > about 2 minutes for the process to restart itself and it > never did. I stopped and started the process manually. > > I tried setting it to 2000 as you suggested and Apache just > hung faster while servicing about the same load. I set > MaxRequestsPerChild back to 0 so it will at least run longer > before hanging. I have Apache and CF stop and start at > 0300 every day to prevent problems. It still hangs at > least once a day in its current configuration. > > I'm fairly certain that Apache hangs because we are using > CF. I need to know whether it is something I can nag Allaire > about or if it is something that can be fixed on the Apache > end. I have a much better chance of kee Well, based (purely) on solaris, Ive got no 'truss' and 'lsof' on NT, we have the feeling that it is directly related to the cold fusion module and more specifically to the ODBC connection. One good check you could do is to use the separate cold fusion engine; i.e. the non module approach. This cgi application is completel separate from apache. If that one shows the same behaviour; you are one step further. > ping this site up > if there is a modification I can make to Apache. > > > > I saw a bugreport about the MaxRequestsPerChild. I only mentioned > > > it becuase the server hang for the MaxRequestsPerChild is exactly > > > the same as the hang over extended use. > > > >How-To-Repeat: > > > set MaxRequestsPerChild to anything but 0 or Use the site under > > > heavy traffic with cold fusion for a while. > > > >Fix: > > > No > > > >Audit-Trail: > > > >Unformatted: > > > [In order for any reply to be added to the PR database, ] > > > [you need to include in the Cc line ] > > > [and leave the subject line UNCHANGED. This is not done] > > > [automatically because of the potential for mail loops. ] > > > [If you do not include this Cc, your reply may be ig- ] > > > [nored unless you are responding to an explicit request ] > > > [from a developer. ] > > > [Reply only with text; DO NOT SEND ATTACHMENTS! ] From: Dirk-WIllem van Gulik To: Steve Etzell Cc: apbugs@Apache.Org Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Fri, 01 Jan 1999 12:54:33 +0100 Steve Etzell wrote: > Dirk-WIllem van Gulik wrote: > > > > Steve Etzell wrote: > > > > > >Number: 3599 > > > >Category: os-windows > > > >Synopsis: Apache hangs after heavy/long usage > > > >Confidential: no > > > >Severity: critical > > > >Priority: medium > > > >Responsible: apache > > > >State: open > > > >Class: sw-bug > > > >Submitter-Id: apache > > > >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 > > > >Last-Modified: > > > >Originator: etzell@mindframe.com > > > >Organization: > > > apache > > > >Release: 1.3b6 > > > >Environment: > > > Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. > > > >Description: > > >Apache is being used with Cold Fusion to server a high traffic commerce > > > site. This site easily saturates a T1 line with traffic. We started > > > using apache over Netscape Enterprise 3.5.1 for performance reasons. > > > I originally configed apache with MaxRequestsPerChild set to 300000. > > > Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 > > and the apache worked fine for about a day and a half. It never totaly > > > hung but most people got a 'server too busy' response. Stop and > > > start the apache process and everything was fine. > > > > Although this might have everything to do with Solaris libraries, rather > > than Cold Fusion; I:ve ran into much the same on Solaris 2.5 around the > > 10k requests per single child. (Solaris was for us about three times as > > fast, on the same hardware) It clearly is not a memory leak; and running > > it with truss revealed it whas in the ODBC of the cold fusion module. > > Lowering the MaxRequestsPerChild to 2k 'solved' the issue. Interesting > > to note; it only seemed to be the number of request, not the load, > > or the time in which it happened and only when ODBC was involved. > > The move to solaris caused such a low MaxRequestsPerChild not to > > have any noticable impact > > > > Are you sure that on NT there is such an impact to warrant a high max > > request per child, it is there exactly to prevent this sort of > > resource hog hangs ? > > We have Apache running on another server that is not using CF > nearly as much and we never have a problem with that siXX-Mozilla-Status: 0009MaxRequestsPerChild to 5000. It ran for > about 20 minutes before restarting itself. In the next 10 > minutes after that the server became busy and received > 5000 access in about 10 minutes. Apache hung while servicing > 98 request (150 max) and had 5100 total access. I waited > about 2 minutes for the process to restart itself and it > never did. I stopped and started the process manually. > > I tried setting it to 2000 as you suggested and Apache just > hung faster while servicing about the same load. I set > MaxRequestsPerChild back to 0 so it will at least run longer > before hanging. I have Apache and CF stop and start at > 0300 every day to prevent problems. It still hangs at > least once a day in its current configuration. > > I'm fairly certain that Apache hangs because we are using > CF. I need to know whether it is something I can nag Allaire > about or if it is something that can be fixed on the Apache > end. I have a much better chance of kee Well, based (purely) on solaris, Ive got no 'truss' and 'lsof' on NT, we have the feeling that it is directly related to the cold fusion module and more specifically to the ODBC connection. One good check you could do is to use the separate cold fusion engine; i.e. the non module approach. This cgi application is completel separate from apache. If that one shows the same behaviour; you are one step further. > ping this site up > if there is a modification I can make to Apache. > > > > I saw a bugreport about the MaxRequestsPerChild. I only mentioned > > > it becuase the server hang for the MaxRequestsPerChild is exactly > > > the same as the hang over extended use. > > > >How-To-Repeat: > > > set MaxRequestsPerChild to anything but 0 or Use the site under > > > heavy traffic with cold fusion for a while. > > > >Fix: > > > No > > > >Audit-Trail: > > > >Unformatted: > > > [In order for any reply to be added to the PR database, ] > > > [you need to include in the Cc line ] > > > [and leave the subject line UNCHANGED. This is not done] > > > [automatically because of the potential for mail loops. ] > > > [If you do not include this Cc, your reply may be ig- ] > > > [nored unless you are responding to an explicit request ] > > > [from a developer. ] > > > [Reply only with text; DO NOT SEND ATTACHMENTS! ] From: Dirk-WIllem van Gulik To: Steve Etzell Cc: apbugs@Apache.Org Subject: Re: os-windows/3599: Apache hangs after heavy/long usage Date: Fri, 01 Jan 1999 12:54:33 +0100 Steve Etzell wrote: > Dirk-WIllem van Gulik wrote: > > > > Steve Etzell wrote: > > > > > >Number: 3599 > > > >Category: os-windows > > > >Synopsis: Apache hangs after heavy/long usage > > > >Confidential: no > > > >Severity: critical > > > >Priority: medium > > > >Responsible: apache > > > >State: open > > > >Class: sw-bug > > > >Submitter-Id: apache > > > >Arrival-Date: Mon Dec 28 08:20:00 PST 1998 > > > >Last-Modified: > > > >Originator: etzell@mindframe.com > > > >Organization: > > > apache > > > >Release: 1.3b6 > > > >Environment: > > > Using WinNT with sp4. Dell PowerEdge2300 5Gb HD, 512Mb RAM. > > > >Description: > > >Apache is being used with Cold Fusion to server a high traffic commerce > > > site. This site easily saturates a T1 line with traffic. We started > > > using apache over Netscape Enterprise 3.5.1 for performance reasons. > > > I originally configed apache with MaxRequestsPerChild set to 300000. > > > Apache hung when it hit about 30000. I set MaxRequestsPerChild to 0 > > and the apache worked fine for about a day and a half. It never totaly > > > hung but most people got a 'server too busy' response. Stop and > > > start the apache process and everything was fine. > > > > Although this might have everything to do with Solaris libraries, rather > > than Cold Fusion; I:ve ran into much the same on Solaris 2.5 around the > > 10k requests per single child. (Solaris was for us about three times as > > fast, on the same hardware) It clearly is not a memory leak; and running > > it with truss revealed it whas in the ODBC of the cold fusion module. > > Lowering the MaxRequestsPerChild to 2k 'solved' the issue. Interesting > > to note; it only seemed to be the number of request, not the load, > > or the time in which it happened and only when ODBC was involved. > > The move to solaris caused such a low MaxRequestsPerChild not to > > have any noticable impact > > > > Are you sure that on NT there is such an impact to warrant a high max > > request per child, it is there exactly to prevent this sort of > > resource hog hangs ? > > We have Apache running on another server that is not using CF > nearly as much and we never have a problem with that siXX-Mozilla-Status: 0009MaxRequestsPerChild to 5000. It ran for > about 20 minutes before restarting itself. In the next 10 > minutes after that the server became busy and received > 5000 access in about 10 minutes. Apache hung while servicing > 98 request (150 max) and had 5100 total access. I waited > about 2 minutes for the process to restart itself and it > never did. I stopped and started the process manually. > > I tried setting it to 2000 as you suggested and Apache just > hung faster while servicing about the same load. I set > MaxRequestsPerChild back to 0 so it will at least run longer > before hanging. I have Apache and CF stop and start at > 0300 every day to prevent problems. It still hangs at > least once a day in its current configuration. > > I'm fairly certain that Apache hangs because we are using > CF. I need to know whether it is something I can nag Allaire > about or if it is something that can be fixed on the Apache > end. I have a much better chance of kee Well, based (purely) on solaris, Ive got no 'truss' and 'lsof' on NT, we have the feeling that it is directly related to the cold fusion module and more specifically to the ODBC connection. One good check you could do is to use the separate cold fusion engine; i.e. the non module approach. This cgi application is completel separate from apache. If that one shows the same behaviour; you are one step further. > ping this site up > if there is a modification I can make to Apache. > > > > I saw a bugreport about the MaxRequestsPerChild. I only mentioned > > > it becuase the server hang for the MaxRequestsPerChild is exactly > > > the same as the hang over extended use. > > > >How-To-Repeat: > > > set MaxRequestsPerChild to anything but 0 or Use the site under > > > heavy traffic with cold fusion for a while. > > > >Fix: > > > No > > > >Audit-Trail: > > > >Unformatted: > > > [In order for any reply to be added to the PR database, ] > > > [you need to include in the Cc line ] > > > [and leave the subject line UNCHANGED. This is not done] > > > [automatically because of the potential for mail loops. ] > > > [If you do not include this Cc, your reply may be ig- ] > > > [nored unless you are responding to an explicit request ] > > > [from a developer. ] > > > [Reply only with text; DO NOT SEND ATTACHMENTS! ] State-Changed-From-To: feedback-closed State-Changed-By: wrowe State-Changed-When: Sun Jul 16 19:09:51 PDT 2000 State-Changed-Why: I'm afraid that ODBC drivers are often 'leaky', and even starting and stopping processes may or may not clear up the memory or resource leaks. Please try the newest Apache versions, but at this moment I'm afraid this is not an Apache issue. One hint, try setting up the new 1.3.13 to be released RSN and set up a job to apache -n servicename -k restart the server every few hours. Open connections will be served as the child processes are torn down and new ones created. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]