Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.14.1, 3.17.0
-
None
-
Unknown
Description
We realized a sever memory leak in a standard route:
I reproduced it and made a simple MemoryAllocation Check.
Just for curiosity i made another test with: (.errorhandler(no errorhandler)) and the memory leak does not occure.
Sample route to reproduce:
from("scheduler:testScheduler?repeatCount=1")
.log("Starting route test-route")
.process(exchange -> {
Iterator<String> infiniteIter = new Iterator<>() {
private int integer = 0;
@Override public boolean hasNext()
{ return true; }@Override public String next()
{ return String.valueOf(integer++); }};
exchange.getMessage().setBody(infiniteIter);
})
.split().body().streaming()
.log("inside split: ${body}")
.end()
.log("test-route never finishes");
Attachments
Attachments
Issue Links
- duplicates
-
CAMEL-16034 MDC Logging causing OutOfMemory with large split
- Resolved
- is caused by
-
CAMEL-17153 afterprocess of UnitOfWork doesn't work properly
- Resolved
- links to