You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/01/14 03:37:26 UTC

[GitHub] [servicecomb-java-chassis] five111 commented on issue #2693: bug: metaspace oom

five111 commented on issue #2693:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2693#issuecomment-1012720890


   可以稳定重现 复现手段
   -------------------------------------------------------
   jmeter+微服务A
   微服务A发送请求给微服务B,且环境没有微服务B,然后用jmeter发送大量请求给微服务B 请求如下 无特殊之处 
   ```
   @GetMapping("/asyncSayHello/{name}")
       public String asyncSayHello(@PathVariable("name") String name) {
           cseAsyncRestTemplate.getForEntity("cse://TOF-provider/provider/tomcat/hello/" + name, String.class);
           return null;
       }
   ```
   通过visualVM观察metaspace如下图
   ![image](https://user-images.githubusercontent.com/19482564/149447336-a188338e-53fa-4117-b54e-13e31773d707.png)
   虽然能看到gc回收 单如果我将metaspace大小设置较小 很容易oom


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org