Re: We have GC problem
- From: Andreas Wollschlaeger <postmaster@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 19 Nov 2006 21:13:43 +0100
Cyrus wrote:
mchunglin@xxxxxxxxx wrote:We have probem with this one our java biometrics server. Server is
doing too much GCs. The JProbe analyzer says class Bio_lMx315 and
Bio_lMx317 are big problem for us. These class is mostly list of double
like this:
[....]
Please no suggestion about "tweak" -xms params. WE wasting so much time
with this and server will always have problems.
If you sure it is the problem of creating/freeing of Bio_IMx??? too
much, object pooling can help u. The following is a link about it.
http://www.javaworld.com/jw-06-1998/jw-06-object-pool.html
However, you need to make the following changes on you current code:
1. change "new Bio_IMx???()" to "objectPool.CheckOut()".
2. when a Bio_IMx??? obj is no longer use, call
"objectPool.CheckIn(bioObj)".
Well, i suppose this article dates back to 1998, with modern JVMs object pooling is generally considered to *lose* performance in most cases! See http://www-128.ibm.com/developerworks/java/library/j-jtp01274.html for a good explanation of this topic, maybe this also gives some insights on how to fix your server :-)
Greetings
Andreas
.
- References:
- We have GC problem
- From: mchunglin
- Re: We have GC problem
- From: Cyrus
- We have GC problem
- Prev by Date: Re: What makes a senior developer?
- Next by Date: Stream, Reader and text vs binary
- Previous by thread: Re: We have GC problem
- Next by thread: Re: We have GC problem
- Index(es):
Relevant Pages
|
Loading