`
sillycat
  • 浏览: 2489937 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

SBT with Memory

 
阅读更多
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
分享到:
评论

相关推荐

    [SBT] SBT 入门教程 (Scala 实现) (英文版)

    [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-0.13.17

    sbt-1.0.0.msi

    Sbt

    sbt资源包,全平台版本sbt-platform

    scala所必须的支持包,sbt-0.13.13,全平台版本

    sbt官网学习文档

    sbt官网学习文档

    sbt-0.13.15.tgz

    最新sbt

    Getting Started with SBT for Scala

    使用SBT开发Scala,SBT是scala项目和Java项目集成的有利工具,使用SBT管理Scala和Java项目集成,非常方便!

    sbt0.13.5jar包

    sbt0.13.5jar包

    sbt-1.0.2.zip

    sbt,sbt-1.0.2.zip 最新 scala编程 spark大数据编程需要

    idea sbt更新资源库

    国内大家肯定遇到idea 更新sbt相关插件慢的问题。通过此资源库配置文件,可以大大的提高下载速率。把下载的文件直接放到 当前用户目录的.sbt目录下,如: ~/.sbt/repositories 通过如下配置效果更好: [repositories...

    sbt-1.9.0.tgz

    sbt-1.9.0.tgz

    SBT 1.2.3最新版

    SBT 1.2.3最新版(sbt is a build tool for Scala, Java, and more. It requires Java 1.8 or later)

    sbt in Action(Manning,2015)

    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 ...

    sbt-0.13.15

    scala sbt

    构建工具 sbt-1.0.3

    scala 构建工具sbt-1.0.3 scala 构建工具sbt-1.0.3 scala 构建工具sbt-1.0.3

    sbt-launch.jar

    压缩包涵盖 sbt-launch-0.11.0,sbt-launch-0.11.2,sbt-launch-0.11.3,sbt-launch-0.13.9版本

    SBT二叉树文件索引

    利用SBT树写的一个文件-地址偏移的类,用来实现文件索引存储~~利用SBT树写的一个文件-地址偏移的类,用来实现文件索引存储~~利用SBT树写的一个文件-地址偏移的类,用来实现文件索引存储~~

    sbt-1.0.2.msi

    sbt最新的windows安装程序,官网下载太慢了 sbt最新的windows安装程序,官网下载太慢了 sbt最新的windows安装程序,官网下载太慢了

    sbt-1.3.13.zip

    这是scala官方的构建程序的安装框架sbt的1.3.13版本,是目前较新的安装工具,由于某种原因,sbt官网下载较慢,所以分享出来给需要的人

    sbt-1.2.1.zip 最新版 下载

    截止2018/08/13最新版的sbt-1.2.1, 这个不翻很难下载, scala常用的代码编译器

Global site tag (gtag.js) - Google Analytics