Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab Stand alone - not enough memory on distributed pc

Subject: Matlab Stand alone - not enough memory on distributed pc

From: Andreas

Date: 23 Sep, 2010 08:58:05

Message: 1 of 3

Hi all,

I have the following problem: I built my own EXE file of my Matlab program. I used several toolboxes (Filter Design, Report Generator, Guide). On my computer it works well, but on distributed computers the programs works till to the Report Generator. I get the error during the Conversion of the Report Generator "Document Conversion failed".

I guess that there is not enough java memory on the distributed computers. I faced the same problem on my computer, but I solved it according to the Matlab support (java.opt file -> Xmx -500). But how can I increase the jvm memory on computers where no matlab is installed? (the best way would be to increase the memory automatic in the m-File oder batch File)

Thanks in advance!

Subject: Matlab Stand alone - not enough memory on distributed pc

From: Yair Altman

Date: 23 Sep, 2010 16:59:05

Message: 2 of 3

"Andreas " <promberger.andreas@gmx.net> wrote in message <i7f4qt$bg2$1@fred.mathworks.com>...
> Hi all,
>
> I have the following problem: I built my own EXE file of my Matlab program. I used several toolboxes (Filter Design, Report Generator, Guide). On my computer it works well, but on distributed computers the programs works till to the Report Generator. I get the error during the Conversion of the Report Generator "Document Conversion failed".
>
> I guess that there is not enough java memory on the distributed computers. I faced the same problem on my computer, but I solved it according to the Matlab support (java.opt file -> Xmx -500). But how can I increase the jvm memory on computers where no matlab is installed? (the best way would be to increase the memory automatic in the m-File oder batch File)
>
> Thanks in advance!

You may try setting the -Xmx option in a java.opts file, as explained in http://www.mathworks.com/support/solutions/en/data/1-18I2C/

Theoretically, the JVM launched from your exe will look for this java.opts file in its startup folder and launch with the increased memory option.

Please post a reply sating whether or not this solved the problem, for posterity's sake...

Yair Altman
http://UndocumentedMatlab.com

Subject: Matlab Stand alone - not enough memory on distributed pc

From: Andreas

Date: 24 Sep, 2010 08:48:08

Message: 3 of 3

Hi,

so I solved the problem. I know this solution according to the Matlab Support, where the following is written:

1. Create java.opts file:
Create a text file named java.opts in the $MATLABROOT/bin/$ARCH directory.

When I double click on my EXE on the targed computer, the ctf file is extracte and a new folder creates. In this folder there is also a bin/win32 subfolder. In this subfolder I copied my java.opt file (this is the same way as I did on my computer to work around this problem, but in the Matlab root). But it still didn't work. On Yair's tip I read again:


If you do not have write-access to $MATLABROOT/bin/$ARCH, or if you want a user-specific version, create the java.opts file in the MATLAB startup directory. The MATLAB startup directory can be found by executing the following at the MATLAB Command Prompt (before any MATLAB code is executed):

pwd


So I copied the java.opt file where my EXE file is also. And now it works!

@ Yair: Thanks for your answer!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us