jvm virtual machine tuning notes

java memory structure



 

heap memory composition



 

Garbage Collection Algorithm

  Mark-sweep Mark Sweep Disadvantage: Lots of memory fragmentation

  Copying copying disadvantages: can only be used with half of the memory new generation

  mark-compact mark compression disadvantage: slightly lower efficiency than copy old generation use

garbage collector

  serial collector : single thread is rarely used

  Parallel collector: parallel recycling java8 default large concurrency jvm needs to stop

  CMS collector: short pause times

  G1 collector: short pause time and high concurrency

Common parameter settings

 

 

Tuning tomcat



 

 

jmeter stress test

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326172872&siteId=291194637