Memory issue

Discussion in 'Performance Tweaking' started by BlueMoonMaster, Jun 1, 2017.

  1. Recently my server has started lagging quite a bit, probably due to all the plugins i have, so i tried adding more memory, but get this error when i try to run it
    Error occurred during initialization of VM
    Initial heap size set to a larger value than the maximum heap size

    Anyone know how to fix this?
     
  2. when you have the ram set, you set the -XMX value, this is the memory max, this is the number you should be setting.
    insted you have set the value of XMS (memory start) this is the initial heap size, and you have set it over the XMX.
    Meaning that you tell it that it can only have (random number) 2 gb of MAX memory, but it has to start with 4 gb of memory.
    how can it start with 4 gb of memory if the max is 2?, that is what is it complaining about

    the TL;DR
    Make sure your xms is equal to, or below your XMX
     
  3. thx, that fixed the problem, sry about the noobishness im new to this