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

[Skip to content](https://help.wss.com/trxmon-disconnect-long-running-sessions#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 329+)

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

> **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)
> 
> AND: **The ProTop agent (pt3agent) needs to be running with elevated privileges (root/administrator) to allow it to disconnect users or run proGetStack against sessions.**

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

- etc/trxmon.friendlyName.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. Copy etc/trxmon.cfg to etc/trxmon.friendlyName.cfg
2. Edit etc/trxmon.friendlyName.cfg and update the variables to your liking:
   
     1. monInt 60 - how often do we check for old, idle transactions?
     2. trxZapAfter 600 - minimum "db idle" while also in a transaction before being disconnected (non-overridable minimum is 60 seconds to prevent disconnecting live transactions)
     3. trxThreshold 600 - transactions older than this many seconds are eligible for disconnection (minimum 60)
3. Then, uncomment the correct set of disconnect script variables for your OS (this is for \*nix):

```
# unix:#disconScript    bin/disconnect          # simple disconnectkillScript      bin/zapconnect          # take stern measures   # windows:## disconScript  bin\disconnect          # simple disconnect# killScript    bin\zapconnect          # take stern measures
```

  4.   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 monInt 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.

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