---
title: trxmon - Disconnect Long Running Sessions (ProTop 330+)
description: How do I identify and remove users who have long-running transactions from my OpenEdge database? (Linux and Windows) trxmon
---

[Skip to content](https://help.wss.com/trxmon-disconnect-long-running-sessions-0#main-content)

English

Show submenu for translations

[Questions? Comments?](https://help.wss.com/kb-tickets/new?hsLang=en)

![ProTop-helpnb.png\]](https://help.wss.com/hs-fs/hubfs/ProTop-helpnb.png?height=39&name=ProTop-helpnb.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Questions? Comments?](https://help.wss.com/kb-tickets/new)
- [Download ProTop](https://protop.com/download)

[Download ProTop](https://protop.com/download)

 Ask me anything. Go ahead.

- There are no suggestions because the search field is empty.

1. [ProTop Knowledge Base](https://help.wss.com/?hsLang=en)
2. [Advanced Alerting Configuration](https://help.wss.com/advanced-alerting-configuration?hsLang=en)

# trxmon - Disconnect Long Running Sessions (ProTop 330+)

## How do I identify and remove users who have long-running transactions from my OpenEdge database? (Linux and Windows)

> **NOTICE: Do you have an older version of trxmon running in your envornment? If so, [jump to the bottom of this article](https://help.wss.com/trxmon-disconnect-long-running-sessions-0#Upgrading)to read about the conversion program provided in version 330.**
> 
> **CAVEAT:  This is paliative care!**  With this approach we are simply protecting the database, technically the BI file, from misuse, or rather from not being re-used as intended. The root cause for this sort of intervention is bad code. Such logic must be identified and refactored to prevent old transactions from wreaking havoc in your system in the first place.  
> 
> *Use ProTop Real-Time (RT) to help identify the procedure name and line number  implicated in your long running transaction(s), and pass that information along to your development team for analysis and correction. See [Finding Code: Old Transactions](https://help.wss.com/finding-code-old-transactions?hsLang=en) for more detail.*

### In the meantime...

ProTop includes a feature referred to as "trxmon", which can monitor and remove Progress client sessions that hold transactions open longer than is healthy for your environment.  
 

> NOTE: A transaction that qualifies for disconnect by trxmon will be:
> 
> 1. ACTIVE (Stat = *ACTV* in the  ProTop RT "x" panel)
> 2. Have a *duration* greater than trxThreshold (see below)
> 3. And be *idle* for more than trxZapAfter (see below)
> 
> **CAUTION: The ProTop agent (pt3agent) needs to be running with elevated privileges (root/administrator) to allow it to disconnect users (other than your own) or run proGetStack against sessions.**

The components of this feature exist in subdirectories in your PROTOP installation:

- etc/protop.\<custId\>.cfg - set the parameters that control trxmon's behavior; see Setup below
- bin/trxmon.sh\[.bat\] - this is "trxmon", schedule this to run in etc/schedule.\*.cfg
- util/trxmon.p - called by trxmon.sh\[.bat\]
- bin/disconnect\[.bat\] - default disconnect script called by trxmon.p
- bin/disconn.local - called by bin/disconnect, if it exists (allows you to add custom functionality)
- bin/zapconnect\[.bat\] - called by trxmon if the session becomes stuck, bin/disconnect sent the disconnect message, and the disconnect message was received by the session, but the session is not disconnecting; it will let you know if manual intervention is required
- bin/disconnx.local - called by bin/disconnectx, if it exists (allows you to add custom functionality)
- bin/killprosession.sh - *not recommended* for automation, but it *can* be run from  bin/disconnx.local when you want to be more aggressive about removing the session; it uses progressively more aggressive attempts to *kill* the offending process; can also be run manually; read the script for more details and cautions

### Setup

1. If you do not already have one, copy etc/protop.cfg to e.g. etc/protop.\<custId\>.cfg (or any other [config file hierarchy name](https://help.wss.com/kb/cfg_file_naming?hsLang=en) as required)
2. Edit etc/protop.\<custId\>.cfg and update the variables as needed:
   
   ```
   # trxmon#trxMonInt           60         # how often do we check for old,                               # idle transactions? minimum 10                               # secondstrxThreshold        600        # minimum transaction duration                               # before being considered for                               # zapping, minimum 60trxZapAfter         600        # minimum "db idle" while also in                               # a transaction before being                                # disconnected, minimum 60trxDisconScript     disconnect # script to disconnect sessions                               # ($protop/bin and .sh or .bat                               # will be added)trxKillScript       zapconnect # script to take stern measures                               # ($protop/bin and .sh or .bat                                # will be added)trxDisconNag        3600       # how often to nag (send an alert)                                # about disconnecting sessionstrxKillNag          3600       # how often to nag (send an                                # alert) about killing sessionstrxStuckNag         3600       # how often to nag (send an                                # alert) about stuck sessionstrxDisconAlert      alert      # what sort of alert to send when                               # disconnection sessionstrxKillAlert        alarm      # what sort of alert to send when                               # killing sessionstrxStuckAlert       page       # what sort of alert to send when                               # sessions are stucktrxUserExcludeList  ""         # a comma-separated list of users                               # to be exempted from disconnection
   ```
3. Now add trxmon.sh\[.bat\] to your schedule.\*.cfg, for example, for Unix, to run trxmon against the resource "friendlyName", every 15 minutes, add this line:

```
for unix:0,15,30,45 * * * * trxmon.sh friendlyName > ${PTTMP}/trxmon.err 2>&1or for Windows 0,15,30,45 * * * * cmd /c trxmon.bat friendlyName > %PTTMP%\trxmon.err 2>&1
```

The trxmon loops internally every trxMonInt seconds until it is asked to stop.  When the above line attempts to start trxmon and finds it is already running, the attempt will exit.  Adding \[NOALERT\] at the end of the line suppresses the alert normally sent to the portal when a job is run.

### Shut Down

To stop the current run of the transaction monitor, remove tmp/trxmon.friendlyName.flg. The scheduler will restart it according to the configuration you provided, at the next quarter-hour in the example above.  

To permanently disable trxmon, comment it out or remove it from your etc/schedule.\*.cfg file.

### Upgrading trxmon from older versions of ProTop (pre 330)

A conversion program (run from $PROTOP) is provided to translate old-style etc/trxmon\*.cfg files to the new syntax in etc/protop\*.cfg.

LINUX  
bpro -p util/convtrxcfg.p  \> convtrxcfg.log  2\>&1

WINDOWS  
bpro -p util\\convtrxcfg.p -basekey INI -ininame etc\\protop.ini  \> convtrxcfg.log  2\>&1

The conversion program will rename properties as needed and, when done, the old configuration files will be renamed with a “.old” suffix. Only non-default values will be added, as appropriate, to the etc/protop.\*.cfg files.

NOTE: etc/protop.cfg will NOT be modified. Plain trxmon.cfg maps to protop.\<custId\>.cfg as the top-level config file.

- [Getting Started](https://help.wss.com/getting-started?hsLang=en)
- [ProTop Real-Time (RT) Monitoring](https://help.wss.com/protop-real-time-rt-monitoring?hsLang=en#main-content)

    - [Panel Details](https://help.wss.com/protop-real-time-rt-monitoring?hsLang=en#panel-details)
- [ProTop Portal Alerts Dashboard](https://help.wss.com/protop-portal-alerts-dashboard?hsLang=en#main-content)

    - [Default Alerts](https://help.wss.com/protop-portal-alerts-dashboard?hsLang=en#default-alerts)
- [ProTop Portal Trends Dashboard](https://help.wss.com/protop-portal-trends-dashboard?hsLang=en)
- [Advanced Alerting Configuration](https://help.wss.com/advanced-alerting-configuration?hsLang=en)
- [Alertable Metrics](https://help.wss.com/alertable-metrics?hsLang=en)
- [Web Portal Administration](https://help.wss.com/web-portal-administration?hsLang=en)
- [Release Notes](https://help.wss.com/release-notes?hsLang=en#main-content)

    - [Dashboards](https://help.wss.com/release-notes?hsLang=en#dashboards)
    - [Web Portal](https://help.wss.com/release-notes?hsLang=en#web-portal)
- [Troubleshooting](https://help.wss.com/troubleshooting?hsLang=en)
- [devOps](https://help.wss.com/devops?hsLang=en)
- [DBA](https://help.wss.com/dba?hsLang=en)
- [WSS Internal](https://help.wss.com/wss-internal?hsLang=en)
- [WSS](https://help.wss.com/wss?hsLang=en)
- [Health Check](https://help.wss.com/health-check?hsLang=en)
- [Reports](https://help.wss.com/reports?hsLang=en)

[![OpenEdge Experts - White Star Software](https://help.wss.com/hs-fs/hubfs/logoWSS_H-2.png?width=600&height=225&name=logoWSS_H-2.png "OpenEdge Experts - White Star Software")](https://www.wss.com?hsLang=en)

ProTop Knowledge Base

Copyright © 2026, White Star Software Inc.