hectorqin / reader

阅读3服务器版,桌面端,iOS可用。后端 Kotlin + Spring Boot + Vert.x + Coroutine ;前端 Vue.js + Element。麻烦点点star,关注一下公众号【假装大佬】❗️ Demo服务器由于未备案已被关停,建议自行搭建

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

建议docker基础镜像使用 ibm-semeru-runtimes:open-8u312-b07-jdk

ilay1678 opened this issue · comments

ibm-semeru-runtimes:open-8u312-b07-jdk 使用的jdk是openj9,能大幅度降低内存占用

现在内存占用应该比较低了吧?demo服务目前内存占用在 100M ~ 250M 左右

我刚搭建了一个,内存占用六百多,只添加了一个用户

用的最新版吗?

最新的,用的docker-compose
自己用ibm-semeru-runtimes:open-8u312-b07-jdk本地打包后,内存占用200多M

你可以用docker限制一下内存使用的

实际内存占用可以访问接口 http://ip:端口/reader3/getSystemInfo 来获得内存信息

使用openj9 {"isSuccess":true,"errorMsg":"","data":{"freeMemory":"7M","totalMemory":"25M","maxMemory":"982M"}}
未使用时totalMemory是二百多

这个openj9有点厉害啊,就是镜像有点大

应该有更小的openj9镜像,我用的这个是底层镜像貌似是debian或者Ubuntu,所以大

ibm-semeru-runtimes:open-8u332-b09-jre
这个小一些

已添加openj9镜像