IMDTouchKnowledge BaseShop main store

Troubleshooting

Why WinCC Runtime stalls at Graphics Runtime on start

HMI and touchscreens Published 8 min read

Short answer

A WinCC Runtime that sits at Graphics Runtime for many minutes while an identical machine starts quickly is attaching archive segments, not loading pictures. Keep the total single segments across TagLogging Slow, TagLogging Fast and Alarm Logging at or below 200; Runtime connects every segment to the PC's SQL Server before releasing the start, and the same cost returns at stop.

On this page
  1. Why does WinCC Runtime stall at Graphics Runtime on start?
  2. Does this startup delay apply to every WinCC version?
  3. How many archive segments can WinCC Runtime handle?
  4. How do I count the segments my WinCC project keeps?
  5. How do I cut segments without losing trend history?
  6. Why is only one of my WinCC machines slow to start?
  7. How do I verify the startup and shutdown are fixed?
  8. Questions asked

When a WinCC Runtime sits at Graphics Runtime for ten minutes or more while an identical machine starts in well under a minute, the pictures are not the problem — the archive database is. Before it releases the start sequence, Runtime activation connects every retained archive segment to the SQL Server instance on the same PC, and the work scales with the number of segments, not with the amount of data in them. Keep the total single segments across TagLogging Slow, TagLogging Fast and Alarm Logging within the 200-segment working limit below, and both the start and the stop return to normal. This article shows how to count your segments, cut them without losing history, and rule out the PC itself when the count is already low.

Why does WinCC Runtime stall at Graphics Runtime on start? #

Runtime activation attaches every retained archive segment to the SQL Server instance on the runtime PC before it releases the start sequence, so the Graphics Runtime step waits on hundreds of small databases rather than on your pictures.

Each retained segment is a separate database that Runtime must connect and handle through the SQL Server running on the same PC. The work scales with how many segments the project keeps, not with how much data each one holds, so a project built from many short segments stalls exactly where the archives are initialized. The delay shows up at the Graphics Runtime step because that step waits on archive initialization, not on picture loading. Stopping Runtime reverses the same attach work, which is why shutdown slows down along with startup. The 10 to 15 minute stall is a reported symptom on archive-heavy machines, not a fixed prediction: a stronger PC shortens the time spent on each segment, but the scaling with segment count stays.

Does this startup delay apply to every WinCC version? #

It applies to the classic PC runtimes that keep their archives in Microsoft SQL Server databases on the runtime PC — WinCC V7 SCADA and WinCC Professional — and not to WinCC flexible panels; WinCC Unified publishes its own logging limits, which do not transfer.

A flexible or panel runtime has no SQL attach phase, so this fix cannot help one that hangs at startup; its causes live elsewhere. Record the exact version, service pack and update level from the installed programs list on both machines — an update-level mismatch is a candidate cause on its own, and matching levels move you on to the archive count. Test whether the project also starts slowly on the configuration PC: slow on both points to the project data, slow on only the runtime PC points at that PC, and the single-machine checks below take over. The decision by platform: classic V7 or Professional RT follows the segment decision; a flexible or panel runtime does not pass through this phase at all, so the segment fix does nothing for it.

How many archive segments can WinCC Runtime handle? #

Keep the total at or below about 200 single segments summed across TagLogging Slow, TagLogging Fast and Alarm Logging; past that count, segment connection handling dominates both start and stop times.

Treat the figure as an empirical working limit from WinCC practice, not a published specification — the FAQ below states exactly where it stands. It assumes the classic V7 or Professional runtime with its archives on the PC's own SQL Server. PC performance moves the absolute start time; the segment count moves the scaling, which is why the count is the lever you control. Count all three areas together, because Runtime pays the attach cost for every retained segment regardless of which editor created it. The decision: bring the summed total to the working limit or below and re-time the start; if your total is already under it, go straight to the single-machine checks.

How do I count the segments my WinCC project keeps? #

Each archive editor stores a segment change criterion and the number of segments to keep; read them under the Archives folder in the navigation area, where Archive configuration, TagLogging Fast and its Properties dialog expose the settings.

  • Open the Archives folder in the navigation area, then follow Archive configuration, TagLogging Fast, Properties — the documented route in the WinCC V7 documentation.
  • Read the same settings for the slow area and for Alarm Logging; the dialog's Time of the segment change group holds the periods and counts.
  • Record two values for each archive: the segment change criterion (a time period or a size) and the number of segments to keep.
  • Multiply the period by the count when you want the retention in days.
  • Add the kept counts of all three areas into one project total.
  • Compare that total and the individual settings with the fast machine; the archive settings that differ are the project difference.

A segment is one time- or size-bounded chunk of the archive database, and short segment periods or a long retention requirement built from small segments multiply the count quickly. A project can cross the working limit without anyone noticing, because each archive on its own still looks reasonable.

How do I cut segments without losing trend history? #

Lengthen the segment period or size and lower the number each archive keeps, then re-time the start; in the worked example below, 236 segments become 97 while history coverage actually grows.

Back up the project and its archive data first — once you lower the number kept, the oldest segments are removed at the next segment change, and that backup is the only way back to them.

  1. Work on the configuration copy of the project, not the running one.
  2. Lengthen each archive's segment change period or size and lower the number of segments kept until the summed total sits under the working limit.
  3. Deploy, then let every archive pass its next segment change: the documented behavior of the Archive configuration dialog is that changes take effect only at the next segment change, so re-time after that point, not straight after download.
  4. Time the interval from activation to the first process picture and compare it with the fast machine.

