Facing issue of the out of memory while deploying app on pcf

902 Views Asked by At

I am running batch job on PCF which loads 10 millions records and when I run the batch I get the below error. Through manifest.yml I've assigned 2GB of memory to app already !

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
0

There are 0 best solutions below