1

When trying to start AnyLogic, it throws the following error:

Failed to create Java Virtual Machine

Benjamin
  • 10,603
  • 3
  • 16
  • 28

1 Answers1

1

Try these steps in order:

  1. Try to restart your machine.
  2. If that does not help, go into the AnyLogic installation folder (somewhere like C:/Program Files/AnyLogic 7 Professional/) and open the file AnyLogic.ini with an editor.
  3. Replace the existing line "-Xmx1024M" with "-Xmx256M"
  4. save & close.
Benjamin
  • 10,603
  • 3
  • 16
  • 28
  • That's going to vary based on your machine. http://stackoverflow.com/a/5374501/3280538 – flakes Mar 02 '16 at 14:10
  • good point, thx. So to solve the problem, you will want to *change* the existing value, most likely to a lower value. – Benjamin Mar 02 '16 at 14:12
  • Only if your issue is heap allocation. There could be a number of reasons why the JVM fails to load. – flakes Mar 02 '16 at 14:14