clojure - with cloure lein ring server, how to set max heapsize when starting the web appication?
问题描述
So when I start the cloure web application with the command lein ring server, there are 2 processed that get started.
The first process is clojur.main that then runs the main web application. The jvm options
:jvm-opts ["-Xmx128m" "-server"]
for ring work to control the memory for the web application. The issue is that the clojure.main -m leingen.core.main allocates 300+ MB of heap space. (see screenshot 32)
解决方案
好吧,没关系
显然我应该运行 lein trampoline ring server
这样leingen就可以走开,节省内存
推荐阅读
- python - Python有多个正确答案
- python - 在 Pandas 多索引中逐级迭代
- javascript - 反应 | 函数内部的 this.props.function 不会被调用
- html - IHTMLDocument2_write 导致 Internet Explorer 安全弹出 - Powershell
- hydra-core - 是否可以在配置文件中指定相对于配置文件位置的路径?
- python-3.x - pyautogui 在 ubuntu 18.04 中不起作用。热键在编辑器外部不起作用,而在编辑器内部起作用
- wordpress - 在 woo BACS 付款设置中添加字段,该字段将始终为“订单号”并通过电子邮件发送给客户
- java - 如何在第二个 if 块中使用 date1 的更新值。显示错误“date1 无法解析”
- javascript - 在 MTurk HIT 中设置 cookie
- angular - 如何以角度将src插入iframe?