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.

JVM heap low detected

Other Parts Discussed in Thread: TMS320C28346

I am continuing to get the "JVM heap low detected" warning even after increasing the eclipse heap size to 1024 M.

By just editing and scrolling the source files the memory usage (heap) slowly increases until it reaches 1G and then crashes.

I followed the instructions from this post http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/40558/153505.aspx#153505.

My eclipse.ini looks like:

-vmargs
-Xms1024m
-Xmx1024m
-XX:PermSize=512m
-XX:MaxPermSize=512m

I am running ccs4 4.2.3.00004 and working with the 28x controllers (TMS320C28346) and Signum Systems JTAG Jet-TMS emulator.

  • Hi Riah,

    The heap warning detects when memory usage reaches the maximum before the garbage colletor kicks in to free up unreference memory. You can view your heap usage under Window | Preferences, than select General. If the heap doesn't go down for awhile, you can try to close some of the unuse views and editors. If you have multiple perspective open, the view or editor must be close in all perspective before it is truely close.

    HTH.
    Patrick

  • It's pretty unusual to get heap issues with an editor window/c28x environment. I assume the file is not overally huge. My guess would be that there might be a memory leak in the Indexer. Can you try the same steps you mentioned with the indexer turned off (Preferences->C/C++->Indexer, select  No Indexer). If this fixes it, you may want to try an early release of CCSv5.1 which has many of the indexer issues fixed and indexing is much faster.

    Raj

  • I have switched off the indexer and closed all other perspectives and unused views. Now I only have the text editor, navigator, problems, console and search views open. My C source files are on average about 1000 lines long and I have about 60 source files (including unit tests).

    The heap usage is still continuing to increase.

    The heap usage increases after performing a search (Ctrl+H) and does not significantly reduce even after performing a garbage collection.

    I will have a look at CCSv5.1