eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'MemoryMonitor':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: MemoryMonitor


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--MemoryMonitor

Package:
stx:libtool
Category:
Monitors-ST/X
Version:
rev: 1.74 date: 2015/02/24 11:49:58
user: cg
file: MemoryMonitor.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Claus Gittinger

Description:


MemoryMonitor application.

Shows memory usage (oldspace + newspace). Simple, but useful.

The numbers shown are:
    tot     total memory usage (i.e. allocated oldSpace + allocated newSpace)
            (does not include the second semispace and other help-areas,
             such as the remembered set etc.)

    all     current oldSpace in use + newSpace in use

    new     current newSpace in use

    frl     free space in (fragmented) free lists
    fre     compact free area above the used oldSpace

    old     current oldSpace in use

    cod     dynamic compiled code space size (just in time compiler)

    max,    extreme values of 'tot' since the monitor started
    min     (can be reset by typing 'r' in the view)

    t       tenure threshold (1 .. 30)

    I       incremental GC state (2 = idle)

    weak    number of weak objects

    rem     size of rememberedSet

    minsc:  percent of newspace remaining after scavenge (worst case)
            (i.e. the minimum %% of scavenged objects)

    count   number of scavenges since system started

    %       percentage of live objects in newSpace after last scavenge
            (i.e. this is the garbage vs. living objects ratio of
             newSpace objects after the last scavenge)

the graphic shows:
    orange  newSpace used
    green   free memory in freeLists
    white   oldSpace used


the popupMenu offers GC functions; keyboard options are:
    'f' -> faster; 's' -> slower; 'r' -> reset min/max


Related information:

    ObjectMemory
    MemoryMonitorView
    MemoryUsageMonitor
    ProcessMonitor

Class protocol:

image specs
o  defaultIcon
This resource specification was automatically generated
by the ImageEditor of ST/X.
usage example(s):
     self defaultIcon inspect
     ImageEditor openOnClass:self andSelector:#defaultIcon
     Icon flushCachedIcons

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.
usage example(s):
     UIPainter new openOnClass:MemoryMonitor andSelector:#windowSpec
     MemoryMonitor new openInterface:#windowSpec
     MemoryMonitor open

menu specs
o  mainMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.
usage example(s):
     MenuEditor new openOnClass:MemoryMonitor andSelector:#mainMenu
     (Menu new fromLiteralArrayEncoding:(MemoryMonitor mainMenu)) startUp


Instance protocol:

actions
o  collectGarbage

o  collectGarbageAndCompress

o  collectGarbageAndSymbols

o  compressOldSpace

o  openDocumentation

o  openMemorySettings

o  openMemoryUsageView

initialization & release
o  postBuildWith: aBuilder
This is a hook method generated by the Browser.
It will be invoked during the initialization of your app/dialog,
after all of the visual components have been built,
but BEFORE the top window is made visible.
Add any app-specific actions here (reading files, setting up
values etc.)


Demonstration:


    MemoryMonitor open



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 19 Sep 2018 03:20:36 GMT