使用 Leiningen 的 JVM 选项 [英] JVM options using Leiningen

查看:21
本文介绍了使用 Leiningen 的 JVM 选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 Leiningen 启动 Clojure 时,如何设置 JVM 选项,例如 -server?

How do I set JVM options like -server when I launch Clojure using Leiningen?

推荐答案

sample.project.clj 文件,看起来您可以使用 :jvm-opts 关键字传递 JVM 参数.例如:

Looking at the sample.project.clj file on the github repository, It looks like you can pass JVM arguments using the :jvm-opts keyword. For Example:

:jvm-opts ["-Xmx1g" "-server"] 

这篇关于使用 Leiningen 的 JVM 选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