Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I increase the heap size .NET? [duplicate]

Tags:

Is there something in .NET that corresponds to java -Xmx memory size allocation?

like image 660
Ahmed Mounir Avatar asked Mar 18 '09 16:03

Ahmed Mounir


People also ask

How much heap memory can we increase?

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.

How do I control heap size?

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.

Can heap size change?

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.


1 Answers

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.

like image 101
Dave Swersky Avatar answered Oct 14 '22 23:10

Dave Swersky