motan icon indicating copy to clipboard operation
motan copied to clipboard

启动超时严重

Open zxn-git opened this issue 5 years ago • 2 comments

每次上线启动server端,超时比较严重!怀疑motan线程池创建导致,不知道有没有什么好方案可以规避

zxn-git avatar Aug 19 '19 03:08 zxn-git

建议使用JFR看看类加载、对象创建等耗时情况。

java的类加载机制很容易出现系统启动后首次请求耗时较长的问题,可以考虑在server端正式对外提供服务(开启心跳)前,进行业务预热来缓解

rayzhang0603 avatar Aug 19 '19 09:08 rayzhang0603

超时得先看是哪里超时啊,一上来就说怀疑motan线程池创建导致,没有证据就是胡说

lhl4546 avatar Sep 20 '19 01:09 lhl4546