Java virtual machine has Four generations :
eden, young, old and permanent.
In the eden generation, objects are very short lived and garbage collection is swift and often.
The young generation consists of objects that survived the eden generation (or was pushed down to young because the eden generation was full at the time of allocation), garbage collection in the young generation is less frequent but still happens at quite regular intervals (provided that your application actually does something and allocates objects every now and then).
The old generation, well, you figured it. It contains objects that survived the young generation, or have been pushed down, and garbage collection is even less infrequent but can still happen.
And finally, the permanent generation. This is for objects that the virtual machine has decided to endorse with eternal life - which is precicely the core of the problem. Objects in the permanent generation are never garbage collected; that is, under normal circumstances when the jvm is started with normal command line parameters.
set JAVA_OPTS=-Xms512m -Xmx512m
-XX:PermSize=128m
-XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled
JVM_PermGen-space
Related Posts:
java.lang.classnotfoundexception org.springframework.web.context.contextloaderlistener / ClassNotFoundException when running a Spring + Maven2 project on Tomcat from within Eclipse I had a similar problem when running a spring web application in an Eclipse managed tomcat. I solved this problem by adding maven dependencies in the project's web deployment assembly. 1) Open the project's properties (e.g.… Read More
Spring REST web service Test We can test the Spring REST web service by following : 1. By java Junit class. 2. By SoapUI. 3. By Firefox browser plugin REST CLIENT. 4. By Chrome browser plugin POST MAN. 1. By java Junit class : We can write the j… Read More
Hadoop ? What is Hadoop? Hadoop is a free, Java-based programming framework that supports the processing of large data sets in a distributed computing environment. It is part of the Apache project sponsored by the Apache Software Fo… Read More
WARN (DefaultHandlerExceptionResolver.java:183) - Request method 'POST' not supported. For Spring REST When Spring RESTful web service post call are throwing following exception, then we need to check 'Content-type' is set in the header/request. set the content-type in the testing client like SoapUI. if the REST controll… Read More
CopyOnWriteArrayList difference with normal ArrayList CopyOnWriteArrayList was introduced in JDK5, Which will be used to avoid the java.util.ConcurrentModificationException while modifying List by multiple threads or inside loop. below sample will show the difference. … Read More
0 comments:
Post a Comment