Pivotal云代工厂中的ResourceExhausted错误

问题描述 投票:0回答:1

每当尝试调用部署在PCF中的SOAP端点时,我都会收到以下错误。

2019-03-07T06:55:22.817-05:00 [APP/PROC/WEB/0] [ERR] Resource 
exhaustion event.
 2019-03-07T06:55:22.817-05:00 [APP/PROC/WEB/0] [ERR] 
  ResourceExhausted! (1/0)
  2019-03-07T06:55:26.668-05:00 [APP/PROC/WEB/0] [OUT] | Instance 
  Count | Total Bytes | Class Name |
2019-03-07T06:55:26.669-05:00 [APP/PROC/WEB/0] [OUT] | 447836 | 
32342112 | [C |
2019-03-07T06:55:26.671-05:00 [APP/PROC/WEB/0] [OUT] | 297596 | 
11903840 | Ljava/util/LinkedHashMap$Entry; |

2019-03-07T06:55:26.796-05:00 [APP/PROC/WEB/0] [OUT] Memory usage:
2019-03-07T06:55:26.797-05:00 [APP/PROC/WEB/0] [OUT] Heap memory: init 
16777216, used 169257280, committed 409534464, max 409534464
2019-03-07T06:55:26.798-05:00 [APP/PROC/WEB/0] [OUT] Hint: Heap memory 
 is over 95% full. To increase it, increase the container size.
2019-03-07T06:55:26.799-05:00 [APP/PROC/WEB/0] [OUT] Non-heap memory: 
init 2555904, used 175238384, committed 180928512, max 495026176
2019-03-07T06:55:26.800-05:00 [APP/PROC/WEB/0] [OUT] Memory pool 
 usage:

该问题的任何解决方法。

spring-boot pivotal-cloud-foundry
1个回答
1
投票

确保PCF应用程序有足够的内存(根据您的输出,当前最大堆大小为400MB):

您需要增加应用程序本机大小和JVM最大堆大小:

cf scale my-application -m 1G
cf set-env my-app JAVA_OPTS '-Xmx768m'
cf cf restage my-application
© www.soinside.com 2019 - 2024. All rights reserved.