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:
Interface-Tools-Monitors
Version:
rev: 1.79 date: 2021/06/02 12:16:25
user: cg
file: MemoryMonitor.st directory: libtool
module: stx stc-classLibrary: libtool

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

copyright

COPYRIGHT (c) 1999 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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  menuRescale

o  openDocumentation
Called when <F1> is pressed

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.)



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:07:20 GMT