Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 使用http2进行压力测试后,okhttp3内存过高_Spring_Memory_Okhttp_Http2 - Fatal编程技术网

Spring 使用http2进行压力测试后,okhttp3内存过高

Spring 使用http2进行压力测试后,okhttp3内存过高,spring,memory,okhttp,http2,Spring,Memory,Okhttp,Http2,对不起,我正在用http2和okhttp3做一个压力测试 我使用JMeter作为测试工具 我的线程在300秒内为200,在30秒内上升 我用docker做平台 在压力测试之后,内存会上升到8GB,并且永远不会下降 我已经用过这样的代码了 > client.dispatcher().executorService().shutdown(); > client.connectionPool().evictAll(); 已经在为我的okhttpclient使用singleton了 但仍然

对不起,我正在用http2和okhttp3做一个压力测试 我使用JMeter作为测试工具 我的线程在300秒内为200,在30秒内上升

我用docker做平台 在压力测试之后,内存会上升到8GB,并且永远不会下降 我已经用过这样的代码了

> client.dispatcher().executorService().shutdown();
> client.connectionPool().evictAll();
已经在为我的okhttpclient使用singleton了

但仍然没有下降 有什么我错过的吗


谢谢,通常JVM程序在进程退出之前不会释放内存。这是内存管理方式的一个副作用。

你是说我必须关闭程序,然后释放内存?