binblockwrite - MATLAB:Java:GenericException on large datasets
显示 更早的评论
Hi all,
when trying to upload large datasets to a signal generator with binblockwrite out of the Instrument Control Toolbox, we're running into trouble.
Starting with a buffer size of 20 MB or larger (uint8 data type) binblockwrite exits on line 159 with a "MATLAB:Java:GenericException". At first glance it looks like the corresponding binblockwrite Java method is invoked there and throws the exception if the buffer size roughly exceeds the 20 megs limit.
We already tried to increase Java Heap and PermGen sizes in a java.opts file, but had no luck so far:
-XX:PermSize=200m
-XX:MaxPermSize=200m
-Xmx512m
-Dcom.sun.management.jmxremote
If monitored by VisualVM you can see the following reactions if binblockwrite is invoked:
- PermGen size: no / little change
- Heap size: increases roughly with output buffer size
Thanks a lot for any suggestions,
Philipp
---------
Versions:
Matlab 7.9.0 (R2009b)
Java SE Runtime Environment, 1.6.0_12
Windows XP SP3
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!