我正在PCF上运行批处理作业,该作业加载了10 millions
条记录,当我运行批处理时,出现以下错误。通过manifest.yml
,我已经为应用分配了2GB
的内存!
2020-03-06T13:48:24.282-05:00 [APP/PROC/WEB/0] [OUT] tenured generation total 253952K, used 18859K [0x00000000f0800000, 0x0000000100000000, 0x0000000100000000)
2020-03-06T13:48:24.282-05:00 [APP/PROC/WEB/0] [OUT] to space 12672K, 0% used [0x00000000efba0000, 0x00000000efba0000, 0x00000000f0800000)
2020-03-06T13:48:24.282-05:00 [APP/PROC/WEB/0] [OUT] from space 12672K, 0% used [0x00000000eef40000, 0x00000000eef40000, 0x00000000efba0000)
2020-03-06T13:48:24.282-05:00 [APP/PROC/WEB/0] [OUT] eden space 101632K, 5% used [0x00000000e8c00000, 0x00000000e9156680, 0x00000000eef40000)
2020-03-06T13:48:24.282-05:00 [APP/PROC/WEB/0] [OUT] def new generation total 114304K, used 5465K [0x00000000e8c00000, 0x00000000f0800000, 0x00000000f0800000)
2020-03-06T13:48:24.282-05:00 [APP/PROC/WEB/0] [OUT] Heap
2020-03-06T13:48:29.255-05:00 [APP/PROC/WEB/0] [ERR] jvmkill killing current process
2020-03-06T13:53:01.261-05:00 [APP/PROC/WEB/0] [ERR] Resource exhaustion event: the JVM was unable to allocate memory from the heap.
2020-03-06T13:53:01.261-05:00 [APP/PROC/WEB/0] [ERR] ResourceExhausted! (1/0
[OUT] JVM Memory Configuration: -Xmx379303K -Xss1M -XX:ReservedCodeCacheSize=240M -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=157272K