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.
Also, if this is a duplicate, sorry. I was surprised I did not find more information on this kind of thing.
Not duplicate of: I looked at here, however, his answer seems to just be a guess, with no backup. The other answers in that question are not very clear and/or specific to my problem. 1) I am not on a window 32 bit system, 2) I was not asking about PermGen, though it may be mentioned in a good answer, 3) The third answer did say "Finally, you also have to take into account the other things that are running on the server and that need RAM too" but this is not a precise answer. I am just worried about the OS usage of memory for now.
Edit: This is dedicated system, so I am mostly worried about the OS memory usage. I am not worried about other programs.
GC