-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

André,

On 1/21/15 3:13 PM, André Warnier wrote:
> Mike Seda wrote:
>> Is it advisable to have the following JVM option set in Tomcat 7
>> (with Java 7)? -XX:+DisableExplicitGC
>> 
>> Or will this prevent Tomcat itself from calling System.gc() when
>> it needs to?
>> 
> 
> Tomcat is probably not doing that anyway (I'll let someone else
> answer that part), but there might be some monitoring/control
> application running, which could be using that.
> 
> 
> The reason I am thinking of this, is that I have a couple of 
> installations where because of an unruly webapp leaving tons of 
> connections open in CLOSE_WAIT state, I am using a jmxsh script 
> regularly, to provoke such GC's to clean them up. If I set the
> option above, that script would probably fail, and the system would
> slowly get to an inoperative state.

I'm interested... if you add -XX:+DisableExplicitGC and try your
JMX-based gc-caller, does it still invoke the gc?

I know that sounds stupid, but I wonder if the JMX bean's "gc" method
just calls System.gc() or if it uses something under the covers that
will still work.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUwAt5AAoJEBzwKT+lPKRY6oUP/jSwhawcq18sOid3ESIODrEO
DLOCxw+EOTbiuxcpYfc0F0Wy4wokMeSpB4Yst/vhi/fli8li9458XqmL/X6AqpHA
BMQL2vq0ZFxZokgk/9sZ2CuARmmKUjQwNZl86Dl3sbSV7o/uPoM/FJ5s7MmZkefC
dWESL8UgkKyywAVmHnh9bNwQeQtv762U82aEECQZewo2zx7rx7xWDnMDGmmLGgqe
QwHlBMw7Mwh9GLbQJ9F4tUA4OhMAqJivXVpb2YN+m1CBURJywLYYzye0ayUORfyt
Wyk5iw/g048tykmyotTucDuEF8L87vd2xBEBjgL8w1gFWU4jhg8II0/MBmYgafrz
p6qcE3jl6bH2Qmaf4Wt0+nLNLwWat4J4LhDjqCbY0Q4QeBeEC0Iw7PPFGPYnZKyR
xJtLxMMq5XMq1JupKfdh/2qInPxqv3h3PkKOCCJVDy/Zo2PT5fViN5mktNEBuBQa
17lITWm9IwpR41xHFvz21fWGMTSx8/EhWj7qsNWz4CiephrHpPXr1p3HV+jG9EnK
vV06cgDnBi9UprvbtbF+qVRabMBGq2Idr4JnTY8muG+QShC7UYDeRWrlSXm/4rU7
oBPuCh1PfI0qiz7saOaAn1Dyq8ZsW3sfG7vRfPYVNBM/ow20X8p5oFhMopYYYxYn
ScJqskl/HxOdD2nUiq65
=wqJr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to