[Solved] jvm 1 Error occurred during initialization of VM Could not reserve enough space for object heap

When I double click activemq.bat to start MQ and reports the following error,

The reason is caused by insufficient memory. You can use Ctrl + Alt + Del –> Task manager, close some process tasks to make room, and then start again

 

Solution:

Method 1:

There may be other similar situations, which may also be caused by the non rent of memory

For example, the error of starting Kafka package in the following figure: Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error=’The page file is too small and it can be operated.’ (DOS error/errno=1455)

Through the method agreed above, you can start successfully

 

Method 2:

  1. Open the idea location and select the idea64.exe.vmoptions file.

  1. Open this file as a text document
  2. Modify the parameters to be larger

 

Notice:

  1. Restart the idea and project after making changes
  2. If it does not take effect, modify the other one under the same folder as shown in Figure 1 below
  3. If it does not take effect yet, modify the file in this path in the C drive, as shown in Figure 2 below

Read More: