About heap size, gc and newsize

2003-08-19 Thread achana
Hi all. I am trying to get gc to reclaim more regularly by clearing short live HttpRequest. Is this syntax corrrect, doesn't seem to do much whichever way I tweak it : (catalina.sh) ... JAVA_OPTS="-Xms256m -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m" TIA :-) -

Re: About heap size, gc and newsize

2003-08-19 Thread Bill Barker
At least in Tomcat, the HttpRequests aren't short-lived ;-). If you are using Sun's JVM, then I'd try -Xincgc first (otherwise, consult your vendor's docs for the correct option). In many cases it hurts performance, but in some it improves it dramatically. Your mileage may vary ;-). <[EMAIL PRO

RE: About heap size, gc and newsize

2003-08-20 Thread Shapira, Yoav
ung generation, yet you're not collecting the young generation any more actively than usual. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Tuesday, August 19, 2003 10:22 PM >To: [EMAIL PROTECTED] >

Re: About heap size, gc and newsize

2003-08-20 Thread Norris Shelton
I guess the real question is why are you concerned with when the requests are GC'd. Left to it's own devices, GC usually only happens when the JVM is using almost all of the allocated memory. Therefore, the more memory allocated, the longer till GC and the longer GC will last. If you are trying

RE: About heap size, gc and newsize

2003-08-20 Thread Shapira, Yoav
Howdy, >Left to it's own devices, GC usually only happens when the JVM >is using almost all of the allocated memory. Therefore, the >more memory allocated, the longer till GC and the longer GC will >last. ;( ;( This is a common wrong assumption people have about Java's modern GC algorithms. I