Troubleshooting
Why Geo SCADA database lock alarms peak at 70%
Short answer
An occasional database lock alarm with DB Interest peaking above 70% is normal workload, not a fault. Sustained lock activity across consecutive snapshots, delayed screens or commands, or a host that cannot schedule the VM means contention. Read the alarm duration, the surrounding snapshot entries, report schedules, once-per-second logic and CPU Ready before changing anything.
On this page
A database lock alarm in Geo SCADA reports demand for access to the shared server database; it is a workload reading, not automatically a fault. One system that raised two lock alarms inside a month showed DB Interest at 71.3% user time against a server-time figure printed as 0.7#% — and neither number proves contention on its own. The working rule: an occasional Interest/Lock peak above 70% that clears within one snapshot interval is normal load, while lock activity that stays near that level across consecutive snapshots, or that coincides with slow screens, late values or delayed command feedback, is contention worth fixing. This article gives the arithmetic that separates the two, the checks in the order to run them, and the decision for each case.
What DB Interest reports, and what it does not #
DB Interest is one server thread's activity figure, so read it next to the neighboring entries in the same log rather than on its own; client demand is part of that context, and the report section below names the entry to check. A high Interest/Lock percentage says the thread was busy. It does not say how long any individual lock was held, and it is not interchangeable with lock duration.
Geo SCADA's Server Status Tool has the lock-specific views for that job. Lock Diagnostics Read summarizes database read lock usage for performance analysis, Lock Diagnostics Write carries the write-side detail, and the Locks category lists the locks currently held within the server. Read those views during and around an alarm window instead of inferring lock behavior from one percentage.
The user-time and server-time figures attached to DB Interest split that thread's time by mode; they are not a utilization reading for the whole server. Do not add them, subtract them or treat one as the remainder of the other. And a server-time figure printed as 0.7#% has lost digits somewhere between the server and the reader — pull the exact label and value from the database snapshot log before comparing anything.
Peak or sustained: the arithmetic that decides #
Judge every reading by how long it lasts. For example, with snapshots taken every 60 seconds the distinction is arithmetic:
- Benign burst: three consecutive minutes read 12%, 73% and 9%. The mean is (12 + 73 + 9) ÷ 3 = 94 ÷ 3, about 31.3%. One busy interval between two quiet ones is a workload peak; match it to a report start or scheduled job and leave the configuration alone.
- Sustained contention: five consecutive minutes read 72%, 74%, 71%, 69% and 73%. The sum is 72 + 74 + 71 + 69 + 73 = 359, and 359 ÷ 5 = 71.8% held for the whole window. Activity that never falls back is not a peak; something feeds the database continuously, and the checks below find it.
The rule this article commits to: an occasional Interest/Lock peak above 70% that recovers within one snapshot interval is normal load on a busy server, while lock activity holding above 70% for three or more consecutive snapshots is the trigger to investigate. The 70% line is an operating rule of thumb for loaded servers, not a vendor-documented threshold; the average across consecutive snapshots is what makes the call.
Triage steps, in order #
- Record each alarm's timestamp and how long it stayed active, and capture database logs during the next recurrence with precise timestamps — logs pulled after the event cannot show what the server was doing during it.
- Pull the snapshot entries around the alarm window and apply the peak-versus-sustained arithmetic from the previous section.
- List the scheduled reports and heavy client queries whose run times overlap the alarm window.
- Inventory logic programs: their execution intervals, and which ones write configuration.
- Check point update rates and event volumes, and flag any point changing far faster than its process can.
- Collect guest CPU and disk figures for the alarm window itself; on a VMware host, collect CPU Ready with them.
Reports and client demand #
Report queries compete with every other piece of database activity, and schedules that start together concentrate that competition into one window. Worked through: three heavy reports each hold read locks for about 90 seconds. Started together, three queries contend for the same 90 seconds; spaced 10 minutes apart, each runs alone and the same total work completes at a third of the concurrency. Match report start and finish times to the alarm timestamps before moving anything.
The client item entry in the same snapshot — OPC DA Items on Geo SCADA servers — gives the read demand the clients place on the server. A large item count is workload context, not a fault in itself; duplicate or overly broad subscriptions are what to trim, and only if the correlation supports it. Both simultaneous and staggered report schedules can run correctly, so stagger only when overlap coincides with contention.
When the demand is mostly clients pulling history rather than scheduled reports, exporting selected Geo SCADA historian tags to another historian takes that traffic off this server.
Logic programs and overactive points #
Logic programs left at their default once-per-second execution interval generate constant demand even when each program is small, and programs that write configuration as they run are the heavy ones. Their overlapping periods stack into a continuous stream of database work that no single snapshot blames on any one program, so review the aggregate: the execution inventory from the triage list tells you how many programs wake every second and what each writes. Keep the fast interval where the process genuinely needs it.
Safety note: verify what a program does before rescheduling it. A program driving an interlock or a protection function keeps its execution period; find the database headroom somewhere other than a safety path.
Points earn their own check. A point whose value, quality or event count changes far faster than its process can explain — an unstable instrument, an aggressive acquisition setting, a chattering signal — generates event and write traffic that looks exactly like lock demand in the snapshot. Trace it through the driver diagnostics to the controller or instrument and correct it at that layer. Do not disable legitimate process alarms or events to bring the numbers down; fix the source.
Host resources, disk and CPU Ready #
Lock waits stretch when the server itself waits for processor or disk time, so collect guest CPU and disk figures for the alarm window — a quiet graph taken an hour later proves nothing about conditions during the alarm. On a virtualized server, check CPU Ready alongside them: VMware's CPU Ready measures the time the virtual machine spent waiting for the host to schedule it, and a guest can stall on host contention while its own CPU percentage looks moderate. If CPU Ready is high during the alarms, correct host capacity or resource allocation first; adding virtual processors to an already contended host does not fix scheduling. On other platforms, use the platform's documented scheduler-wait diagnostics instead.
If the host sits busy between alarms and no scheduling, logic or point change restores headroom, replacing an aging server box with an industrial mini PC built for continuous data-collection duty is the fallback, not the first move.
The decision for each case #
- One peak above 70% that clears within an interval, screens and commands normal: normal workload. Log it against the report or job that explains it and change nothing.
- Peaks confined to report windows: stagger the overlapping schedules, then re-measure over the same snapshot interval.
- Lock activity held across three or more consecutive snapshots: work the triage list — logic execution inventory, point churn, then host figures.
- CPU Ready high during the alarms: fix host allocation or capacity before touching the guest or the database configuration.
- Sustained activity with no workload or host cause: hand the database snapshot logs to the vendor's support team, since interpreting lock statistics in those logs is what they do — and if history volume keeps driving the contention, the architectural fix is splitting storage, which choosing a site historian for a PC-based SCADA host covers.
Questions asked
Does a database lock alarm mean the field values on screen are wrong?
No. The alarm concerns contention for access to the shared server database, not the validity of any point. For a value you distrust, open the point itself and compare its quality and timestamp with what the screen shows. If the point updates normally but the screen lags, look at the client display path. If the point is stale or bad quality, investigate its driver and the controller or instrument behind it. Only when delays hit many unrelated points at once does database contention become the likely cause.
What execution interval should logic programs use so they do not overload the database?
What matters is the aggregate write rate, not any single interval. Work it out for your own system: for example, 40 programs each writing 5 objects once per second generate 40 × 5 = 200 configuration writes every second before any report or client query runs. Keep a fast interval where the process genuinely needs it, and slow only the programs whose frequency serves no control purpose. Re-measure lock activity over the same snapshot interval after each change.
Does Hyper-V have a metric like VMware CPU Ready?
CPU Ready is a VMware measurement: the time a virtual machine spends waiting for the host to give it processor time. Other platforms report scheduling delay differently or not at all, so ask the virtualization administrator for the documented scheduler-wait or guest CPU wait statistic on whatever platform hosts the server. If no such counter exists, compare the guest CPU graph with the host load from other virtual machines over the same alarm window; a guest that starves while its own percentage looks moderate points at the host, not at Geo SCADA.
How can I check how many alarms the database is configured with?
The vendor's knowledge base documents a query that returns the current count of configured alarms from the Geo SCADA database and can list them. Run it when the system is quiet and again after a busy stretch: a count that grows between checks points at accumulating configuration or event-driven points, which is exactly the steady demand that shows up as sustained lock activity. A stable count alongside sustained lock activity points instead at report load, logic execution or host resources.
Can I silence the lock alarm instead of chasing the workload?
Suppressing it removes the only notice that the server is queueing work. Keep the alarm active and fix what it points at: staggered reports, leaner logic execution and host headroom all lower it without touching alarm configuration. If alarms fire only inside a legitimate report window and clear within that window, document that pattern with your snapshots rather than raising the threshold — the same statistic is what will tell you when real contention arrives.