SBT with Memory
I am having problem with running SBT run command. Because I need to load some machine learning models. Actually there are a lot of models.
One option is that I need to put something like in the current project root.
>cat .sbtopts
-J-Xmx8G
-J-XX:+UseConcMarkSweepGC
-J-XX:+CMSClassUnloadingEnabled
-J-Xss2M -Duser.timezone=GMT
-jvm-debug 5008
Then command works
> sbt clean update compile -Dhttp.port=8003 run
Production Memory Configuration
These parameters help
> bin/classifier-play -Dconfig.file=conf/application.conf -Dhttp.port=8003 -Dhttp.address=0.0.0.0 -J-Xms1024M -J-Xmx8g -J-server
References:
http://stackoverflow.com/questions/8331135/how-to-prevent-java-lang-outofmemoryerror-permgen-space-at-scala-compilation
https://medium.com/@jan______/sbtconfig-is-deprecated-650d6ff10236#.b1armdw6q
http://stackoverflow.com/questions/21647394/java-lang-outofmemoryerror-permgen-space-in-play-framework
https://www.playframework.com/documentation/2.4.3/ProductionConfiguration#JVM-configuration
分享到:
相关推荐
[Packt Publishing] Getting Started with SBT for Scala (E-Book) ☆ 图书概要:☆ Equip yourself with a high-productivity work environment using SBT, a build tool for Scala Overview Establish simple ...
sbt-0.13.17 sbt-0.13.17 sbt-0.13.17 sbt-0.13.17 sbt-0.13.17 sbt-0.13.17
Sbt
scala所必须的支持包,sbt-0.13.13,全平台版本
sbt官网学习文档
最新sbt
使用SBT开发Scala,SBT是scala项目和Java项目集成的有利工具,使用SBT管理Scala和Java项目集成,非常方便!
sbt0.13.5jar包
sbt,sbt-1.0.2.zip 最新 scala编程 spark大数据编程需要
国内大家肯定遇到idea 更新sbt相关插件慢的问题。通过此资源库配置文件,可以大大的提高下载速率。把下载的文件直接放到 当前用户目录的.sbt目录下,如: ~/.sbt/repositories 通过如下配置效果更好: [repositories...
sbt-1.9.0.tgz
SBT 1.2.3最新版(sbt is a build tool for Scala, Java, and more. It requires Java 1.8 or later)
A tutorial about effectively building Scala projects, sbt in Action introduces the sbt tool with a simple project that establishes the fundamentals of running commands and tasks. Next, it shows you ...
scala sbt
scala 构建工具sbt-1.0.3 scala 构建工具sbt-1.0.3 scala 构建工具sbt-1.0.3
压缩包涵盖 sbt-launch-0.11.0,sbt-launch-0.11.2,sbt-launch-0.11.3,sbt-launch-0.13.9版本
利用SBT树写的一个文件-地址偏移的类,用来实现文件索引存储~~利用SBT树写的一个文件-地址偏移的类,用来实现文件索引存储~~利用SBT树写的一个文件-地址偏移的类,用来实现文件索引存储~~
sbt最新的windows安装程序,官网下载太慢了 sbt最新的windows安装程序,官网下载太慢了 sbt最新的windows安装程序,官网下载太慢了
这是scala官方的构建程序的安装框架sbt的1.3.13版本,是目前较新的安装工具,由于某种原因,sbt官网下载较慢,所以分享出来给需要的人
截止2018/08/13最新版的sbt-1.2.1, 这个不翻很难下载, scala常用的代码编译器