This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to increase java heap space

Hello,


During a command line XDC build of an executable I am getting the following error:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space


Is there an environment variable, or command line setting I can pass to xdc to be able to configure the java max heap size?

Running java from the command line I would use this:

java -Xmx2048m

Thanks!