IMD SolutionComputing LibraryShop main store

Troubleshooting

Why oversized history blocks spike historian RAM at merge

Edge computing and IIoT Published 8 min read

Short answer

Merge crashes on 15 to 20 GB history blocks are an input-volume problem, not a memory problem. Measure which of three causes fills the blocks — corrupted block sets, alarm and event bloat, or store-and-forward replay into old intervals — then fix that source. Adding RAM only moves the crash threshold; recalculated blocks stay small once the true cause is removed.

On this page
  1. Why do history blocks reach 15 to 20 GB?
  2. How big should a block be at your write rate?
  3. Which blocks keep triggering the spike?
  4. Can corrupted blocks leak memory until the merge crashes?
  5. Do alarms and events bloat the blocks?
  6. Is store-and-forward replay writing into old blocks?
  7. Does adding RAM fix the merge-crash cycle?
  8. What is the decision for each cause?
  9. Questions asked

A merge that takes the server down is a storage-content problem before it is a memory problem. Blocks reported at 15 to 20 GB are that size because of what has been written into them, and on this failure pattern three causes account for nearly every case: corrupted blocks, alarm and event bloat, and store-and-forward replay landing in old blocks. Measure which one applies before buying RAM or opening another repair ticket, because the merge-crash cycle returns as long as the input volume stays high.

Why do history blocks reach 15 to 20 GB? #

A block reaches that size by accumulating daily write volume across its merge interval, and on the reported case the mix was about 300 MB of process data against more than 1,000 MB of alarms and events per day, so alarms and events dominated the file.

The historian stores its data in history blocks: proprietary-format files that work as subfolders of the storage directory, one set per interval, with alarm and event history written into blocks of its own. The size of a block set is therefore not a function of how many tags you historize. Two servers with similar tag counts produce wildly different blocks because volume follows change rates, deadband and compression settings, and above all the number of alarm transitions and events recorded. That is why other servers with equal or more historized tags show nothing close to these file sizes: the difference is what gets written per day, not how many points are configured.

How big should a block be at your write rate? #

Multiply measured daily volume by the block interval: at the reported 1,300 MB per day combined and a 14-day interval, the block set lands at 18.2 GB, which sits inside the 15 to 20 GB range that was crashing the merges.

Worked example, using figures from a reported case and an assumed 14-day interval:

  • Process data: about 300 MB per day.
  • Alarms and events: more than 1,000 MB per day.
  • Combined daily volume: 300 + 1,000 = 1,300 MB per day.
  • Block set at a 14-day interval: 1,300 MB/day × 14 days = 18,200 MB, or 18.2 GB per block set.
  • Alarm share of the block: 1,000 ÷ 1,300 ≈ 0.77, so alarms and events carry roughly three quarters of every block.

The arithmetic cuts both ways. If alarm recording is corrected at the source down to the process-data level, the daily total falls to about 600 MB and the same 14-day block holds 600 × 14 = 8,400 MB, or 8.4 GB — a size a modest server merges without breaking a sweat. Halving the interval halves the block instead. These are illustrative figures from a reported case, not a storage ratio to apply to your server; run the same two numbers, measured daily volume and your configured interval, against your own storage directory. If you are consolidating history from a second server, the combined volume doubles and the interval must shrink accordingly — the same arithmetic behind merging two historians' history blocks without tiering.

Which blocks keep triggering the spike? #

Build a block inventory before the next merge attempt, because the crash nearly always comes from the same block set, and a repaired file that came back at its old size was never rebuilt in the first place.

Before the historian attempts another merge, capture:

  • The storage path and represented time range of every oversized block.
  • Each file's size and modification timestamp.
  • The merge input identification from the historian's diagnostic records.
  • Process memory behavior: whether memory peaks during the merge and is released, or climbs and stays allocated.
  • The crash and restart sequence from the application and operating-system event logs.

Correlate the spike times with the block set being processed. A file that survived an earlier repair is not proven healthy: file size and structural integrity are separate properties, and a forced merge can return the same oversized file unchanged. This inventory is what you hand to support, and it is what tells you which of the three causes below you are dealing with.

Can corrupted blocks leak memory until the merge crashes? #

Yes: field reports tie corrupted history blocks to memory leaks that crash the historian during merge, and a support repair that returns the same large files has forced the merge without rebuilding the contents, which is why the fault returned within months.

The signature is memory that climbs during the merge and never comes back down, on the same block set every time. That behavior points to damaged block structure rather than data volume, and it is not something to fix on the server yourself: the storage engine owns those files and its catalog tracks them. Open a vendor support case and let their diagnostic — Storage Doctor, in the AVEVA Historian toolset — examine and rebuild the affected blocks through documented procedures.

Do not manually delete or move active history block files to break the cycle; that can destroy recoverable history and corrupt the storage catalog, turning a merge fault into permanent data loss. Preserve the affected files with the vendor's supported backup procedure first, so support receives exactly what the server was failing on.

Do alarms and events bloat the blocks? #

They do, and on a chattering system by more than the process data: the reported day showed alarms and events at more than three times the process-data volume, which makes alarm recording the first suspect when blocks grow without a tag-count change.

Alarm and event history lives in history blocks just like process values, so every flapping limit, retriggering condition or duplicated report lands in the same files the merger has to process. Compare a representative day on the affected server against a healthy one, splitting process-value records from alarm and event records wherever your diagnostics allow. Then trace the highest-volume sources: rapidly cycling values, alarm floods from a single area, or a misconfigured acquisition that reports every scan instead of changes only.

