Updated resource for tuning Java performance

Can someone recommend a website that contains up-to-date performance recommendations for Java? Most of the sites that I found seem to be old, and I think that newer versions (1.5 - 1.7) may have outdated some recommendations.

Edit:

I mainly focus on reducing memory usage / garbage collection and ensuring that simple methods can be built in if necessary.

This code involves processing large amounts of data in streams using a large number of small objects. For each data item, some objects are created, others longer. These objects typically implement an interface or extend an abstract class.

+3
source share
2 answers

Update: For me, a reference document for setting up a Sun virtual machine: Java SE 6 HotSpot TM Configuring a Garbage Collection Tuning virtual machine (this will also give you a methodology).

As noted in the comment, the ergonomics function does a good job of configuring a modern JVM and should be tried first before checking for more detailed control.

, Young Generation. Java TM Java TM:

, . , , . , .

:

:

  • , . .
    • , , , .
  • , . , , , (10-20% ).
  • :
    • .
    • , .

, , (. ).

, VM . , . - , .

  • ( 100 ),
    • -XX:+UseSerialGC.
  • , ,
    • VM
    • -XX:+UseSerialGC.
  • (a) , (b) ,
    • VM
    • -XX:+UseParallelGC () -XX:+UseParallelOldGC.
  • , , , ,
    • -XX:+UseConcMarkSweepGC. , , .

, ( :) :

, . -

:


Java - Java . blog Kirk Pepperdine ( ).

+3

- WebLogic. http://middlewaremagic.com , JVM, GC, Coherence ..

JVM -:

JVM

0

Source: https://habr.com/ru/post/1747706/


All Articles