Java Heap Space
To make things more complex java memory is separated into two different regions.
Java heap space. When it occurs you basically have 2 options. This will allow you to understand the memory growing pattern over time. The values must be a multiple of and greater than 1024 bytes 1kb.
The default size of heap space in java is 128mb on most of 32 bit sun s jvm but its highly varies from jvm to jvm e g. Xms size in bytes sets the initial size of the java heap. Java heap space will be the outcome.
Later when those object become eligible for garbage collection they are collected by garbage collector and memory is returned to java heap space. These objects have global access and can be accessed from anywhere in the application. These regions are called heap space and permgen for permanent generation.
For instance you can allow the jvm to use 2 gb 2048 mb of memory with the following command. When the jvm garbage collector is unable to clear the waste memory of your java java ee application over time outofmemoryerror. The server flag increases the default size to 32m xmn size in bytes sets the initial java heap size for the eden generation.
With the xmx jvm argument you can set the heap size. If you are familiar with different generations of heap and garbage collection process new old and permanent generation of heap space. Heap space is where objects are created in java and as your play games deploy applications or web servers like tomcat jboss and websphere lots of objects are created in heap memory.
Running java applications in computers takes some memory during the process which is known as java memory java heap. This is how to for windows 7 and can be used in windows xp and windows 8 8 1. Default maximum and start heap size for the 32 bit solaris operating system sparc platform edition is xms 3670k and xmx 64m and default values of heap size parameters on 64 bit systems have been increased up by approximately 30.