Java performance tips

前端 未结 14 1594
傲寒
傲寒 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:36

    jvisualvm ships with JDK 6 now - that's the reason the link cited above doesn't work. Just type "jvisualvm ", where is the ID of the process you want to track. You'll get to see how the heap is being used, but you won't see what's filling it up.

    If it's a long-running process, you can turn on the -server option when you run. There are a lot of tuning options available to you; that's just one.

提交回复
热议问题