Friday February 29, 2008 What do you know, the next entry turns out to be one and a half year later...
Nevertheless, there are two things I wanted to mention:
1. Glassfish V3 milestone 2 build is out and I had the pleasure of doing some testing on it. It was first time for me using URL based admin commands, e.g. http://localhost:8080/__asadmin/deploy?path=hellojsp.war?name=hello?upload=false. Btw, Glassfish Application Server expects the hellojsp.war file in the user's home directory.
To my surprise the URL based asadmin works *much* faster than the command line version. Note the ? used for passing parameters as well as separating them, though I've heard that this may change.
2. I've been recently looking for information on how to limit number of log files created by glassfish log rotation. Found relevant information here, but I really wanted to do it via Admin GUI. Looked at "Logging" tab under "Application Server" in Admin GUI but there was no such option there. That's because as it turns out, it is a jvm option that needs to be set. Couldn't find relevant information searching Internet either so, here it is for anyone else that might need it (courtesy of Kedar):
a. In Admin GUI (http://localhost:4848), in the left hand column select "Application Server"
b. Go to "JVM Settings" tab.
c. Go to "JVM Options" sub-tab.
d. Click on "Add JVM Option" and enter:
-Dcom.sun.enterprise.server.logging.max_history_files=5
to keep 5 files around. Save, restart server and you are ready to go. Well, that is, the files will be deleted with the next log rotation that occurs. Also, note that this setting will work for both server.log and access.log files.
That's all folks!
Lidia