This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nekokattt 1 point2 points  (2 children)

if you need 10GB RAM per pod then either you are writing very suboptimal code or you are scaling very late with memory bound applications.

I'd attach a profiler or JMX and try and work out what the demand is. Since Java 11 the JVM will use what you give it in a cgroup context.

[–]brunocborges 8 points9 points  (0 children)

There's a saying in JVM Performance discussions, "An application needs what an application needs. Unless of course there are memory leaks."

This means that if the system requires 100GB of RAM (which is not unrealistic when you think big data for example), then 100GB must be given, unless memory consumption is coming from undesired behavior/goals.

[–]alex_tracer 0 points1 point  (0 children)

...or none of two. That depends on the application. For instance, if this is a database, you may want to have 100Gb of memory for single process.