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.75 date: 2019/03/20 17:01:36
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  forceLowSpaceCleanup

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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 00:51:03 GMT