My Oracle Support Banner

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 JUNE 20, 2024

Applies to:

Oracle GlassFish Server - Version 2.1.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?


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.