How to increase java heap size programmatically

前端 未结 5 1740
抹茶落季
抹茶落季 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:17

    For desktop applications, I suggest providing a launcher which can then specify your desired memory size. In addition to configuration of your JVM, you can also provide an icon, file associations, etc.

    See this SO question for deployment alternatives.

提交回复
热议问题