softwarespartan / IB4m

Interactive Brokers API for Matlab
GNU General Public License v2.0
62 stars 21 forks source link

Out of memory error: Java heap space #50

Closed Despair2000 closed 5 years ago

Despair2000 commented 5 years ago

It now happened to me a few times that matlab becomes unresponsive with this java heap space error. It always happens after I downloaded a lot of historical data.

Is this my code or IB4m that makes something strange?

softwarespartan commented 5 years ago

did you update java heap size for Matlab at launch?

https://www.mathworks.com/matlabcentral/answers/108738-how-do-i-increase-java-heap-size-to-greater-than-4-gb https://www.mathworks.com/matlabcentral/answers/108738-how-do-i-increase-java-heap-size-to-greater-than-4-gb

On Mar 20, 2019, at 2:49 PM, Despair2000 notifications@github.com wrote:

It now happened to me a few times that matlab becomes unresponsive with this java heap space error. It always happens after I downloaded a lot of historical data.

Is this my code or IB4m that makes something strange?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/softwarespartan/IB4m/issues/50, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWq1OYX1kZ0EQ3tWVFFIkh2oNnKW2gpks5vYoKggaJpZM4cABaa.

Despair2000 commented 5 years ago

I just googled it and found that (should have done so before writing here). I will ramp up the size and try again.

Thanks!

softwarespartan commented 5 years ago

No worries, let me know if that works for you

On Mar 20, 2019, at 2:55 PM, Despair2000 notifications@github.com wrote:

I just googled it and found that (should have done so before writing here). I will ramp up the size and try again.

Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/softwarespartan/IB4m/issues/50#issuecomment-474982774, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWq1Kq2YFDiLfI2RLpsVM7fkrzC5FNYks5vYoQwgaJpZM4cABaa.

Despair2000 commented 5 years ago

I doubled the heap size and the error vanished.

Thanks!