on-internet
← Community

Resource exhaustion event: the JVM was unable to allocate memory from the heap

Stack Overflow ·

I'm trying to fetch more than 1 million records in the microservices. I'm getting an error. I need to keep increasing the app memory for the service in order to fetch a huge amount of data. Is there any method I can use to fetch huge data instead of increasing the app memory. 2022-10-11T11:22:04.898+08:00 [APP/PROC/WEB/0] [ERR] Resource exhaustion event: the JVM was unable to allocate memory from the heap. 2022-10-11T11:22:04.898+08:00 [APP/PROC/WEB/0] [ERR] ResourceExhausted! (1/0) @Value("${batch-size}") private int batchSize; public void archiveTableRecords(JdbcTemplate sourceDbTemplate, Jd

Comments

Sign in or sign up to comment and upvote.

No comments yet.