Thursday, August 6, 2009

Configuring Glassfish v2.1 to rotate logs

If you do not configure this, your logs files will grow unbounded:


There's a FAQ to do this:
How do I configure GlassFish to delete rotated log files?

Step 1: Login to Admin Console and navigate to Configuration -> System Properties


Step 2: Add in a new property com.sun.enterprise.server.logging.max_history_files


Step 3: Save and restart Glassfish


If the above does not work, set it via the java options:

No comments:

Post a Comment