java - How to clear premgen memory space -


i using mat analyze memory.

size: 14.4 mb classes: 7k objects: 350.9k class loader: 116

i've got above report using mat memory analyzer. can't find way clear classes, objects.
there way remove object , clean premgen memory.
can clean premgen memory or have increase xms, xmx , launcher.xxmaxpermsize size in eclipse.ini file , make sure object nullify after use.

as far know there no function clears permgen. on default, jvm holds loaded classes indefinitely. can change behaviour using -xx:+cmsclassunloadingenabled , -xx:+useconcmarksweepgc parameters.

if use cmsclassunloadingenabled parameter gc sweep permgen , remove classes no longer used.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -