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.

CCS 5.5 JVM heap low detected! under linux

Other Parts Discussed in Thread: MSP430F5308

Hi,

I'm getting frequent "JVM heap low detected!" warnings while doing MSP430 development.  I recently updated my CCS install from 5.3 to Version: 5.5.0.00077.  Prior to the upgrade I do not recall ever seeing a heap warning.  I could step back to 5.3, but the debugger seems to be better behaved under 5.5, so I'd like to stick with it if possible.  Is anyone else seeing this problem?  Is there anything I can do to reduce or eliminate it?  Ignoring it seems to lead to an eventual crash of CCS. I haven't tried increasing the heap size, but I'm just doing basic debugging, nothing fancy, so it's hard to believe that I really need a larger heap just to do MSP430 builds and debugging.

The host system is CentOS release 6.5 (Final), and the kernel is 2.6.32-431.el6.x86_64 #1 SMP.  The target device is an MSP430F5308, and the emulator is an MSP-FET430UIF, version 1.4a.

I could shift to an Ubuntu 12.04 machine if that will actually help, but if 5.3 didn't have this problem under CentOS, I'm a bit surprised that it started showing up with 5.5.

thanks,

galen

  • Hi Galen,

    There is definitely something unusual. The default setting should be more than adequate based on basic debug that you described. There are some views that do use significantly more memory and increasing heap size can help, if multiple instances of those editors are opened. I had a few basic debug views opened, about 10 editor windows and an active debug session and my heap usage was about 120MB. The limit is currently set at 384 (5.3 and 5.5 have the same setting). Could you open Window->Preferences and then go to General category. On the right hand pane there should be  a checkbox titled "Show heap status". Please enable it, it should show current heap utilization in bottom right hand corner of main CCS window. I would expect those JVM low messages to appear around the 360-370MB mark. Is there any kind of specific views, actions or commands that seem to trigger abnormal growth in heap utilization? 

    Martin

  • Thanks for your help.  I now have "show heap status" enabled.  After enabling "show heap status", I believe I have only seen the warning occur once.  The heap is typically around 65M, with a high water mark of ~125M.  It's a bit hard to believe that enabling the heap status miraculously cured the problem, but I didn't have the time to attempt to track down whatever change might have fixed things.  Anyway, it is working now.  If I run into the problem again, I will report back.

    thanks,

    galen