How to increase java heap size programmatically

前端 未结 5 1735
抹茶落季
抹茶落季 2020-12-04 01:18

I have a java desktop application for searching files and it is usually reaching the default heap limit pretty soon. I wont have access to all the systems it will be install

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 02:14

    Take a look at something like launch4j and consider deploying executables where you can control the limit when someone begins the run of your application.

    You won't be able to do this programmatically.

提交回复
热议问题