MATLAB Answers

How to increase java heap memory in Matlab when running it on a Linux cluster machine?

2 views (last 30 days)
Suchetana Gupta
Suchetana Gupta on 25 Jun 2015
Whenever I try to run a piece of code on a cluster using xlwrite function (with all paths mentioned properly and all files in the working directory), I get the error
{^HError using org.apache.poi.xssf.usermodel.XSSFCell/setCellValue Java exception occurred: java.lang.OutOfMemoryError: GC overhead limit exceeded at org.apache.xmlbeans.impl.store.Cur$Locations.<init>(Cur.java:496) at org.apache.xmlbeans.impl.store.Locale.<init>(Locale.java:168) at org.apache.xmlbeans.impl.store.Locale.getLocale(Locale.java:235) at org.apache.xmlbeans.impl.store.Locale.newInstance(Locale.java:586) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.newInstance(SchemaTypeLoaderBase.java:198) at org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst$Factory.newInstance(Unknown Source) at org.apache.poi.xssf.usermodel.XSSFRichTextString.<init>(XSSFRichTextString.java:90) at org.apache.poi.xssf.usermodel.XSSFCell.setCellValue(XSSFCell.java:315)
Error in xlwrite (line 275) currentCell.setCellValue(data); }^H
Can you suggest a way to rectify it?
The same code runs beautifully in a Windows machine. But the problem is that I do not have access to a high performing Windows machine now and hence need to run it on Linux. Instead of using xlswrite (csvwrite/dlmwrite aren't working) I am using xlwrite. Thanks

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by