---
name: "xmem"
section: "1x"
platform: "linux"
package: "xmem"
version: "1.20-27.2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/xmem"
---

# xmem(1x)

memory/swap usage display utility for X

## NAME

xmem - memory/swap usage display utility for X

## SYNOPSIS

**xmem** \[**-toolkitoption**...**\]** \[**-update** *seconds*\] \[**-hl** *color*\] \[**-highlight** *color*\] \[**-jumpscroll** *pixels*\] \[**-label** *string*\] \[**-nolabel**\]

## DESCRIPTION

The  **XMEM** program displays the used amount of memory/swap.

## OPTIONS

**XMEM** accepts all of the standard X Toolkit command line options (see X(1)). The order of the options in unimportant. **XMEM** also accepts the following additional options:

- **-hl color, -highlight color**

  This option specifies the color of the scale lines. (Xresource: \*mem.highlight)

- **-jumpscroll number-of-pixels**

  The number of pixels to shift the graph to the left when the graph reaches the right edge of the window. The default value is 1/2 the width of the current window. Smooth scrolling can be achieved by setting it to 1. (Xresource: \*mem.jumpScroll)

- **-label string**

  The string to put into the label in the **XMEM** window. (default: hostname alias) (Xresource: \*label.label)

- **-nolabel**

  If this command line option is specified then no label will be displayed above the memory usage graph. (Xresource: \*showLabel)

- **-update seconds**

  This option specifies the interval in seconds at which **XMEM** updates its display. The minimum amount of time allowed between updates is 1 second. The default is 10. (Xresource: \*mem.update)

- **-codecolor color**

  Color for used code and stack memory. The default is red. (Xresource: \*mem.codecolor)

- **-cachedcolor color**

  Color for cached memory. The default is yellow. (Xresource: \*mem.cachedcolor)

- **-buffercolor color**

  Color for buffer memory. The default is blue. (Xresource: \*mem.buffercolor)

- **-freecolor color**

  Color for free memory. The default is green. (Xresource: \*mem.freecolor)

- **-swapcolor color**

  Color for swap memory. The default is red. (Xresource: \*mem.swapcolor)

## RESOURCES

In addition to the resources available to each of the widgets used by **XMEM** there is one resource defined by the application itself.

- **showLabel (class Boolean)**

  If False then no label will be displayed.

## WIDGETS

In order to specify resources, it is useful to know the hierarchy of the widgets which compose **XMEM.** In the notation below, indentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name.

```
Xmem  xmem
	Paned  paned
		Label  label
		StripChart  load
```

## ENVIRONMENT

- **DISPLAY**

  to get the default host and display number.

- **XENVIRONMENT**

  to get the name of a resource file that overrides the global resources stored in the RESOURCE\_MANAGER property.

## FILES

/etc/X11/app-defaults/XMem - specifies required resources

## SEE ALSO

X(1), [xrdb(1)](/xrdb/1.md), [mem(4)](/mem/4.md), Athena StripChart Widget.

## COPYRIGHT

Copyright 1988, Massachusetts Institute of Technology.\
 See X(1) for a full statement of rights and permissions.

## AUTHORS

K. Shane Hartman (MIT-LCS) and Stuart A. Malone (MIT-LCS); with features added by Jim Gettys (MIT-Athena), Bob Scheifler (MIT-LCS), Tony Della Fera (MIT-Athena), and Chris Peterson (MIT-LCS).

Updated 2007/04 by Michelle Konzack \<linux4michelle@freenet.de\>
