Christopher, thanks for your reply. Answers inline.
> > What I see in the profiler is Max Heap Size 310378496 B, which is only 0.28 > > GiB. > > This is probably the maximum size of the /used/ heap. Can you confirm that? Nope. Netbeans profiler says: Max Heap Size 310378496 B, Max Used Heap 261052168 B > Try running your application without *any* memory parameters and run it > through a reasonable exercise. Then look at everything with your > profiles *and also* make sure you look at the OS's report of the > allocated memory for the process. That will give you a sense for how > much "native memory" versus heap memory your application actually needs. > You may find that the native memory requirements are roughly the same > size as the Java heap requirements. That means you can't even reasonably > approach a 50% heap size because you still need to be about to run the > OS which takes a bit of memory. I'll try that now. I've seen people recommending up to 80% RAM though: https://dev.to/focusedlabs/the-no-nonsense-guide-to-jvm-14-memory-on-kubernetes-508m --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org