Running a play framework app in Amazon EC2 micro instance

前端 未结 2 783
旧巷少年郎
旧巷少年郎 2021-02-14 22:38

I have a really basic play! app which simply handles a couple of normal GET and POST requests and talks to a MySQL database, nothing fancy.

I ran play dist

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-14 23:03

    Play Framework 2.3 now has a nifty little feature.

    $ /path/to/bin/ -mem 512 -J-server
    

    Shoule get the job done.

    Read http://www.playframework.com/documentation/2.3-SNAPSHOT/ProductionConfiguration


    Specifying additional JVM arguments You can specify any JVM arguments to the start script. Otherwise the default JVM settings will be used:

    $ /path/to/bin/ -J-Xms128M -J-Xmx512m -J-server As a convenience you can also set memory min, max, permgen and the reserved code cache size in one go; a formula is used to determine these values given the supplied parameter (which represents maximum memory):

    $ /path/to/bin/ -mem 512 -J-server

提交回复
热议问题