-
-
Notifications
You must be signed in to change notification settings - Fork 632
[Feature] 不以服务启动,通过命令行运行工作流 #736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
你好,你使用的哪个版本、哪种部署方式? |
LXC-network:~/certimate# export GOMEMLIMIT=64MiB
LXC-network:~/certimate# GOMEMLIMIT=64MiB ./certimate serve
2025/05/28 17:02:40 INFO [CERTIMATE] Visit the website: http://127.0.0.1:8090
PID VSZ^VSZRW^ RSS (SHR) DIRTY (SHR) STACK COMMAND
7747 1385m 51104 197m 4 197m 0 132 ./certimate serve 试了不太行,占用内存没有变化
|
二进制包体积优化负优化了😂 upx压缩的包运行方式是:解压到内存中运行,导致内存占用变大了。Certimate实际占用20M左右,比起内存硬盘多占用一点就无所谓了。 |
先注释掉吧 😂 |
哈哈哈哈,我为了减少资源占用特意用了二进制文件没用docker,反倒占用更多了 那这个feature还要考虑吗?感觉和刚开的 #733 类似 |
我是在openwrt上部署的二进制文件3.14,内存在脚本里限制为512M,实际运行后,占用69%,大概202M。 |
功能描述 / Description
通过命令行运行指定/全部工作流,不启动web服务,运行完成后退出
请求动机 / Motivation
经测试本应用运行时占用内存大约为200MB,而证书更新间隔时间相对较长,个人认为长时间将certimate作为服务运行有些浪费内存,200MB虽然不是很大,但是对于一些路由器/共享vps来说还是有一定压力的。所以希望推出一个不启动服务,只通过命令行运行指定/全部工作流的功能,或者将web服务与核心功能分开(通过单页面应用和api来控制核心服务)。在需要配置工作流时启动web,平时通过系统cron调用工作流,能极大地减少资源占用,拓展应用场景
其他 / Miscellaneous
No response
贡献 / Contribution
The text was updated successfully, but these errors were encountered: