Subversion Repositories bacoAlunos

Rev

Rev 1823 | Blame | Compare with Previous | Last modification | View Log | RSS feed


jps
ver o processo do Bootstrap se for o 14667 por exemplo colocar

jstat -gcutil  14677

-gcutil Option
Summary of Garbage Collection Statistics
Column  Description
S0      Survivor space 0 utilization as a percentage of the space's current capacity.
S1      Survivor space 1 utilization as a percentage of the space's current capacity.
E       Eden space utilization as a percentage of the space's current capacity.
O       Old space utilization as a percentage of the space's current capacity.
P       Permanent space utilization as a percentage of the space's current capacity.
YGC     Number of young generation GC events.
YGCT    Young generation garbage collection time.
FGC     Number of full GC events.
FGCT    Full garbage collection time.
GCT     Total garbage collection time.


Isto vai ler o historico das classes criadas em tempo real no sistema e a memoria ocupada
31849 >> processo 
jmap -histo -F 31849



Pagina de Gestão de Memória
https://stackoverflow.com/questions/11339679/100-full-eden-space-0-used-survivor-space-garbage-collection-not-done


-XX:NewRatio=3 - the young generation will occupy 1/4 the overall heap
-XX:NewSize - Calculated automatically if you specify -XX:NewRatio
-XX:MaxNewSize - The largest size the young generation can grow to (unlimited if this value is not specified at command line)
-XX:SurvivorRatio=6

no tomcat so funcionou o 1 e o 4 comando


https://docs.oracle.com/cd/E19900-01/819-4742/abeik/index.html


conf do tomcat do Baco
export CATALINA_OPTS="-Dfile.encoding=UTF-8 -Xmx2048m -Xms2048m -XX:PermSize=256m -XX:MaxPermSize=256m -server -XX:NewRatio=3 -XX:SurvivorRatio=6"