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:
java Heap memory for executables

Subject: java Heap memory for executables

From: Shirley Zheng

Date: 16 Feb, 2011 20:27:03

Message: 1 of 2

Hello, friends:

This is a foolish question:

I imported java classes in my matlab code and reset the hava heap memory to 511 MB. After the matlab code is converted to executable file. Does this set up (java heap space 511MB) is automatically included in the executable file? The other way of my question is 'Do I need to set up the java heap space when I run the executable file?'.

Thanks,

Shirley
   

Subject: java Heap memory for executables

From: Yair Altman

Date: 17 Feb, 2011 07:52:03

Message: 2 of 2

"Shirley Zheng" wrote in message <ijhbun$71b$1@fred.mathworks.com>...
> Hello, friends:
>
> This is a foolish question:
>
> I imported java classes in my matlab code and reset the hava heap memory to 511 MB. After the matlab code is converted to executable file. Does this set up (java heap space 511MB) is automatically included in the executable file? The other way of my question is 'Do I need to set up the java heap space when I run the executable file?'.


Asking questions is not foolish - only being too shy to ask them is foolish...

You can increase the memory using the java.opts file in your Matlab startup folder as described here: http://www.mathworks.com/support/solutions/en/data/1-18I2C/

In your distributed application, simply include this java.opts file in the same folder as the application - I think that this should do the trick.

Yair Altman
http;//UndocumentedMatlab.com

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