Java performance tips

前端 未结 14 1723
傲寒
傲寒 2021-02-01 20:04

I have a program I ported from C to Java. Both apps use quicksort to order some partitioned data (genomic coordinates).

The Java version runs fast, but I\'d like to get

14条回答
  •  自闭症患者
    2021-02-01 20:53

    Use a profiler:

    • visualvm ( free, limited )
    • jprofiler ( commercial )
    • yourkit java profiler ( commercial )
    • hprof ( free, limited, console only )

    Use the latest version of JVM from your provider. Incidentally Sun's Java 6 update 14 does bring performance improvements.

    Measure your GC throughput and pick the best garbage collector for your workload.

提交回复
热议问题