One rule governs the fix: correct unintended record generation at its source, and get the process owner's approval before touching anything that is being recorded deliberately. Do not suppress required alarms or thin out essential process history just to make a block smaller — that trades a storage fault for a lost record of the process.

Is store-and-forward replay writing into old blocks? #

Check the feeder nodes for a buffered backlog whenever the fattest blocks are weeks to months old, because a reconnecting node replays records that carry their original timestamps and the historian keeps writing them into those old block sets.

A record's timestamp and the moment the historian receives it are two different times. Buffered data from an application-server node that lost its connection arrives long after the events happened, and the historian dutifully processes it into the interval it belongs to — keeping old blocks open, growing and re-entering merge work. This is the same mechanism behind history blocks dated in the future, read in reverse: arrival time and event time disagree, and the block inventory shows it as modification timestamps on blocks whose process data finished long ago.

Drain the backlog node by node, repair the connection that caused it, and verify buffered data actually counted as stored with the completion check for store-and-forward writes before you call the cause closed. While any node still holds a buffer, the oversized-block cycle continues regardless of what you do to RAM.

Does adding RAM fix the merge-crash cycle? #

No. Merge memory demand follows the records a block holds, so added RAM only moves the crash threshold while input volume keeps growing, and the cycle resumes at the next interval; size memory from measured workload, not from the largest file you have seen.

Adding memory can be part of the end state — once you know the steady-state daily volume and the interval you intend to run, sizing the server for that calculated block set is legitimate capacity planning. What fails is sizing from symptom to symptom: buy RAM against a 20 GB block, and the next block comes in larger. The on-disk file size alone never specified the RAM a merge needs, because demand depends on the record count and processing path, so the file size cannot be a sizing input. Fix what writes into the blocks first, then size.

What is the decision for each cause? #

Match the block-level finding to its cause and apply one decision: corruption goes to vendor support with the Storage Doctor diagnostic, alarm bloat is fixed at its source with the process owner's approval, backlog is drained node by node, and only genuine growth justifies a resize.

Block-level finding Cause Decision
Diagnostics flag block structure; memory climbs during merge and stays allocated Corrupted blocks with a memory leak Vendor support case; Storage Doctor examines and rebuilds the blocks; restore from a verified backup if needed
Alarms and events exceed process-data volume for the same day Alarm and event bloat Trace the flood source, correct it with the process owner's approval, re-baseline block size after one interval
Fattest blocks cover time ranges weeks to months old, with recent modification timestamps Store-and-forward replay Drain the backlog node by node, repair the failing connection, confirm the buffered writes landed
Volume matches the calculation but the block set is still too large Genuine process growth Shorten the block interval or plan storage and memory from the recalculated volume

Once the matching decision is applied, the block set should return to the size the calculation predicts within one merge interval. If it does not, the input cause is still active — and the RAM question stays closed until it is not.

Questions asked

Will upgrading to a newer historian release stop oversized blocks?

An upgrade can change merge behavior, but it does not change what is written into the blocks. If an alarm flood or a buffered backlog keeps feeding old intervals, the blocks regrow on the new release too. Plan the upgrade through vendor support, then re-measure block sizes across one full merge interval before declaring the fault closed.

Can I merge a second historian's blocks into this server instead?

You can, but treat it as a capacity project. Combining two servers roughly doubles the daily volume landing in the target's blocks, so a block set that fits today can exceed memory at the same interval. Calculate the combined daily volume first, choose the interval from that number, and confirm each merged block survives a retrieval test against known tags and timestamps.

What proves the fix worked?

Three checks: the block size returns to the value you calculated from measured daily volume within one merge interval, the event logs show merges completing without the historian process terminating, and server memory returns to its normal baseline after each merge. If any one of the three fails, the input cause is still active.

How do I measure the daily write volume feeding a block?

Take the total size of the block files covering a known interval and divide by the days that interval spans; for example, block files totalling 18 GB across 14 days report about 1.3 GB per day. Split process data from alarm and event records using the historian's storage summaries where your release provides them, because the split decides which fix applies.

Keep reading

  • How-to

    Merge two historian servers' history blocks without tiering

    Yes — consolidate the two archives on one server by copying every history block that exists on only one server into the other's archive, repairing internal TagID lookup with the source taginfo.dat where names match but history stays missing, and moving any day both servers cover through CSV export and import. The destination should run the same historian release as the source or newer, 2017 or later.

    Edge computing and IIoT

  • Troubleshooting

    Why historian shows current time for backdated PLC data

    The historian is not replacing PLC timestamps with server time. The streamed write path enforces time order: a value that arrives out of order is restamped just after the last accepted value and flagged in quality detail, while backdated values that arrive in order keep their old dates — which is why clients show current time and History Blocks still show 2012. Disable Auto-Summary to stop the Replication service crashes, then move the affected tags to a non-streamed write path.

    Edge computing and IIoT

  • Troubleshooting

    Why a historian creates history blocks dated in the future

    Future-dated history blocks mean the historian is receiving values whose origin timestamps are wrong, not that storage is failing: it files each value into the day block covering that value's own stamp, so an upstream layer four months ahead creates blocks four months ahead. Measure the offset, split the affected tags by source, and fix the layer that owns the timestamp.

    Edge computing and IIoT