XDCOUTOFMEMORYERROR

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search


  • Image:Google-16x16.png Search for an article here:


Introduction

This page gives information for users attempting to packages with XDC and getting java out of memory error.

Overview

When compiling a XDC package which internally allocates huge amount of memory. For example see below,

Module.xdc:
TableEntry   table[];
Module.xs:
obj.table.length  = 1000; /* Allocates memory from JVM */

Here memory is allocated when length member of this array is assigned some value. If this value is large, it throws java.lang.OutOfMemory error.

Solution

1. Go to controlpanel and click on Java icon image:XDC_OOM_Step1.PNG

2. Click on Java tab image:XDC_OOM_Step2.PNG

3. Click on first view button image: XDC_OOM_Step3.PNG

4. Add -Xms256m or -Xms512m or -Xms1024m to the Java Runtime Parameters field image: XDC_OOM_Step4.PNG

5. For JRE which comes with XDC packages, click on Find button image: XDC_OOM_Step5.PNG

6. Click next button image: XDC_OOM_Step6.PNG

7. Locate XDC JRE directory image: XDC_OOM_Step7.PNG

8. Click finish button image: XDC_OOM_Step8.PNG

Now you can perform step4 to increase memory for this JRE distribution.


For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article XDCOUTOFMEMORYERROR here.
Leave a Comment
Personal tools