Determining the Java heap memory size - IBM

文章推薦指數: 80 %
投票人數:10人

The Java heap is memory that contains objects used by Java programs. It contains objects that are currently in use, objects that are no longer needed, ... DeterminingtheJavaheapmemorysize TheJavaheapismemorythatcontainsobjectsusedbyJavaprograms.Itcontainsobjects thatarecurrentlyinuse,objectsthatarenolongerneeded,andfreememory.Objectsthatareno longerneededarefreedbythegarbagecollectionprocess.TheJVMheapsizedetermineshowoftento rungarbagecollectionandhowlongthegarbagecollectionruns. Tuningtheheapsizeminimizestheamountofgarbagecollectionprocessing.InsufficientJava heapspacecanresultinoutofmemoryerrorsorslowperformance. TheJVMsettingsarespecifiedintheset_envfilewhichisinthe ucd-server/bindirectory.TheJAVA_OPTSenvironment variablecontainsthefollowingargumentsrelatedtoheapsize: -Xms InitialJavaheapsize. -Xmx MaximumJavaheapsize FortheAgentadd-Xmxasthefirstlineinthe agent's conf/plugin-javaopts.conffile. Parenttopic:Logging



請為這篇文章評分?