You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sam Seaver <sa...@northwestern.edu> on 2004/01/16 20:45:15 UTC
Re: [users@httpd] Re: [SPAM] - Re: [users@httpd] Re: [SPAM] - [users@httpd]Apache
weekly check - Bay
Unfortunately, and this applies to my previous question, Luis uses
mod_jk, and I use mod_jk2, so Luis would have been unable to answer my
question anyway.
below is my workers2.properties file. The two directives Im unable to
manipulate partly because i cant find examples that uses these
directives, are 'version' which is a common element, and logger.file,
which I tried to state as [logger]file=...
Can anyone tell me what I'm doing wrong?
thanks
Sam Seaver
version=5
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[shm:]
file=/etc/httpd/logs/jk2.shm
size=1048576
[logger:]
level=ERROR
file=${serverRoot}/logs/jk2.log
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
host=127.0.0.1
tomcatId=localhost:8009
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[status:status]
[uri:/jkstatus/*]
worker=status:status
#[uri:/examples/*]
#worker=ajp13:localhost:8009
[uri:/monster/*]
worker=ajp13:localhost:8009
Howard Watson wrote:
>Did you read mod_jk directives under Apache HowTo?
>
>
>
>>>>samseaver@northwestern.edu 01/16/04 12:02PM >>>
>>>>
>>>>
>
>
>
>>>I didnt know that mod_jk has its own logging, could
>>>you let me know if it works?
>>>
>>>
>>>
>>>
>>Check this address:
>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html
>>
>>
>>
>>
>
>thanks for the link, I had a good read, a lot makes sense now. I've
>tried doing this:
>
>logger.file:${serverRoot}/logs/jk2.log
>
>but it doesnt seem to get interpreted correctly, may I ask how you
>configured your workers2.properties?
>
>thanks
>Sam
>
>
>
>> Luis
>>
>>On Fri, 2004-01-16 at 12:40, Sam Seaver wrote:
>>
>>
>>
>>
>>>Thats a good point, I didnt know that mod_jk has its own logging, could
>>>you let me know if it works?
>>>
>>>I did some more research, and basically my redhat 9 has a logrotate file
>>>for httpd, which is run by cron.daily:
>>>
>>>/etc/logrotate.d/httpd:
>>>
>>>/var/log/httpd/*log {
>>> missingok
>>> notifempty
>>> sharedscripts
>>> postrotate
>>> /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null
>>>|| true
>>> endscript
>>>}
>>>
>>>Also Im using mod_jk2, does anyone know if there's any extra difficulty
>>>with this?
>>>
>>>Cheers
>>>S
>>>
>>>Luis Fernando Gallegos Valencia wrote:
>>>
>>>
>>>
>>>
>>>
>>>>I have the same problem, but I didn't found why it happened until you
>>>>wrote the list. What I am going to do is to tell make mod_jk to write
>>>>logs in another file (not the apache error_log).
>>>>
>>>> Luis
>>>>
>>>>
>>>>On Fri, 2004-01-16 at 11:45, Sam Seaver wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Dear all,
>>>>>
>>>>>Im getting some problems with my httpd every sunday morning at 4am.
>>>>>
>>>>>
>>>>>>From what I can make out, this is the time that my linux system 'moves'
>>>>
>>>>
>>>>>the log files.
>>>>>
>>>>>So in my /var/log/httpd directory, every weekly log gets moved down a
>>>>>number ie error_log becomes error_log.1.
>>>>>
>>>>>This seems to provoke a self-check by httpd, this self-check seems to be
>>>>>messing up my jk2 connector and causing tomcat to hang.
>>>>>
>>>>>Im using httpd 2.0.47 on red hat linux 9 kernel 2.4.20-19.9smp and
>>>>>tomcat 4.1.24 (I cant for the life of me work out what version the jk2,
>>>>>seems i deleted the original source directories).
>>>>>
>>>>>I cant find anything online relating directly to this problem, but
>>>>>seeing the web-server is rarely used right now, I'm considering
>>>>>disabling this self-check, or preventing httpd from resetting some of
>>>>>it's children processes (which seems to be what causes the hang).
>>>>>
>>>>>What httpd.conf options should I use?
>>>>>
>>>>>Thanks
>>>>>Sam Seaver
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>The official User-To-User support forum of the Apache HTTP Server Project.
>>>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>---------------------------------------------------------------------
>>>>The official User-To-User support forum of the Apache HTTP Server Project.
>>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>The official User-To-User support forum of the Apache HTTP Server Project.
>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: [SPAM] - Re: [users@httpd]Apache weekly check - Email found in
subject
Posted by Luis Fernando Gallegos Valencia <lf...@pichincha.com>.
Thanks Sam! Perhaps the problem is something in the apj13 connector or
in the persistent connection it has with apache.
we'll see.
Luis
On Tue, 2004-01-20 at 12:24, Sam Seaver wrote:
> Ok,
>
> running `'logrotate -f /etc/logrotate.d/httpd`
>
> forced a logrotate of the httpd logs, and in the new httpd error_log,
> were the same error lines that I got from this sunday, so httpd did
> indeed restart, but because the logging wasn't working anyway, catalina
> still worked.
>
> I then restored the original line I had related to logging which was :
>
> [logger]
> level=DEBUG
> (at the beginning)
>
> and tried restarting logrotate again. As far as I can see, nothing
> untowards happened, so it seems that it may not be the logrotation
> itself that disrupts catalina. Im going to leave it as is and wait till
> next sunday morning to see if it does hang again, and if so, it's most
> likely something else thats happening in cron.daily. we'll see.
>
> S
>
> Sam Seaver wrote:
>
> > Luis,
> >
> > Just so that you know, there was no need to restart catalina this
> > week. I rechecked the logs, and it seems that apache httpd DID
> > restart again on sunday at 4am, but since Id tried to configure the
> > logging for jk2, which failed, the jk2 logging itself simply failed,
> > and this seems to be the reason that catalina didnt hang.
> >
> > But Im going to force run the logrotate and we'll see.
> > S
> >
> >
> > Sam Seaver wrote:
> >
> >> I will have to do this on monday, but the thought did enter my head
> >> that I should test this.
> >>
> >> Hope you can wait till monday. By then of course, Ill probably have
> >> to restart the server :-)
> >> S
> >>
> >> Luis Fernando Gallegos Valencia wrote:
> >>
> >>> Sam, could you run "at hand" your cron program and check if the
> >>> communication apache-tomcat dies? If it does, we will have a
> >>> confirmation that the cutting of the logs is the problem.
> >>>
> >>> Luis.
> >>>
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> The official User-To-User support forum of the Apache HTTP Server
> >>> Project.
> >>> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>> " from the digest: users-digest-unsubscribe@httpd.apache.org
> >>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server
> >> Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> " from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd]Apache weekly check
Posted by Sam Seaver <sa...@northwestern.edu>.
Ok,
running `'logrotate -f /etc/logrotate.d/httpd`
forced a logrotate of the httpd logs, and in the new httpd error_log,
were the same error lines that I got from this sunday, so httpd did
indeed restart, but because the logging wasn't working anyway, catalina
still worked.
I then restored the original line I had related to logging which was :
[logger]
level=DEBUG
(at the beginning)
and tried restarting logrotate again. As far as I can see, nothing
untowards happened, so it seems that it may not be the logrotation
itself that disrupts catalina. Im going to leave it as is and wait till
next sunday morning to see if it does hang again, and if so, it's most
likely something else thats happening in cron.daily. we'll see.
S
Sam Seaver wrote:
> Luis,
>
> Just so that you know, there was no need to restart catalina this
> week. I rechecked the logs, and it seems that apache httpd DID
> restart again on sunday at 4am, but since Id tried to configure the
> logging for jk2, which failed, the jk2 logging itself simply failed,
> and this seems to be the reason that catalina didnt hang.
>
> But Im going to force run the logrotate and we'll see.
> S
>
>
> Sam Seaver wrote:
>
>> I will have to do this on monday, but the thought did enter my head
>> that I should test this.
>>
>> Hope you can wait till monday. By then of course, Ill probably have
>> to restart the server :-)
>> S
>>
>> Luis Fernando Gallegos Valencia wrote:
>>
>>> Sam, could you run "at hand" your cron program and check if the
>>> communication apache-tomcat dies? If it does, we will have a
>>> confirmation that the cutting of the logs is the problem.
>>>
>>> Luis.
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd]Apache weekly check
Posted by Sam Seaver <sa...@northwestern.edu>.
Luis,
Just so that you know, there was no need to restart catalina this week.
I rechecked the logs, and it seems that apache httpd DID restart again
on sunday at 4am, but since Id tried to configure the logging for jk2,
which failed, the jk2 logging itself simply failed, and this seems to be
the reason that catalina didnt hang.
But Im going to force run the logrotate and we'll see.
S
Sam Seaver wrote:
> I will have to do this on monday, but the thought did enter my head
> that I should test this.
>
> Hope you can wait till monday. By then of course, Ill probably have to
> restart the server :-)
> S
>
> Luis Fernando Gallegos Valencia wrote:
>
>> Sam, could you run "at hand" your cron program and check if the
>> communication apache-tomcat dies? If it does, we will have a
>> confirmation that the cutting of the logs is the problem.
>>
>> Luis.
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: [SPAM] - Re: [users@httpd] Re: [SPAM] - Re:
[users@httpd] Re: [SPAM] - [users@httpd]Apache weekly check - Bay - Email
found in subject
Posted by Sam Seaver <sa...@northwestern.edu>.
I will have to do this on monday, but the thought did enter my head that
I should test this.
Hope you can wait till monday. By then of course, Ill probably have to
restart the server :-)
S
Luis Fernando Gallegos Valencia wrote:
> Sam, could you run "at hand" your cron program and check if the
>communication apache-tomcat dies? If it does, we will have a
>confirmation that the cutting of the logs is the problem.
>
> Luis.
>
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: [SPAM] - Re: [users@httpd] Re: [SPAM] - Re: [users@httpd] Re:
[SPAM] - [users@httpd]Apache weekly check - Bay - Email found in subject
Posted by Luis Fernando Gallegos Valencia <lf...@pichincha.com>.
Sam, could you run "at hand" your cron program and check if the
communication apache-tomcat dies? If it does, we will have a
confirmation that the cutting of the logs is the problem.
Luis.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org