java 1.4.2 garbage collector performance (141 Views)
Occasional Contributor
Posts: 4
Registered: ‎02-02-2006
Message 1 of 1 (141 Views)

java 1.4.2 garbage collector performance

we're using java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition
Fast VM (build 1.4.2-4.p2, native threads, mixed mode, 05/10/2005-02:43)
on OSF1 V5.1 2650 alpha, to run a weblogic 8.1 server.

We're having a problem where the server times out when the garbage collection phase takes 30 seconds or more. I've raised this with BEA but they're tending to blame the jvm for this and aren't too clued up on this implementation.

So the question is, should the garbage collection take this long, and should a client hang whilst it's going on?

I've been doing some experiments, and if I have minimal apps running, no heap specified, the server runs happily with 100Mb of heap and does the collecting c. 0.1 seconds. If I increase the heap size to c. 500Mb, the garbage collection takes 10-30 seconds (I increase the heap either explicitly with -Xms java flag or grow it by grabbing memory in other apps - the net effect is the same).

The machine has 1Gb of memory, we're trying to run 2 weblogic servers on it. No java flags specified other than -Xverbosegc

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.