I am implementing publish, consume by scheduler using vm queue in anypoint studio.
I arbitrarily limited the jvm heap size to 100m for testing on memory.
When I run the programme, I get java.lang.OutOfMemoryError: java heap space, is there any way to solve this problem without increasing the heap space
enter image description here
I am running publish by scheduler with 1 second cycle and consume by scheduler with 5 second cycle.
For reference, I also get the same error when I run CONSUME with a 1 second cycle, but it works fine for about an hour before I get the error.
I also tried changing the algorithm of the garbage collection in memory, but the result was the same.
Jerry Song is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.