I found createObjects method in SpringFactory will call appContext.refresh() method, that will cause memory leaks, then throw OOM. I think this would be a bug of Spring.
So I created a MySpringFactory to override createObjects, not call refresh method.
I found createObjects method in SpringFactory will call appContext.refresh() method, that will cause memory leaks, then throw OOM. I think this would be a bug of Spring. So I created a MySpringFactory to override createObjects, not call refresh method.