mil.dod.th.ose.shell/src/mil/dod/th/ose/shell/SystemCommands.java
@Descriptor("Display heap and non-heap memory usage")
    public void memory(final CommandSession session)
    {
        final PrintStream out = session.getConsole();
        
        out.format("heap: %s%n", ManagementFactory.getMemoryMXBean().getHeapMemoryUsage());
        out.format("non-heap: %s%n", ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage());
    }
/**
     * Display memory usage statistics.
     * 
     * @param session
     *            provides access to the Gogo shell session
     */
Display memory usage statistics.

@param session
provides access to the Gogo shell session
Display memory usage statistics . @param session provides access to the Gogo shell session
@Descriptor("Display heap and non-heap memory usage")
    public void memory(final CommandSession session)
    {
        final PrintStream out = session.getConsole();
        out.format("heap: %s%n", ManagementFactory.getMemoryMXBean().getHeapMemoryUsage());
        out.format("non-heap: %s%n", ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage());
    }
@ Descriptor ( "Display heap and non-heap memory usage" ) public void memory ( final CommandSession session ) { final PrintStream out = session . getConsole ( ) ; out . format ( "heap: %s%n" , ManagementFactory . getMemoryMXBean ( ) . getHeapMemoryUsage ( ) ) ; out . format ( "non-heap: %s%n" , ManagementFactory . getMemoryMXBean ( ) . getNonHeapMemoryUsage ( ) ) ; }
Display memory usage statistics.
Display memory usage statistics .