how to increase java heap memory permanently?

前端 未结 5 1724
南笙
南笙 2020-12-02 23:14

I have one problem with java heap memory. I developed one client server application in java which is run as a windows service it requires more than 512MB of memory. I have 2

5条回答
  •  眼角桃花
    2020-12-02 23:52

    if you need to increase reserved memory, there are VM parameters -Xms and -Xmx, usage e.g. -Xms512m -Xmx512m . There is also parameter -XX:MaxPermSize=256m which changes memory reserved for permanent generation

    If your application runs as windows service, in Control panels -> Administration tools -> Services you can add some run parameters to your service

提交回复
热议问题