|
Replies:
4
-
Last Post:
Apr 4, 2006 11:41 PM
by: moazamraja
|
|
|
|
|
|
|
Webserver logs not being updated?
Posted:
Apr 4, 2006 6:16 PM
|
|
|
HI all,
I've noticed something a bit odd. When I watch my access.log to see exactly what is hitting my Glassfish instance (on port 80), I don't see the hits instantly. I can access the pages from another machine but the access.log does not get updated and does not show the hit. Any ideas why?
The way I'm watching the logs is,
tail -f /opt/glassfish/domains/domain1/logs/access/server_access_log.2006-04-04.txt
-M
|
|
|
|
|
|
|
Re: Webserver logs not being updated?
Posted:
Apr 4, 2006 8:34 PM
in response to: moazamraja
|
|
|
I don't know "why", but I did want to add my observations on this...
The access do work their way into the log, but only after some ammount of time...
I did a quick experiment with the value for the rotation interval...
It seems like the rotation interval really acts like a flush log buffer to disk interval.
That seems odd (like a bug odd) to me.
This was with build 41.. on Mac OS X...
vbk
|
|
|
|
|
|
|
|
Re: Webserver logs not being updated?
Posted:
Apr 4, 2006 10:32 PM
in response to: vbkraemer
|
|
|
Yuhp, I noticed this on OS X (10.4.5, 10.4.6) also. I doubt it's OS dependent though.
-M
|
|
|
|
|
|
|
|
Re: Webserver logs not being updated?
Posted:
Apr 4, 2006 11:41 PM
in response to: moazamraja
|
|
|
I'll try this tomorrow. There should be a way to set this via the admin UI.
-M
------- Additional comments from jluehe Wed Apr 5 06:09:16 +0000 2006 -------
If you want to have the access log updated in a more timely fashion, you need to configure a smaller access log buffer size, using the "accessLogBufferSize" property of the virtual server in domain.xml whose access log you want to monitor. The default buffer size is 512*1024.
Example:
<virtual-server id="server" ....> .... <property name="accessLogBufferSize" value="80"/> </virtual-server>
Let me know if this has the intended effect for you.
------------------------------------------
|
|
|
|
|