简体   繁体   English

micronaut 微服务的内存消耗

[英]Memory consumption for micronaut microservices

I have a question about performance.我有一个关于性能的问题。 I have built some microservices cloud-oriented with micronaut.我已经用 micronaut 构建了一些面向云的微服务。 I deploy those services in Kubernetes and the performance is like:我在 Kubernetes 中部署了这些服务,性能如下:

  • CPU: super good, they barely do not consume CPU CPU:超级好,几乎不消耗CPU
  • RAM: They consume starting from 250MiB RAM:它们从 250MiB 开始消耗

As a first thought, 250MiB seems like too much for me when I read that micronaut is low memory-footprint.第一个想法是,当我读到 micronaut 是低内存占用时,250MiB 对我来说似乎太多了。

So, the question is: Is it normal that my micronaut microservices consume, at least, 250MiB?所以,问题是:我的 micronaut 微服务消耗至少 250MiB 是否正常?

Just to give you an overview, my services wait for incoming requests and, even when they're doing "nothing", the memory consumed is more that 250MiB.只是给你一个概述,我的服务等待传入的请求,即使他们“什么都不做”,消耗的内存也超过 250MiB。

Thanks!谢谢!

Is it normal that my micronaut microservices consume, at least, 250MiB?我的 micronaut 微服务消耗至少 250MiB 是否正常?

No. I have seen many Micronaut services and I have seen zero that require at least 250MiB.不。我见过许多 Micronaut 服务,我见过至少需要 250MiB 的零服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM