![]() |
In the Client JVM:The default maximum heap size is half of the physical memory up to a physical memory size of 192 megabytes and otherwise one-fourth of the physical memory up to a physical memory size of 1 gigabyte. Example:
In the server JVM:Server JVM heap configuration ergonomics are now the same as the Client, except that the default maximum heap size for 32-bit JVMs is 1 gigabyte, corresponding to a physical memory size of 4 gigabytes, and for 64-bit JVMs is 32 gigabytes, corresponding to a physical memory size of 128 gigabytes. The system configuration setting influence the default value i.e. machine’s physical memory and the version of Java. The default max Java heap size is determined by using the following commands:On windows, we can use either of the following commands:
![]() Max heap size Windows The following commands can be used On Linux/Unix:
![]() Max Heap size Linux Related Articles: |
Reffered: https://www.geeksforgeeks.org
Data Structures |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |