The Source for Java Technology Collaboration
Webmaster Alert: Posting to Jive Forums is currently not working. Estimated time for fix is unknown.

Home » java.net Forums » GlassFish » GlassFish

Thread: Webserver logs not being updated?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Apr 4, 2006 11:41 PM by: moazamraja
moazamraja

Posts: 17
Webserver logs not being updated?
Posted: Apr 4, 2006 6:16 PM
  Click to reply to this thread Reply

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

vbkraemer

Posts: 283
Re: Webserver logs not being updated?
Posted: Apr 4, 2006 8:34 PM   in response to: moazamraja
  Click to reply to this thread Reply

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

Posts: 283
Re: Webserver logs not being updated?
Posted: Apr 4, 2006 8:47 PM   in response to: vbkraemer
  Click to reply to this thread Reply

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

Posts: 17
Re: Webserver logs not being updated?
Posted: Apr 4, 2006 10:32 PM   in response to: vbkraemer
  Click to reply to this thread Reply

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

-M

moazamraja

Posts: 17
Re: Webserver logs not being updated?
Posted: Apr 4, 2006 11:41 PM   in response to: moazamraja
  Click to reply to this thread Reply

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.

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




 XML java.net RSS