How can I disable Java garbage collector?

后端 未结 8 1153
你的背包
你的背包 2020-12-08 19:16

We have a PHP webapp that calls a Java binary to produce a PDF report (with JasperReports). The Java binary outputs the PDF to standard output and exits; the PHP then sends

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 19:55

    GC only kicks in when JVM is short on memory, so you either GC or die. Try turning on verbose GC and see if it actually takes significant amount of time.

    java -verbose:gc
    

提交回复
热议问题