How To Rotate The Oracle GlassFish Server Log When Either Time Limit or Size Limit is reached, Whichever Happens First?

(Doc ID 1431842.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version: 2.1.1 and later   [Release: 2.1 and later ]
Information in this document applies to any platform.


As per the GlassFish Server 2.1.1 documentation, if the value of "log-rotation-timelimit-in-minutes" is greater than zero, then "log-rotation-timelimit-in-minutes" takes precedence over "log-rotation-limit-in-bytes".

(optional) Log files are rotated when the file size reaches the specified limit.


(optional) Enables time-based log rotation. The valid range is 60 minutes (1 hour) to 14400 minutes (10*24*60 minutes or 10 days).

If the value is zero, the files are rotated based on the size specified in log-rotation-limit-in-bytes. If the value is greater than zero, log-rotation-timelimit-in-minutes takes precedence over log-rotation-limit-in-bytes .

Is there a way to rotate the Oracle GlassFish Server 2.1.1 log when either Time Limit or Size Limit is reached, whichever happens first?


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms