This content has been marked as final. Show 3 replies
Krish8 wrote:Yes the used memory can exceed that if you e.g. are using memory mapped files. Don't know if you can restrict it unless your OS has some kind of support for it.
I have a basic question on the memory settings. Assume I have a java process where the memory settings are like:
where the server capacity is say 8GB Then can the process exceed the allocated memory of 1GB and go further say upto 4 GB.
If above thing is possible, how can we limit the process not to exceed the given limit? What settings need to be used.
Krish8 wrote:It's very seldom that you use memory mapped files, so the max allocated memory under normal conditions is the one that you specify.
Thanks Kaj for your response. If yes, then what is the use of seeting max-heap size?
Assume if set ParellelGC option in addition to this, does this stop exceeding the max limit?No, since the memory of a memory mapped file is allocated by the OS, and not "in the VM"