quality@glassfish.java.net

Re: b66: strange log file rotation

From: Carla Mott <Carla.Mott_at_Sun.COM>
Date: Fri, 02 Oct 2009 07:39:34 -0700

Currently it looks like the problem is in the web container but I still
need to do some investigation. I'm working this this today and hope to
have an answer soon.

carla

from the bug report:

I see this happening when I deploy an application. If I just start and
stop the
server everything works as expected and the server log file grows. On
the first
deploy I see that the file is truncated.

I was able to debug a bit and see that the last messages before
truncation are:


Oct 1, 2009 4:36:13 PM com.sun.enterprise.web.WebContainer
createHttpListener
INFO: Created HTTP listener http-listener-1 on port 8080
Oct 1, 2009 4:36:13 PM com.sun.enterprise.web.WebContainer
createHttpListener
INFO: Created HTTP listener http-listener-2 on port 8181
Oct 1, 2009 4:36:13 PM com.sun.enterprise.web.WebContainer
createHttpListener
INFO: Created HTTP listener admin-listener on port 4848


Still investigating.

------- Additional comments from dkoper Fri Oct 2 04:20:48 +0000 2009
-------

On my system, the timing of the truncation seems to be when accessing
the GUI
after a restart, rather than just restarting the domain. The first messages
logged to the cleared log file are:

[#|2009-10-02T14:18:54.501+1000|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=31;_ThreadName=Thread-3;|Created
virtual server __asadmin|#]


[#|2009-10-02T14:18:54.501+1000|INFO|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=31;_ThreadName=Thread-33;|Created
virtual server __asadmin|#]

------- Additional comments from vbkraemer Wed Sep 30 21:39:58 +0000
2009 -------

I have installed v3 b66 (9-28-2009) and see that the server.log is getting
emptied by start-domain. This seems like it is a regression.


See the following transcript for details:

bash-3.2$ ls -la glassfishv3/glassfish/domains/domain1/logs/server.log
glassfishv3/glassfish/domains/domain1/logs/server.log: No such file or
directory
bash-3.2$ glassfishv3/glassfish/bin/asadmin start-domain
Time spent in master password extraction: 221 msec
Waiting for DAS to start. ...................................
Started domain: domain1
Domain location: /export/home/vkraemer/glassfishv3/glassfish/domains/domain1
Log file:
/export/home/vkraemer/glassfishv3/glassfish/domains/domain1/logs/server.log
Admin port for the domain: 4848
Command start-domain executed successfully.
bash-3.2$ ls -la glassfishv3/glassfish/domains/domain1/logs/server.log
-rw-r--r-- 1 vkraemer staff 16400 Sep 30 12:30
glassfishv3/glassfish/domains/domain1/logs/server.log
bash-3.2$ glassfishv3/glassfish/bin/asadmin stop-domain
Waiting for the domain to stop ..............
Command stop-domain executed successfully.
bash-3.2$ ls -la glassfishv3/glassfish/domains/domain1/logs/server.log
-rw-r--r-- 1 vkraemer staff 17484 Sep 30 12:31
glassfishv3/glassfish/domains/domain1/logs/server.log
                                    ^^^^^
                                              VVVVVVVVV
bash-3.2$ glassfishv3/glassfish/bin/asadmin start-domain
Time spent in master password extraction: 222 msec
Waiting for DAS to start. ..................................
Started domain: domain1
Domain location: /export/home/vkraemer/glassfishv3/glassfish/domains/domain1
Log file:
/export/home/vkraemer/glassfishv3/glassfish/domains/domain1/logs/server.log
Admin port for the domain: 4848
Command start-domain executed successfully.
bash-3.2$ ls -la glassfishv3/glassfish/domains/domain1/logs/server.log
-rw-r--r-- 1 vkraemer staff 16602 Sep 30 12:31
glassfishv3/glassfish/domains/domain1/logs/server.log
                                    ^^^^^
bash-3.2$ ls -la glassfishv3/glassfish/domains/domain1/logs/
total 69
drwxrwxr-x 3 vkraemer staff 5 Sep 30 12:31 .
drwxrwxr-x 12 vkraemer staff 13 Sep 30 12:20 ..
-rw-r--r-- 1 vkraemer staff 0 Sep 30 12:31 jvm.log
drwxr-xr-x 3 vkraemer staff 3 Sep 30 12:20 server
-rw-r--r-- 1 vkraemer staff 16602 Sep 30 12:31 server.log
bash-3.2$ ls -la glassfishv3/glassfish/domains/domain1/logs/server
total 9
drwxr-xr-x 3 vkraemer staff 3 Sep 30 12:20 .
drwxrwxr-x 3 vkraemer staff 5 Sep 30 12:31 ..
drwxr-xr-x 2 vkraemer staff 6 Sep 30 12:20 tx
bash-3.2$ ls -la glassfishv3/glassfish/domains/domain1/logs/server/tx
total 339
drwxr-xr-x 2 vkraemer staff 6 Sep 30 12:20 .
drwxr-xr-x 3 vkraemer staff 3 Sep 30 12:20 ..
-rw-r--r-- 1 vkraemer staff 36864 Sep 30 12:20 control
-rw-r--r-- 1 vkraemer staff 65536 Sep 30 12:20 cushion
-rw-r--r-- 1 vkraemer staff 65536 Sep 30 12:20 extent.001
-rw-r--r-- 1 vkraemer staff 33 Sep 30 12:31 recoveryfile



Christoph John wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Carla,
>
> thank you, unfortunately I still cannot reach the issue tracker, otherwise I had done a quick search
> on it. :)
> Does anyone know when it will be available again?
>
> Thanks
> Chris.
>
> On 10/02/2009 03:23 PM, Carla Mott wrote:
>> Hi christoph,
>>
>> There is a bug written about this. I'm looking into it now.
>>
>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=9874
>>
>> Carla
>>
>> Christoph John wrote:
>> Hi,
>>
>> I just noticed the following:
>> 1. Started glassfish with asadmin start-domain
>> 2. Browsed through the admin console and saw corresponding log output
>> in the server.log.
>> 3. Stopped glassfish with asadmin stop-domain
>> 4. Started glassfish again. Now some startup messages were written to
>> the old server.log file.
>> 5. But after I started the admin console again server.log was suddenly
>> deleted and a new server.log
>> was created with the new logging output, i.e. the old server.log was
>> gone.
>>
>> Am I missing something here? The server.log was only a few kilobytes
>> in size, not anywhere near the
>> default rotation size.
>>
>> Thanks,
>> Christoph
>>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>
>
> - --
> Christoph John
> http://www.macd.com Tel.: +49 (0)241 44597-28
> Macdonald Associates GmbH Geschäftsführer: George Macdonald
> Oppenhoffallee 103, D-52066 Aachen Amtsgericht Aachen, HRB 8151, Ust.-Id DE813021663
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFKxgXDMtne1i1i0z0RApVsAJwKpRjcsJBFfxAyqjiVuNUMW6NkdgCcDpDU
> C0+2ws+Vho2zMuI93V9t46o=
> =gj6N
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>