When running the Glassfish, the server.log will be generated at <glassfish installation path>/domains/domain1/logs and will be using up alot of your hard drive.
One of the way to control the number of log files rotation will be as follow:
(1) Log in to your Glassfish admin (generally http://localhost:4848)
(2) Application Servers –> Logging –> General
(3) Scroll and insert the following
com.sun.enterprise.server.logging.max_history_files
(4) Restart the glassfish
Advertisement



