Limit Java Heap Space for play framework globaly

前端 未结 9 1589
無奈伤痛
無奈伤痛 2020-12-04 14:22

I have a very old linux system and installed java and play framework. When I run java I get:

java -version
Error occurred during initialization of VM
Could n         


        
9条回答
  •  天命终不由人
    2020-12-04 15:02

    In Play 2.2 and Java 7, this is what I used.

    $ target/universal/stage/bin/foo -mem 256 -J-server
    

    For the detail of -mem, please see:

    $ target/universal/stage/bin/foo -h
    

提交回复
热议问题