db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bergquist, Brett" <BBergqu...@canoga.com>
Subject RE: Trying to start derby network server with properties to monitor garbage collection
Date Wed, 22 Feb 2012 13:45:04 GMT
That was exactly what I needed.  Derby is being started via Glassfish and the stdout of the
"-verbose:gc" is going nowhere.  

Funny that this option is never mentioned in a page like:

http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.ergonomics

Thank you very much!

Brett

-----Original Message-----
From: Kristian Waagan [mailto:kristian.waagan@oracle.com] 
Sent: Wednesday, February 22, 2012 7:50 AM
To: derby-dev@db.apache.org
Subject: Re: Trying to start derby network server with properties to monitor garbage collection

On 22.02.2012 12:02, Knut Anders Hatlen wrote:
> "Bergquist, Brett"<BBergquist@canoga.com>  writes:
>
>> Tried adding “-verbose:gc” to the “startNetworkServer” script, but I 
>> cannot find out where the garbage collection statistics output should 
>> appear?
> It is printed to the console in my environment:

You can also try -Xloggc:file. Don't think you need -verbose:gc then, but some of the other
GC-related flags may affect the output.


Regards,
-- 
Kristian

>
> % DERBY_OPTS=-verbose:gc /code/derby/releases/db-derby-10.8.2.2-bin/bin/startNetworkServer
> Wed Feb 22 11:56:20 CET 2012 : Security manager installed using the Basic server security
policy.
> Wed Feb 22 11:56:21 CET 2012 : Apache Derby Network Server - 10.8.2.2 - (1181258) started
and ready to accept connections on port 1527
> [GC 16896K->1312K(64768K), 0.0116008 secs]
> [GC 18208K->2584K(64768K), 0.0106343 secs]
> [GC 19480K->3885K(64768K), 0.0133624 secs]
> [GC 20781K->4147K(64768K), 0.0076451 secs]
>

Mime
View raw message