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

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

问题描述

如何在使用lein swank启动Clojure时设置类似于-server的选项?

How do I set options like -server when I launch Clojure using lein swank?

推荐答案

=http://github.com/technomancy/leiningen/blob/master/sample.project.clj =nofollow noreferrer> sample.project.clj 文件在github存储库,它看起来像你可以使用: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天全站免登陆