Is there something in .NET that corresponds to java -Xmx
memory size allocation?
The theoretical limit is 2^64 bytes, which is 16 exabytes (1 exabyte = 1024 petabytes, 1 petabyte = 1024 terabytes). However, most OS's can't handle that. For instance, Linux can only support 64 terabytes of data.
You can change size of heap space by using JVM options -Xms and -Xmx. Xms denotes starting size of Heap while -Xmx denotes maximum size of Heap in Java.
The heap memories for either server are created at the JVM start-up with a default value of 4096 MB. If the default value is insufficient to suit the memory consumption of either server, you can change the maximum heap size to a value that ranges between 4096 and 8192 Mbytes.
This thread looks like exactly what you're wanting.
If I'm reading the MVP's post correctly, on a 32-bit system you're limited to 1.5GB heap size no matter what, of which you get all as soon as the process starts. On a 64-bit system your heap is essentially unlimited, I don't think any mainstream server or PC can hold as much physical memory as a 64-bit process can address.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With