2

Our company IT recently went through an upgrade and I don't know what else they changed to the defaults but Excel 2013 32-bit (w/ MATLAB Compiler Runtime add in) crashes multiple times a day and it's driving me crazy.

I looked through the solutions to other similar questions but still having no luck. The exact error that I'm receiving is attached in the picture below. I've tried editing the environment variable to various amounts and checked that the free physical memory is available (has 16G total and usually half is free)

Running java -version in the command prompt returns:

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b31)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

The Java Control Panel Runtime Environment Settings reference javaw.exe but I changed the environment variables on both the java.exe and javaw.exe (in both Program Files and Program Files (x86).

Unable to start the JVM. Picked up _JAVA_OPTIONS: -Xmx1024m -Xms512m Error occurred during initialization of VM Could not reserve enough space for budget heap There is not enough memory to start up the Java virtual machine. Try quitting other applications or increasing your virtual memory

JVM Error

lolatu2
  • 373
  • 1
  • 5
  • 16
  • Thanks for attaching the image. Please add **text** of the message along with the image. This helps the search-engines and hence will help other people who have the same problem. – Prashant Sep 29 '15 at 21:43
  • It may be a too obvious question but have you tried reinstalling the JRE, it sometimes solves problems like these – Elian Kamal Sep 29 '15 at 21:46
  • 1
    The error message is: Unable to start the JVM. Picked up _JAVA_OPTIONS: -Xmx1024m -Xms512m Error occurred during initialization of VM Could not reserve enough space for budget heap There is not enough memory to start up the Java virtual machine. Try quitting other applications or increasing your virtual memory. – lolatu2 Sep 29 '15 at 22:11
  • @lolatu2 Are you still seeing the same message with the same numbers? Have you tried quitting other programs to free up system memory? – Prashant Sep 29 '15 at 22:42
  • I tried a bunch of different sizes and none of them seemed to work. When I took the screenshot, the size was set to 256m initial and 512m max. The written out portion shows another option I tried that was 512m initial and 1024m max – lolatu2 Sep 29 '15 at 22:43
  • The Task Manager shows that I have 9G free out of 16G total – lolatu2 Sep 29 '15 at 22:44

1 Answers1

3

It says it does not have enough space. Change the setting for JVM Maximum Memory to 1024M -Xmx1024m Are there such setting for your plugin ? You might want to Google "JVM heap size settings for Excel MAtlab plugin".

Please take a look at this question as well. (Increase default heap size for windows) Hope this helps!

Community
  • 1
  • 1
Prashant
  • 1,002
  • 13
  • 29
  • I tried various memory limits and they didn't seem to work. I did try setting the max limit to 1024m and got the same error. How do I change the environment variables back to the default in command prompt? – lolatu2 Sep 29 '15 at 22:38
  • 1
    I finally got it to work by changing the variable name to JAVA_OPTS instead of the _JAVA_OPTIONS that I was using earlier. – lolatu2 Oct 01 '15 at 15:01