How can I disable Java garbage collector ?

Posted by Nelson on Stack Overflow See other posts from Stack Overflow or by Nelson
Published on 2010-05-28T07:49:43Z Indexed on 2010/05/28 8:01 UTC
Read the original article Hit count: 204

Filed under:
|

Hi, we have a PHP webapp that calls a java binary to produce a pdf report (with jasperreport), the java binary outpus pdf to standart output and exits, the php then send the pdf to browser. This java command lasts about 3 to 6 seconds, I think when it lasts 6 second it's because the GC kicks in, so I would like to disable it because anyway when the command exits all memory is returned..

I would like to know how to disable it for Java 1.4.2 and for Java 1.6.0 because we are currently testing both JVM to see which performs faster..

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about garbage-collection