// find maximum values for automatic graph dimension adoption
Iteratori=sb.ppmHistory.entrySet().iterator();
Map.Entryentry;
intppm;
intppm,maxppm=50;
while(i.hasNext()){
entry=(Map.Entry)i.next();
ppm=(int)((Long)entry.getValue()).longValue();
if(ppm>maxppm)maxppm=ppm;
}
i=sb.usedMemoryHistory.entrySet().iterator();
longbytes,maxbytes=100*1024*1024;
while(i.hasNext()){
entry=(Map.Entry)i.next();
bytes=((Long)entry.getValue()).longValue();
if(bytes>maxbytes)maxbytes=bytes;
}
// declare graph and set dimensions
intheight=240;
intwidth=660;
intleftborder=30;
intrightborder=30;
inttopborder=20;
intbottomborder=20;
intvspace=height-topborder-bottomborder;
inthspace=width-leftborder-rightborder;
intmaxtime=600;
ymageChartip=newymageChart(width,height,"FFFFFF","000000",leftborder,rightborder,topborder,bottomborder,"PEER PERFORMANCE GRAPH: PAGES/MINUTE and USED MEMORY");