Skip to main content

Webserver logs not being updated?

4 replies [Last post]
moazamraja
Offline
Joined: 2003-06-11

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vbkraemer
Offline
Joined: 2003-09-03

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

vbkraemer
Offline
Joined: 2003-09-03

I opened https://glassfish.dev.java.net/issues/show_bug.cgi?id=541 to track this.

Please add your comments or additional details to it, if I left something out...

moazamraja
Offline
Joined: 2003-06-11

Yuhp, I noticed this on OS X (10.4.5, 10.4.6) also. I doubt it's OS dependent though.

-M

moazamraja
Offline
Joined: 2003-06-11

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:


....

Let me know if this has the intended effect for you.

------------------------------------------