You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Bergquist, Brett" <BB...@canoga.com> on 2012/02/21 20:01:01 UTC

Trying to start derby network server with properties to monitor garbage collection

Tried adding "-verbose:gc" to the "startNetworkServer" script, but I cannot find out where the garbage collection statistics output should appear?

Any help will be appreciated.

Brett

RE: Trying to start derby network server with properties to monitor garbage collection

Posted by "Bergquist, Brett" <BB...@canoga.com>.
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"<BB...@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]
>


Re: Trying to start derby network server with properties to monitor garbage collection

Posted by Kristian Waagan <kr...@oracle.com>.
On 22.02.2012 12:02, Knut Anders Hatlen wrote:
> "Bergquist, Brett"<BB...@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]
>

RE: Trying to start derby network server with properties to monitor garbage collection

Posted by "Bergquist, Brett" <BB...@canoga.com>.
Thanks Knut.   Actually it turns out that Derby is being started by Glassfish and the stdout of "-verbose:gc" is going nowhere.  

I do appreciate your help!

Brett

-----Original Message-----
From: Knut Anders Hatlen [mailto:knut.hatlen@oracle.com] 
Sent: Wednesday, February 22, 2012 6:03 AM
To: derby-dev@db.apache.org
Subject: Re: Trying to start derby network server with properties to monitor garbage collection

"Bergquist, Brett" <BB...@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:

% 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]

--
Knut Anders


Re: Trying to start derby network server with properties to monitor garbage collection

Posted by Knut Anders Hatlen <kn...@oracle.com>.
"Bergquist, Brett" <BB...@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:

% 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]

-- 
Knut Anders