java.lang.OutOfMemoryError even though plenty of

后端 未结 4 1712
小蘑菇
小蘑菇 2020-12-09 13:43

I am trying to read a 2.5GB txt file into my application. I am running Win7 x64 and have 43GB of mem available (out of 64GB). I tried playing around with -Xmx -XX:MaxParmS

4条回答
  •  遥遥无期
    2020-12-09 14:17

    You should look into the -Xmsn option for the java command.

    It specifies the initial size of the memory allocation pool.

    Edit: I see you've already done that.

提交回复
热议问题