Worked example — example inputs, not measured values; the arithmetic is what transfers:

Archive area Segment change Segments kept Segment count History held
TagLogging Slow, before 1 day 90 90 90 days
TagLogging Fast, before 1 day 120 120 120 days
Alarm Logging, before 7 days 26 26 182 days
Total before — — 90 + 120 + 26 = 236 —
TagLogging Slow, after 7 days 26 26 182 days
TagLogging Fast, after 4 days 45 45 180 days
Alarm Logging, after 7 days 26 26 182 days
Total after — — 26 + 45 + 26 = 97 —

The before set exceeds the working limit; the after set sits well under it while every area holds at least 180 days of history — more than the fast areas held before the change. That is the shape of the fix: fewer, longer segments carry the same or better history at a fraction of the attach cost.

Why is only one of my WinCC machines slow to start? #

When the segment totals match and the start is still slow, compare the two PCs themselves: the SQL Server service, the disk that holds the archives, CPU and memory during the Graphics Runtime step, and antivirus scanning of project and database folders.

  • SQL Server service: compare its state and its start time on the two PCs; a slow database service start stretches Runtime activation on its own.
  • Archive drive: check free space and drive health on the volume holding the archive databases; a nearly full or failing disk slows every attach operation.
  • CPU and memory: watch Task Manager during the Graphics Runtime step; the component that sits saturated is the limiter on that PC.
  • Antivirus: exclude the WinCC project and database folders using the exclusions documented for your exact WinCC version, because real-time scanning of database files taxes every attach and detach.

Fix both levers when both are wrong: a clean archive set on a PC with a slow SQL service or a nearly full disk still starts slowly, and a fast PC with hundreds of segments still waits at Graphics Runtime.

How do I verify the startup and shutdown are fixed? #

Cold-start the runtime PC, activate Runtime and time activation to the first process picture; a start near the fast machine and a stop to match confirms the segment diagnosis.

  • Time the start after a cold start, not a warm restart, and expect a figure near the fast machine's.
  • Stop Runtime and time that too; the stop should shorten by a similar proportion, because the same attach work runs in reverse.
  • Confirm new tags and alarms are being written, and open an older segment in a trend or alarm control to confirm history survived the change.
  • Repeat the timing after a Windows restart and again after the next segment change, so you know the total stays under the limit as archives rotate.
  • Watch live values for a few minutes of operation afterwards; if they freeze while the network is up, that is a communications fault, and diagnosing intermittent HMI to PLC Ethernet comms hangs walks through it.
  • If startup is quick again but individual screens still open slowly, that is a different fault: WinCC Runtime faceplates loading slowly on screen activation covers what to check next.

With the total under the working limit, both machines start alike, and the Graphics Runtime step stops being the bottleneck.

Questions asked

Why does Runtime shutdown slow down along with startup?

Stopping Runtime reverses the attach work: every retained segment is disconnected through the SQL Server instance, so shutdown time grows with the same segment count and falls by a similar proportion once you cut it. Time the stop separately after the fix — an archive set that starts fast can still stop slowly if the database service is slow to release connections, and that points back to the PC rather than the project.

Can I keep a year of trend history and stay under 200 segments?

Yes, by lengthening segments instead of multiplying them. Retention equals the segment period times the number kept, so 12 segments of one month hold a full year of history; 365 one-day segments would hold the same year and blow the working limit on their own. Before you lower any count, export or copy the segments that would fall outside the new retention so the history stays available outside Runtime.

Is the 200-segment figure published in the WinCC manuals?

No. The manuals document the Archive configuration dialog and its segment change settings, and WinCC Unified documents its own logging limits of at least 3 and at most 5000 segments for a Microsoft SQL database log. The 200 figure for classic V7 and Professional archives is an empirical working limit used by WinCC engineers, so treat it as a decision threshold that has held up in practice, not as a specification.

Do shorter segments make Runtime faster because each one holds less data?

No, it works the other way round. Startup cost scales with how many segments Runtime must connect, not with how much data each holds, so shortening the segment change period pushes the same history into more databases and makes the stall worse. Lengthening the period or the segment size is what lowers the count; keep each archive's retention requirement and reach it with fewer, longer segments.

Keep reading

  • How-to

    How to compare SCADA historian functions: a test method

    There is no maintained public function-level comparison of SCADA historians, so build your own. Define matrix rows for compression, store-and-forward, alarm and event history, external access, retention and extensions; run identical tests on each candidate's recorded version; score pass, fail or not tested. Eliminate any candidate failing a mandatory row and rank survivors on engineering effort.

    HMI and touchscreens

  • How-to

    Deploy a WinCC 6.2 Project on a Separate Runtime PC

    Install WinCC 6.2 on both machines: Runtime installs with the same setup, so there are no separate runtime files to carry. License the desktop PC that activates the project, copy the whole project folder to it, register the folder in AutoStart, and build the job as a Single-User Project.

    HMI and touchscreens

  • How-to

    Display a Previous-Day Historian Average on an HMI Screen

    Query the Historian in average retrieval mode with an explicit start and end one day apart, prove the query standalone in SQL Server Management Studio, then assign the single returned value to the display object's attribute by script. History Summary cannot select the prior-day range, so it is the wrong tool for this page.

    HMI and touchscreens