Whenever i am opening 20 -30 streams in my application , i am getting java.lang.OutOfMemoryError:...

rkumar
rkumar Explorer
Whenever i am opening 20 -30 streams in my application , i am getting java.lang.OutOfMemoryError: Java heap space error . is there any mechanism where streams are making some unnecessary data which needs to cleared or refreshed.Please Help.

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @rkumar,

    There should be no obvious steps you need to explicitly take to manage data resources. Given we have no knowledge of your complete application nor visibility within the processing of data, the best way to eliminate concerns specifically related to opening multiple streams is to do this within a standalone application. Try opening multiple streams within one of the training examples and observe the behaviour. If you observe the out-of-memory behaviour with the example, then you can report your findings here.