Re: newsyslog and apache
On Fri, 03 Oct 2008 10:08:52 +0200 "DA Forsyth" <[EMAIL PROTECTED]> wrote: > On 2 Oct 2008 , [EMAIL PROTECTED] entreated about > "freebsd-questions Digest, Vol 235, Issue 11": I'm replying to the digest too, so threading is doubly screwed :) > > No need to change log rotation software since the problem clearly is > > somewhere else. You need to inspect Apache's error logs to see why it > > cannot start. > > the previous error log shows > [Wed Oct 01 08:00:03 2008] [notice] Graceful restart requested, doing > restart > [Wed Oct 01 08:00:04 2008] [notice] seg fault or similar nasty error > detected in the parent process This is what you need to find and fix. Most likely a config error of some sort .. possibly re some module - php extensions order, maybe? What does 'apachectl configtest' have to say? > the new error log shows, after the manual start > [Wed Oct 01 08:39:09 2008] [warn] pid file /var/run/httpd.pid > overwritten -- Unclean shutdown of previous Apache run? > [Wed Oct 01 08:39:09 2008] [notice] Apache/2.0.63 (FreeBSD) PHP/4.4.9 > with Suhosin-Patch DAV/2 SVN/1.5.2 configured -- resuming normal > operations > > those error messages are repeated any time I do a >apachectl graceful > > However, doing >apachectl stop >apachectlstart > works as expected. See apachectl(8) .. apachectl graceful sends httpd a SIGUSR1, as does your previously mentioned newsyslog line, which shuts apache down but without murdering existing connections, while apachectl restart does. However both graceful and restart run configttest before restarting, and it seems likely that's where/why it's bombing. OTOH, apachectl start doesn't run configtest, maybe explaining why it starts up ok that way? > apache version is apache-2.0.63_2 from ports > uname -a gives > FreeBSD iwr.ru.ac.za 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Mon > Jun 2 13:10:26 SAST 2008 > iwr.ru.ac.za:/usr/obj/usr/src/sys/KERNIWR70 i386 Here running apache 1.3 on 5.5-STABLE, but I doubt the apachectl functionality has changed significantly, though I may be wrong .. > php v4 is installed, though i do plan to upgrade that to V5 as soon > as I get time to do it. Good idea, especially if PHP is related to your apparent config issue. > PS: I used to use logrotate, but it too stopped working correctly, > with apache process stopping in a similar way that is why I changed > to newsyslog. I rotate the logs monthly, and set it to 8am so there > is a chance I'll be on hand to start apache to minimize downtime. Theoretically if it survives an apachectl configtest, you should be good to go - and if it doesn't, neither method will restart apache. cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On 2 Oct 2008 , [EMAIL PROTECTED] entreated about "freebsd-questions Digest, Vol 235, Issue 11": > No need to change log rotation software since the problem clearly is > somewhere else. You need to inspect Apache's error logs to see why it > cannot start. > the previous error log shows [Wed Oct 01 08:00:03 2008] [notice] Graceful restart requested, doing restart [Wed Oct 01 08:00:04 2008] [notice] seg fault or similar nasty error detected in the parent process the new error log shows, after the manual start [Wed Oct 01 08:39:09 2008] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Oct 01 08:39:09 2008] [notice] Apache/2.0.63 (FreeBSD) PHP/4.4.9 with Suhosin-Patch DAV/2 SVN/1.5.2 configured -- resuming normal operations those error messages are repeated any time I do a apachectl graceful However, doing apachectl stop apachectlstart works as expected. apache version is apache-2.0.63_2 from ports uname -a gives FreeBSD iwr.ru.ac.za 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Mon Jun 2 13:10:26 SAST 2008 iwr.ru.ac.za:/usr/obj/usr/src/sys/KERNIWR70 i386 php v4 is installed, though i do plan to upgrade that to V5 as soon as I get time to do it. PS: I used to use logrotate, but it too stopped working correctly, with apache process stopping in a similar way that is why I changed to newsyslog. I rotate the logs monthly, and set it to 8am so there is a chance I'll be on hand to start apache to minimize downtime. -- DA Fo rsythNetwork Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
2008/10/2 Jerry <[EMAIL PROTECTED]>: > On Thu, 2 Oct 2008 14:51:26 +0200 > "Zbigniew Szalbot" <[EMAIL PROTECTED]> wrote: > >>No need to change log rotation software since the problem clearly is >>somewhere else. You need to inspect Apache's error logs to see why it >>cannot start. > > All the information on getting it working correctly is located here: > > http://httpd.apache.org/docs/1.3/logs.html#rotation But he clearly stated: "I alos see that 'apachectl restart' stops apache but it doesn't restart." So I guess first thing is to check why apachectl does not restart the server. -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On Thu, 2 Oct 2008 14:51:26 +0200 "Zbigniew Szalbot" <[EMAIL PROTECTED]> wrote: >No need to change log rotation software since the problem clearly is >somewhere else. You need to inspect Apache's error logs to see why it >cannot start. All the information on getting it working correctly is located here: http://httpd.apache.org/docs/1.3/logs.html#rotation -- Jerry [EMAIL PROTECTED] "Surely you can't be serious." "I am serious, and don't call me Shirley." signature.asc Description: PGP signature
Re: newsyslog and apache
Hello, 2008/10/2 Jerry <[EMAIL PROTECTED]>: > On Thu, 02 Oct 2008 14:20:50 +0200 > "DA Forsyth" <[EMAIL PROTECTED]> wrote: > >>I used to have one big apache log file, but decided to rotate it once >>a month using newsyslog. >> >>However, now apache stops and does not restart when the log is >>rotated. >> >>line from newsyslog.conf >>/var/log/apache/httpd-access.log640 13 *$M1D8 B >> /var/run/httpd.pid 30 >> >>with a similar one for the error log. >> >>I have to manually start apache after this rotates the log. >> >>I alos see that 'apachectl restart' stops apache but it doesn't >>restart. >> >>any ideas? > > > I use 'rotatelogs': No need to change log rotation software since the problem clearly is somewhere else. You need to inspect Apache's error logs to see why it cannot start. -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On Thu, 02 Oct 2008 14:20:50 +0200 "DA Forsyth" <[EMAIL PROTECTED]> wrote: >I used to have one big apache log file, but decided to rotate it once >a month using newsyslog. > >However, now apache stops and does not restart when the log is >rotated. > >line from newsyslog.conf >/var/log/apache/httpd-access.log640 13 *$M1D8 B > /var/run/httpd.pid 30 > >with a similar one for the error log. > >I have to manually start apache after this rotates the log. > >I alos see that 'apachectl restart' stops apache but it doesn't >restart. > >any ideas? I use 'rotatelogs': http://httpd.apache.org/docs/2.0/programs/rotatelogs.html to facilitate the rotating of logs. If you need further information, contact me OL. -- Jerry [EMAIL PROTECTED] To see a need and wait to be asked, is to already refuse. signature.asc Description: PGP signature
RE: newsyslog and apache
On Mon, 22 Mar 2004 21:37:47 -0500, Garance A Drosihn wrote > At 5:19 PM -0800 3/22/04, Noah wrote: > > > >I ask that you please be specific as to what you think is wrong > >with my newsyslog.conf file because I cant seem to figure out > >what you are talking about here? Looks like my newsyslog.conf > >file matches the recommended config: > > Hi. > > I do not run apache at all, but I am the guy who has done the > most-recent work on the newsyslog command. > > If I were to guess, I think your problem might be that you end > up sending multiple USR1 signals to apache. I haven't looked > at the code recently, but I think the freebsd newsyslog still > does not optimize the number of signal's that it sends to a > single process. > > What I would suggest you try is some kind of staggered setup. > (it's an easy thing to try...). Something like: > > .../www.domain1.com/access_log 640 30 * @T00 ZN > .../www.domain1.com/error_log 640 30 * @T00 Z > /var/run/httpd.pid 30 .../www.domain2.org/access_log 640 30 * > @T02 ZN .../www.domain2.org/error_log 640 30 * @T02 Z > /var/run/httpd.pid 30 .../www.domain3.com/access_log 640 30 * > @T04 ZN .../www.domain3.com/error_log 640 30 * @T04 Z > /var/run/httpd.pid 30 > okay I have done this but I am about 12 levels in and getting the following response from newsyslog --- snip --- # newsyslog newsyslog: malformed 'at' value: /usr/local/www/logs/www.domain12.com/access_log 644 30* @T24 ZN --- snip --- do you have any clue why this is happening? cheers, Noah > (the ...'s are just an attempt to avoid line-wrapping in this > message. you still want the full pathname in the control file) > > The idea is to rotate the log-and-error files for any one domain > at the same time, and only specify the pid once for that group. > And then wait two minutes between the files for each domain name. > > See if that helps you at all. > > -- > Garance Alistair Drosehn= [EMAIL PROTECTED] > Senior Systems Programmer or [EMAIL PROTECTED] > Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
In the immortal words of "Noah" <[EMAIL PROTECTED]>... > Okay this looks like a viable option. can rotatelogs also age out and > delete log files that are older than 30 days? And does it compress > the log files as well? No, but it isn't hard to come up with a script to proces the logs in any way you see fit. Regardless of what you choose to do to the logs, you don't have to restart apache, which I thought was the main object of your question. The main advantage to doing it this way is that the logs will be pretty much rotated simultaneously by apache, so a couple of minutes after it's scheduled, you can run a script to compress, analyse, delete or whatever the rotated logfile. Cheers Tim -- Tim Aslat <[EMAIL PROTECTED]> Spyderweb Consulting http://www.spyderweb.com.au P: +61 8 82243020M: +61 0401088479 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On Fri, 23 Apr 2004 12:36:02 +0930, Tim Aslat wrote > In the immortal words of "Noah" <[EMAIL PROTECTED]>... > > this advice does not give me many warm fuzzies - the website appears > > to be down. any other util recommendations that rotate hundreds of > > apache logs files really well. newsyslog is not meeting our > > requirements at the moment. > > Have you tried using the internal rotation code in apache? > > this excerpt from "man rotatelogs" should provide more information >rotatelogs is a simple program for use in conjunction with > Apache's piped logfile feature which can be used like this: > > TransferLog "| rotatelogs /path/to/logs/access_log 86400" > Okay this looks like a viable option. can rotatelogs also age out and delete log files that are older than 30 days? And does it compress the log files as well? - Noah >This creates the files /path/to/logs/access_log. where > is the system time at which the log nominally starts > (this time will always be a multiple of the rotation time, so > you can synchronize cron scripts with it). At the end of > each rotation time (here after 24 hours) a new log is started. > > Logging is internal to apache, and doesn't require apache to be > restarted. > > Hope this helps > > Cheers > > Tim > > -- > Tim Aslat <[EMAIL PROTECTED]> > Spyderweb Consulting > http://www.spyderweb.com.au > P: +61 8 82243020M: +61 0401088479 > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
In the immortal words of "Noah" <[EMAIL PROTECTED]>... > this advice does not give me many warm fuzzies - the website appears > to be down. any other util recommendations that rotate hundreds of > apache logs files really well. newsyslog is not meeting our > requirements at the moment. Have you tried using the internal rotation code in apache? this excerpt from "man rotatelogs" should provide more information rotatelogs is a simple program for use in conjunction with Apache's piped logfile feature which can be used like this: TransferLog "| rotatelogs /path/to/logs/access_log 86400" This creates the files /path/to/logs/access_log. where is the system time at which the log nominally starts (this time will always be a multiple of the rotation time, so you can synchronize cron scripts with it). At the end of each rotation time (here after 24 hours) a new log is started. Logging is internal to apache, and doesn't require apache to be restarted. Hope this helps Cheers Tim -- Tim Aslat <[EMAIL PROTECTED]> Spyderweb Consulting http://www.spyderweb.com.au P: +61 8 82243020M: +61 0401088479 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On Thu, 22 Apr 2004 18:53:49 -0800, Noah wrote > On Mon, 22 Mar 2004 11:54:21 +, Jez Hancock wrote > > On Mon, Mar 22, 2004 at 03:06:22AM -0800, Noah wrote: > > > apache complains of being out of memory during a graceful restart when > > > newsyslog is sending a series of SIGUSR1 signal to it. Any clues on this? > > > > This looks familiar from the apache-httpd-users list :P > > > > I'm not sure about your specific problem, but have you considered using > > cronolog instead of depending on newsyslog to rotate your logs daily? > > > > In the ports: > > > > /usr/ports/sysutils/cronolog > > > > On the web: > > > > http://cronlog.org/ > okay it was a mistype http://www.cronolog.org works fine - Noah > Hi there, > > this advice does not give me many warm fuzzies - the website appears > to be down. any other util recommendations that rotate hundreds of > apache logs files really well. newsyslog is not meeting our > requirements at the moment. > > - Noah > > > > > -- > > Jez Hancock > > - System Administrator / PHP Developer > > > > http://munk.nu/ > > http://jez.hancock-family.com/ - Another FreeBSD Diary > > http://ipfwstats.sf.net/- ipfw peruser traffic logging > > ___ > > [EMAIL PROTECTED] mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On Mon, 22 Mar 2004 11:54:21 +, Jez Hancock wrote > On Mon, Mar 22, 2004 at 03:06:22AM -0800, Noah wrote: > > apache complains of being out of memory during a graceful restart when > > newsyslog is sending a series of SIGUSR1 signal to it. Any clues on this? > > This looks familiar from the apache-httpd-users list :P > > I'm not sure about your specific problem, but have you considered using > cronolog instead of depending on newsyslog to rotate your logs daily? > > In the ports: > > /usr/ports/sysutils/cronolog > > On the web: > > http://cronlog.org/ Hi there, this advice does not give me many warm fuzzies - the website appears to be down. any other util recommendations that rotate hundreds of apache logs files really well. newsyslog is not meeting our requirements at the moment. - Noah > > -- > Jez Hancock > - System Administrator / PHP Developer > > http://munk.nu/ > http://jez.hancock-family.com/ - Another FreeBSD Diary > http://ipfwstats.sf.net/- ipfw peruser traffic logging > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: newsyslog and apache
On Mon, 22 Mar 2004 21:37:47 -0500, Garance A Drosihn wrote > At 5:19 PM -0800 3/22/04, Noah wrote: > > > >I ask that you please be specific as to what you think is wrong > >with my newsyslog.conf file because I cant seem to figure out > >what you are talking about here? Looks like my newsyslog.conf > >file matches the recommended config: > > Hi. > > I do not run apache at all, but I am the guy who has done the > most-recent work on the newsyslog command. > > If I were to guess, I think your problem might be that you end > up sending multiple USR1 signals to apache. I haven't looked > at the code recently, but I think the freebsd newsyslog still > does not optimize the number of signal's that it sends to a > single process. > > What I would suggest you try is some kind of staggered setup. > (it's an easy thing to try...). Something like: > > .../www.domain1.com/access_log 640 30 * @T00 ZN > .../www.domain1.com/error_log 640 30 * @T00 Z > /var/run/httpd.pid 30 .../www.domain2.org/access_log 640 30 * > @T02 ZN .../www.domain2.org/error_log 640 30 * @T02 Z > /var/run/httpd.pid 30 .../www.domain3.com/access_log 640 30 * > @T04 ZN .../www.domain3.com/error_log 640 30 * @T04 Z > /var/run/httpd.pid 30 Hmm, I suppose this is a viable option. it would be really beneficial to do all teh log rotations at midnight just to keep our logs rolling at the same time. maybe I am a little stringent here about these things. anyways cna somebody possibly recommend another program out there that rotate the apache log files all at the same time without creating memory errors for apache because of restarting the daemon each time. thanks in advance, Noah > > (the ...'s are just an attempt to avoid line-wrapping in this > message. you still want the full pathname in the control file) > > The idea is to rotate the log-and-error files for any one domain > at the same time, and only specify the pid once for that group. > And then wait two minutes between the files for each domain name. > > See if that helps you at all. > > -- > Garance Alistair Drosehn= [EMAIL PROTECTED] > Senior Systems Programmer or [EMAIL PROTECTED] > Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: newsyslog and apache
On Tue, 2004-03-23 at 13:07, Garance A Drosihn wrote: > Hi. > > I do not run apache at all, but I am the guy who has done the > most-recent work on the newsyslog command. > > If I were to guess, I think your problem might be that you end > up sending multiple USR1 signals to apache. I haven't looked > at the code recently, but I think the freebsd newsyslog still > does not optimize the number of signal's that it sends to a > single process. > > What I would suggest you try is some kind of staggered setup. > (it's an easy thing to try...). Something like: > > .../www.domain1.com/access_log 640 30 * @T00 ZN > .../www.domain1.com/error_log 640 30 * @T00 Z /var/run/httpd.pid 30 > .../www.domain2.org/access_log 640 30 * @T02 ZN > .../www.domain2.org/error_log 640 30 * @T02 Z /var/run/httpd.pid 30 > .../www.domain3.com/access_log 640 30 * @T04 ZN > .../www.domain3.com/error_log 640 30 * @T04 Z /var/run/httpd.pid 30 > > (the ...'s are just an attempt to avoid line-wrapping in this > message. you still want the full pathname in the control file) > > The idea is to rotate the log-and-error files for any one domain > at the same time, and only specify the pid once for that group. > And then wait two minutes between the files for each domain name. > > See if that helps you at all. Is there any benefit to using wildcards in newsyslog.conf? eg. I embed the domain name for each logfile into the filename itself, so I've just updated my newsyslog.conf with lines like: /var/log/httpd-*-access.log 644 12 * $M1D0 GJB /var/run/httpd.pid 30 /var/log/httpd-*-error.log 644 12 * $M1D0 GJB /var/run/httpd.pid 30 Will this turn over the logfiles and then do the signal, or will the signal be issued for each file from the expansion? Wayne ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: newsyslog and apache
At 5:19 PM -0800 3/22/04, Noah wrote: I ask that you please be specific as to what you think is wrong with my newsyslog.conf file because I cant seem to figure out what you are talking about here? Looks like my newsyslog.conf file matches the recommended config: Hi. I do not run apache at all, but I am the guy who has done the most-recent work on the newsyslog command. If I were to guess, I think your problem might be that you end up sending multiple USR1 signals to apache. I haven't looked at the code recently, but I think the freebsd newsyslog still does not optimize the number of signal's that it sends to a single process. What I would suggest you try is some kind of staggered setup. (it's an easy thing to try...). Something like: .../www.domain1.com/access_log 640 30 * @T00 ZN .../www.domain1.com/error_log 640 30 * @T00 Z /var/run/httpd.pid 30 .../www.domain2.org/access_log 640 30 * @T02 ZN .../www.domain2.org/error_log 640 30 * @T02 Z /var/run/httpd.pid 30 .../www.domain3.com/access_log 640 30 * @T04 ZN .../www.domain3.com/error_log 640 30 * @T04 Z /var/run/httpd.pid 30 (the ...'s are just an attempt to avoid line-wrapping in this message. you still want the full pathname in the control file) The idea is to rotate the log-and-error files for any one domain at the same time, and only specify the pid once for that group. And then wait two minutes between the files for each domain name. See if that helps you at all. -- Garance Alistair Drosehn= [EMAIL PROTECTED] Senior Systems Programmer or [EMAIL PROTECTED] Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: newsyslog and apache
On Mon, 22 Mar 2004 12:57:03 -0500, JJB wrote > Do you have your newsyslog configured the way it's pointed out in > the archive thread about rotating the apache logs? That may be the > root cause of your problem, and the memory thing is an result, not > an cause. Look closer at that tread. Hi, Thanks so much but this your response still does not appear to be answering my issues. been looking at the thread called "apache log files rotation" in the march threads. I can see that somebody has recommended using SIGUSR1 or newsyslog 30 to restart the apache daemon. I ask that you please be specific as to what you think is wrong with my newsyslog.conf file because I cant seem to figure out what you are talking about here? Looks like my newsyslog.conf file matches the recommended config: link: http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/038439.html Could apache be experiencing or creating some type of memory leak? there are 2GB of installed RAM on this machine. - Noah > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Noah > Sent: Monday, March 22, 2004 12:03 PM > To: [EMAIL PROTECTED] > Subject: RE: newsyslog and apache > > On Mon, 22 Mar 2004 11:13:02 -0500, JJB wrote > > Check the archives for the past 3 weeks, this was covered in > detail. > > > > Hi, > > thanks for the heads up but I am unable to find any references to > apache > complaining of memory issues in the freebsd-questions list archive. > Searched > both the March and February threads - found nothing. > > might you send me to the URL that contains this information. > > I did find a thread about configuring newsyslog to rotate the httpd > files but > my issue goes further. So more clues would be helpful here. > > - Noah > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of Noah > > Sent: Monday, March 22, 2004 6:06 AM > > To: [EMAIL PROTECTED] > > Subject: newsyslog and apache > > > > FreeBSD 4.9 > > apache 1.3.28 > > > > apache complains of being out of memory during a graceful restart > > when > > newsyslog is sending a series of SIGUSR1 signal to it. Any clues > on > > this? > > > > here is the log file output: > > > > --- snip --- > > [Mon Mar 22 00:06:08 2004] [notice] SIGUSR1 received. Doing > > graceful restart > > Out of memory during request for 11468 bytes, total sbrk() is > > 8937472 bytes! > > Callback called exit. > > END failed--call queue aborted at /dev/null line 2. > > Callback called exit at /dev/null line 2. > > END failed--call queue aborted at /dev/null line 66. > > Callback called exit at /dev/null line 66. > > --- snip --- > > > > my /etc/newsyslog.conf entries: > > > > --- snip --- > > /usr/local/www/logs/www.domain1.com/access_log 640 30* > @T00 > > Z > > /var/run/httpd.pid 30 > > /usr/local/www/logs/www.domain1.com/error_log 640 30* > @T00 > > Z > > /var/run/httpd.pid 30 > > /usr/local/www/logs/www.domain2.org/access_log 640 30* @T00 > > Z > > /var/run/httpd.pid 30 > > /usr/local/www/logs/www.domain2.org/error_log 640 30* @T00 > > Z > > /var/run/httpd.pid 30 > > /usr/local/www/logs/www.domain3.com/access_log 640 30* > @T00 > > Z > > /var/run/httpd.pid 30 > > /usr/local/www/logs/www.domain3.com/error_log 640 30* > @T00 > > Z > > /var/run/httpd.pid 30 > > --- snip --- > > > > - Noah > > > > ___ > > [EMAIL PROTECTED] mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "[EMAIL PROTECTED]" > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: newsyslog and apache
On Mon, 22 Mar 2004 11:13:02 -0500, JJB wrote > Check the archives for the past 3 weeks, this was covered in detail. > Hi, thanks for the heads up but I am unable to find any references to apache complaining of memory issues in the freebsd-questions list archive. Searched both the March and February threads - found nothing. might you send me to the URL that contains this information. I did find a thread about configuring newsyslog to rotate the httpd files but my issue goes further. So more clues would be helpful here. - Noah > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Noah > Sent: Monday, March 22, 2004 6:06 AM > To: [EMAIL PROTECTED] > Subject: newsyslog and apache > > FreeBSD 4.9 > apache 1.3.28 > > apache complains of being out of memory during a graceful restart > when > newsyslog is sending a series of SIGUSR1 signal to it. Any clues on > this? > > here is the log file output: > > --- snip --- > [Mon Mar 22 00:06:08 2004] [notice] SIGUSR1 received. Doing > graceful restart > Out of memory during request for 11468 bytes, total sbrk() is > 8937472 bytes! > Callback called exit. > END failed--call queue aborted at /dev/null line 2. > Callback called exit at /dev/null line 2. > END failed--call queue aborted at /dev/null line 66. > Callback called exit at /dev/null line 66. > --- snip --- > > my /etc/newsyslog.conf entries: > > --- snip --- > /usr/local/www/logs/www.domain1.com/access_log 640 30* @T00 > Z > /var/run/httpd.pid 30 > /usr/local/www/logs/www.domain1.com/error_log 640 30* @T00 > Z > /var/run/httpd.pid 30 > /usr/local/www/logs/www.domain2.org/access_log 640 30* @T00 > Z > /var/run/httpd.pid 30 > /usr/local/www/logs/www.domain2.org/error_log 640 30* @T00 > Z > /var/run/httpd.pid 30 > /usr/local/www/logs/www.domain3.com/access_log 640 30* @T00 > Z > /var/run/httpd.pid 30 > /usr/local/www/logs/www.domain3.com/error_log 640 30* @T00 > Z > /var/run/httpd.pid 30 > --- snip --- > > - Noah > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On Mon, 22 Mar 2004 11:54:21 +, Jez Hancock wrote > On Mon, Mar 22, 2004 at 03:06:22AM -0800, Noah wrote: > > apache complains of being out of memory during a graceful restart when > > newsyslog is sending a series of SIGUSR1 signal to it. Any clues on this? > > This looks familiar from the apache-httpd-users list :P > > I'm not sure about your specific problem, but have you considered using > cronolog instead of depending on newsyslog to rotate your logs daily? > Hi, thanks for your advice but this is an issue with apache complaining about being restarted with a SIGUSR1 signal and then puking and complaining about not enough memory to restart. I have about 30 to 40 lines in newsyslog.conf file wiht each sending a SIGUSR1 line. is this a problem - should I only be sending a SIGUSR1 signal only once? - Noah > In the ports: > > /usr/ports/sysutils/cronolog > > On the web: > > http://cronlog.org/ > > -- > Jez Hancock > - System Administrator / PHP Developer > > http://munk.nu/ > http://jez.hancock-family.com/ - Another FreeBSD Diary > http://ipfwstats.sf.net/- ipfw peruser traffic logging > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- [EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newsyslog and apache
On Mon, Mar 22, 2004 at 03:06:22AM -0800, Noah wrote: > apache complains of being out of memory during a graceful restart when > newsyslog is sending a series of SIGUSR1 signal to it. Any clues on this? This looks familiar from the apache-httpd-users list :P I'm not sure about your specific problem, but have you considered using cronolog instead of depending on newsyslog to rotate your logs daily? In the ports: /usr/ports/sysutils/cronolog On the web: http://cronlog.org/ -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/- ipfw peruser traffic logging ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"