Troubleshooting
Why one WinCC redundant server freezes trends on insufficient memory
Short answer
Server 2 freezes because its SQL Server max server memory is left at the factory default of 2147483647 MB, which caps nothing, so SQL growth exhausts Windows commit and the event log reports insufficient system memory. Set both redundant servers to the same measured budget — Server 1 already proves the project runs at its 2048 MB setting — match the archive segment configuration, and verify commit headroom stays open through a full freeze.
On this page
- What the SQL max server memory setting actually limits
- Why the event log reports insufficient system memory
- Checks on the redundant pair, in order
- Why the 2147483647 MB default is no limit at all
- Set one budget on both servers
- If memory stays healthy, follow the storage
- The decision for each case
- Questions asked
Server 2 in a redundant WinCC V7.2 Update 14 pair freezes its trend updates and blocks operator login while its event log reports insufficient system memory, and the fault repeats only on that server. The direct cause is the SQL Server max server memory setting on Server 2, left at the factory default, which caps nothing; SQL grows into the memory the WinCC runtime needs until Windows commit is exhausted. Copy the working budget from Server 1, match the archive configuration on both servers, and verify commit headroom through a full freeze. The checks below separate memory, software and storage causes in that order.
What the SQL max server memory setting actually limits #
Max server memory caps only the allocations managed by the SQL Server memory clerk. It is not a reservation: SQL takes memory as its workload demands, and the setting does not limit every allocation the SQL process makes. The factory default of 2147483647 MB stands for manage dynamically with no configured ceiling, so on Server 2 the managed allocation has no practical limit while SQL competes with the WinCC runtime, redundancy synchronization and Windows itself.
The mismatch you measured between the two servers is a priority diagnostic finding, but it does not by itself hand you the correct number for Server 2. The working setting on Server 1 is a measured point for the same project on the same hardware class; that is where the budget starts, not a universal WinCC recommendation.
Why the event log reports insufficient system memory #
Windows commit is memory the operating system has promised to back with physical RAM or the paging file. Allocation requests start failing when committed memory approaches the commit limit, even while a RAM-percentage display looks comfortable — and the opposite holds too: low available RAM with heavy paging can make an HMI sluggish before any allocation fails. That event entry therefore points at commit exhaustion, not at a RAM percentage.
Trend updates and operator login are unrelated functions on the surface. Their simultaneous failure on one server points to a shared resource or service dependency — memory first, storage second — not to a defect in the trend display.
Checks on the redundant pair, in order #
- Read the installed WinCC version on each server from the installed-software information, not the project description. Expected: both report V7.2 Update 14. Mismatched versions invalidate any comparison between the two machines.
- Confirm which SQL instance actually serves WinCC on each server, and read that instance's max server memory from its properties. Changing an unrelated instance changes nothing.
- Capture, on both servers and over the same interval, commit charge against the commit limit, available physical memory and paging rate, spanning at least one freeze.
- Record private committed bytes for the SQL process and the WinCC runtime process, and identify which one grows ahead of the freeze.
- Record the exact event entries with timestamps, including the reporting component; use the first entry to distinguish the initiating failure from follow-on service errors.
- Check the paging-file configuration and free space on its volume, and free space on the archive volumes.
Why the 2147483647 MB default is no limit at all #
The inputs come from the configuration comparison between the pair: SQL max server memory on Server 2, read from its instance properties, sits at the factory default of 2147483647 MB, while Server 1 runs the same project with a working ceiling of 2048 MB.
The rule in words: SQL Server stores no configured ceiling, manage dynamically, as the largest 32-bit signed value expressed in MB. Convert it to the units a real memory budget uses by dividing by 1024 twice — MB to GB, then GB to TB.
The arithmetic: 2147483647 MB ÷ 1024 = 2097151.999 GB, effectively 2097152 GB. 2097152 GB ÷ 1024 = 2048 TB. In MB, that is 2048 × 1,048,576 = 2,147,483,648 MB, which is 1,048,576 times the working ceiling on Server 1.
The result: the default corresponds to a ceiling of about 2048 TB.
The decision it leads to: a ceiling measured in terabytes cannot constrain SQL on a server whose RAM is measured in gigabytes, so on Server 2 the setting behaves as no limit at all. Any value that protects the WinCC runtime sits in the low gigabytes, which is why the partner's working setting is the first budget to copy, and why the event log fills the gap the default leaves open.
Set one budget on both servers #
Set Server 2's max server memory to the value Server 1 already runs, apply it, and then prove the budget: run a full production cycle on Server 2 including archive synchronization and client connections, and confirm commit charge keeps clear of the commit limit throughout. The setting applies without restarting SQL. If commit approaches its limit during synchronization, lower the SQL ceiling by the shortfall you measured and retest.
Match the archive configuration across the pair at the same time; the WinCC documentation describes how to reduce cyclic storage on a redundant server pair without losing data when the archive configuration changes. Segment size is a storage-management setting, not a memory cure: with signing-off, the documentation caps a single segment at 200 MB, and smaller segments mean more frequent segment handling, not less load. Shrink retention only after confirming the history your operation still needs. Archive sizing has its own failure mode — an oversized or mismatched segment configuration is what stalls WinCC Runtime at Graphics Runtime on start — so verify the pair ends with identical archive settings.
Make the change in a maintenance window: while Server 2 restarts or re-verifies its archives, Server 1 carries the operator stations alone, so treat the pair as a single-server system until both sides report healthy again.
If memory stays healthy, follow the storage #
If commit headroom stays open through the freeze and neither process grows, do not impose a memory limit anyway. The event details name the component to follow: check archive synchronization activity against disk response, because a partner that is recovering or re-synchronizing archives runs a different workload from the server you are watching, and sustained load on the synchronization volume can freeze archive-dependent functions with memory perfectly healthy. The same freeze symptom also has cousins with other causes — why a WinCC server IP change freezes all HMI clients covers the case where the freeze follows a network change instead of memory exhaustion.
The decision for each case #
- Event log reports insufficient system memory and SQL grows before commit exhausts — this is the Server 2 case. Copy the working budget from the healthy partner, match the archive configuration, then verify commit headroom through a full cycle including synchronization. Do not leave either server at the factory default: the default limits nothing, so every restart is a fresh opportunity for the same freeze.
- Commit stays healthy through the freeze — leave the memory settings alone and follow the event details into storage and synchronization: archive volume capacity, synchronization drive load and the component the log names.
On either branch, both servers of the pair must end with matched versions, matched archive configuration and a measured memory budget. That combination is what prevents the fault from returning — on Server 2, or later on its partner.
Questions asked
Does the SQL Server max server memory setting reserve that RAM for SQL?
No. It caps only the allocations managed by the SQL Server memory clerk, up to the configured ceiling. The factory default of 2147483647 MB therefore behaves as no limit at all, which is why a server left at the default can let SQL growth exhaust Windows commit.
Why does operator login stop when the trends freeze?
Both functions depend on the same WinCC runtime services drawing memory from the same server. When committed memory nears the Windows commit limit, the allocations those services request start failing, and login and trend updates fail together. Two unrelated functions failing at once points to a shared resource such as memory, not to a defect in the trend display itself.
How large can one WinCC archive segment be?
The WinCC archive documentation caps a single segment at 200 MB when signing-off is used, so the signing setting and segment size interact in the archive configuration. Segment sizing controls storage management and synchronization load, not SQL memory. Match the archive configuration on both servers of a redundant pair, and change retention only after checking the history your operation still needs.