ec.addElement( this.getEntry( "Free Memory (K)",
Long.toString( Runtime.getRuntime().freeMemory()/1024 ) ) );
ec.addElement( this.getEntry( "Total Memory (K)",
Long.toString( Runtime.getRuntime().totalMemory()/1024 ) ) );
JetspeedThreadPoolService service =
( JetspeedThreadPoolService ) TurbineServices
.getInstance()
.getService( ThreadPoolService.SERVICE_NAME );
this.createCategory( ec, "Thread Pool" );
ec.addElement( this.getEntry( "Available threads: ",
service.getAvailableThreadCount() ) );
ec.addElement( this.getEntry( "Total threads: ",
service.getThreadCount() ) );
ec.addElement( this.getEntry( "Runnable queue length: ",
service.getQueueLength() ) );
ec.addElement( this.getEntry( "Processed thread count: ",
service.getThreadProcessedCount() ) );
this.createCategory( ec, "PortletRegistry" );
ec.addElement( this.getEntry( "Number of entries: ",
Registry.get(Registry.PORTLET).getEntryCount() ) );