8000 GitHub - liusf1993/dubbo-test
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

liusf1993/dubbo-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reproduce steps

  1. Run main method of Provider in dubbo-provider module to start provider-side.
  2. Run main method of Consumer in dubbo-consumer module to start consumer-side.
  3. View memory cost by memory analyzed tool.

Tools and commands I used was below

  1. find pid, jps|grep "Consumer" result:16238 Consumer pid is 16238
  2. run GC manually. jcmd 16238 GC.run
  3. view class histogram jcmd 16238 GC.class_histogram
 num     #instances         #bytes  class name
----------------------------------------------
   1:          1616     1510006176  [I
   2:         17732        1398664  [C
   3:          1642         944136  [B
   4:          4543         526712  [Ljava.lang.Object;
   5:          4462         500616  java.lang.Class
   6:         17696         424704  java.lang.String

the int[] occupy much memory.
4. uncomment 25th line in Consumer.java, InternalThreadLocal.removeAll(), memory cost will be normal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0