Increasing Java heap size in Eclipse - using virtual memory

后端 未结 6 1672
伪装坚强ぢ
伪装坚强ぢ 2021-01-16 11:44

I am running a program in Eclipse(Windows) and need a relatively huge size of memory. Passing the -Xmx1500m to the program seems not sufficient, while Eclipse d

6条回答
  •  礼貌的吻别
    2021-01-16 11:52

    r u using 32 bit JVM or 64 bit? use 64 bit JVM. I am not sure about the size limitations on 64 bit , but definitely more than 32 bit.

    try this: java -d64 -Xms512m -Xmx60g YourProgram

    it sets 60gb as the max heap size.

提交回复
热议问题