Suppose I am running tomcat with -Xms256m -Xmx1024m, but would like to increase my heap usage.
What is the largest safe heap size I can allocate?
For the purpose of this question, please assume, the system has 5GB RAM and is a z/Linux system. However, if possible I would like a broader rule of thumb answer.
This is dedicated system, so I am mostly worried about the OS memory usage. I am not worried about other programs.
Also, if this is a duplicate, sorry. I was surprised I did not find more information on this kind of thing.
GC
PS: I understand there may be some more system information needed. I don't mind if the answer details how to find an answer, rather than giving me a number.