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 v5 "Failed to create the Java Virtual Machine" error

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I need to increase my heap size allocated for ccs. I tried to modify the ccstudio.ini file. The thing is, when I increase the -Xmx and -Xms parameters beyond 690m (exactly 690m, I tried) I get this error when I try to use ccs. also I wasn't able to increase MaxPermSize parameter too. I am using WinXP x64 with 8GB of RAM. Can somebody help?

Thanks in advance.

Tunc

  • Hi,

    Thank you for your answer but I was talking about the CCS itself, not a code that runs on a board, I would like to increase the heap that the CCS uses from my PC's RAM.

    Tunc

  • Ohh.. I get it. As you've already checked with -Xmx in ccsstudio.ini file.

    Now check with this:

    Open "eclipse.ini" in \ccsv5\eclipse Adjust the “-Xmx256m“ argument, i.e. bump up to 512m... (try with the suitable value)

    Regards,

    Gautam

  • I think the eclipse.ini file has nothing to do with ccs, I think ccs initialization is done using the ccstudio.ini. For the ccstudio.ini file, I was unable to increase -Xmx and -Xms values beyond exactly 690m and I want to increase further. Sorry for not being clear on my question, I was actually asking why I am unable to do so and how can I increase further. Thank you for your responses.

    By the way, I also increased -Xmx and -Xms values of eclipse.ini file to 1024m without a problem starting ccs. I was also able to start ccs with -Xmx, -Xms and MaxPermSize of eclipse.ini to unreasonably high values such as 1TB and I was still able to start the ccs, that is why I think eclipse.ini does not matter for ccs.

    Regards,

    Tunc

  • Tunc, as of CCSv5.0 and above, we started using ccstudio.ini and eclipse.ini is not used. Please make the same changes to the ccstudio file.  See the end of this thread for the explanation:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/183520.aspx

    Raj

  • I did but, I was unable to increase those parameters beyond 690m on a PC that has 8GB of RAM. I double checked that I had 6GB of free RAM at that time. I am still unable to increase beyond. 

    Regards,

    Tunc

  • Hello Tunc, 

    I was not able to see the error that you are getting. There was no attachment or picture in the post. Why do you think you need to increase java heap beyond 690m? What problem are you trying to solve? 

    See this thread, specifically my post about java heap, for more information on java heap. 

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/291335/1019779.aspx#1019779

  • Hi,

    Thank you for your reply. If you think that it will be helpful, I can upload screenshots of the error, task manager and ccstudio.ini file.

    I want to increase the heap because I think it wil solve my other problem related to XGCONF. Here, I have asked about this:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/292376.aspx

    Unfortunately there are no answers/replies yet. 

    Regards,

    Tunc.

  • Hi, 

    .cfg file editor does use quite a few resources. However, normally you should be able to open 2-3 of these files without issues with default settings. You might run into java heap issues if you have quite a few other windows open that hold or need to process a lot of data (e.g. a lot of very, very large source files opened, maybe some profiling views, or trace data views). Most standard debug views e.g. memory, disassembly, registers do not use a lot of memory. 

    In the other post that I mentioned there is a way to display java heap status. You could use it to see if you are hitting limits defined in .ini file. Also, I would expect to see java out of memory exceptions rather than XDC exceptions. It might help if you send me the workspace log file (YourWorkspacePath/.metadata/.log ; there may be multiple of these files, you could zip them up and attach them). XGConf issue might be unrelated to hava heap. 

    martin

  • Hi,

    I have uploaded the .log file.

    I have also checked for a possible heap size related issue by following your instructions but while opening the .cfg file via XGCONF, the heap size was quite enough, actually it did not even go beyond one fourth of the available heap during the .cfg file opening process. But, again, the CCS failed to open the file via XGCONF. How should I proceed with this problem? My other thread mentioning this problem has no replies.

    Link to above mentioned thread: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/292376.aspx

    Regards,

    Tunc.

  • Ok, so it does not seem to be a java heap issue. In the log I found this line:

    ...Unable to find package xconfig_image_processing_evmc6678l_master...

    which is similar to message mentioned in your original post. Is it possible that you are missing some component? Unfortunately, XGConf is not my area of expertise. Your original post most likely needs to be moved to a different forum. I'll try to get it moved to correct forum. 

    martin

  • Hi,

    This project has directly been imported from the TI mcsdk demos. I have imported both master and slave projects to the workspace several times. May be coincidental but I have noticed that I get this error for slave .cfg file when I successfully open master's cfg file and vice versa. The first .cfg almost always opens without any problems, then I try to open the other .cfg with XGCONF after closing the XGCONF view of the first one. It fails.

    Also, please move my other thread to the relevant forum.

    Regards,

    Tunc