On this page
Short answer
Running SAP HANA in production comes down to four things you can check from SQL: the memory pool against its allocation limit, savepoints and log backups, the system replication mode and its status, and a backup catalog that shows recent successful entries. This guide covers the database layer only, using the SAP HANA Platform 2.0 documentation on help.sap.com (read 19 November 2026). It does not cover SAP application, Basis or ABAP work.
Running SAP HANA in production comes down to four things you can check from SQL: the memory pool against its allocation limit, savepoints and log backups, the system replication mode and its status, and a backup catalog that shows recent successful entries. This guide covers the database layer only, using the SAP HANA Platform 2.0 documentation on help.sap.com (read 19 November 2026). It does not cover SAP application, Basis or ABAP work.
What is the memory limit, and how do you read memory use?
SAP HANA reserves a memory pool from the operating system over time, up to a global allocation limit, and then manages that pool itself. By default (global_allocation_limit = 0 in the memorymanager section of global.ini) the limit is 90% of the first 64 GB of host physical memory plus 97% of each further GB. For very small hosts (4 GB or less) it is the smaller of 3 GB or 90% of physical memory. You can set a fixed value in MB or a percentage, and changing it does not require a restart; the privilege needed is INIFILE ADMIN.
Two things follow. Memory shown as used by the OS is not the same as memory in use inside the pool, and a value set for the whole system applies to every host, so five hosts with a 5 GB limit can use 25 GB in total. Read both with M_SERVICE_MEMORY:
SELECT HOST, PORT, SERVICE_NAME,
ALLOCATION_LIMIT, EFFECTIVE_ALLOCATION_LIMIT,
TOTAL_MEMORY_USED_SIZE, PHYSICAL_MEMORY_SIZE,
FRAGMENTED_MEMORY_SIZE
FROM M_SERVICE_MEMORY;
TOTAL_MEMORY_USED_SIZE is memory in use from the pool. EFFECTIVE_ALLOCATION_LIMIT is the computed maximum considering other processes. FRAGMENTED_MEMORY_SIZE is memory held by memory management that cannot easily be reused. Watch the gap between used memory and the effective limit, not the OS figure. If other software shares the host, lower the limit deliberately instead of letting the pool and the other process compete.
How do savepoints and the redo log protect data?
SAP HANA keeps data in memory and writes changed data to disk at regular savepoints. By default savepoints run every five minutes, including during a backup, and transactions keep running during a savepoint. Committed changes are protected by the redo log: log segments are written to disk at commit, and also when the redo log buffer fills. Savepoint timings are in M_SAVEPOINTS. Trend the savepoint durations over time, so a change stands out before users notice it.
How often should log backups run?
Log backups bound your data loss if the log area cannot be used for recovery. The interval is log_backup_timeout_s in the persistence section of global.ini; the default is 900 seconds (15 minutes) and SAP recommends 15 minutes or less for production systems. It only takes effect if automatic log backups are on, which requires log mode normal. Full log segments are backed up immediately regardless of the interval. A value of 0 means log backups happen only when a segment fills and when services restart. The change takes effect immediately.
Check the catalog, not the schedule:
SELECT TOP 10 ENTRY_TYPE_NAME, SYS_START_TIME, STATE_NAME
FROM M_BACKUP_CATALOG
ORDER BY SYS_START_TIME DESC;
STATE_NAME reports successful, failed, running, cancel pending or canceled. A catalog with recent successful log backups and a recent successful data backup is the minimum evidence; a restore you have actually run is the real evidence.
Which system replication mode should you pick?
Replication mode controls when the primary commits relative to the secondary. SAP documents three:
| Mode | Primary commits when | Data loss risk |
|---|---|---|
| SYNCMEM | The secondary has received the log in memory | Possible if both systems fail together, or on takeover while the secondary was unavailable |
| SYNC | The log is persisted on the secondary's disk | None while connected; possible on takeover while disconnected |
| ASYNC | The log is sent, without waiting for a reply | Changes can be lost on takeover |
SYNC adds a full sync option ([system_replication]/enable_full_sync): if the secondary disconnects, the primary suspends write operations until it reconnects, which trades availability for zero data loss. Choose the mode from the data-loss budget and the network distance, not from habit. The mode can be changed without a full data shipping afterwards.
The operation mode is separate: delta_datashipping, logreplay or logreplay_readaccess (for a read-enabled secondary). In the logreplay modes the secondary replays the log continuously, so it can take over immediately, and the primary retains log segments for a disconnected secondary. That retention is the production risk.
What happens to the log volume when the secondary is gone?
With a logreplay mode, log segments the secondary has not received stay on the primary as RetainedFree, and SAP's troubleshooting guide warns this can cause a disk-full situation on the primary if the secondary is unavailable. logshipping_max_retention_size (global.ini) caps the retained log. If the cap is reached, retained segments are overwritten and the secondary can no longer sync by log replay; only a full data shipment will resynchronise it. If it is 0, the primary can stop until log writing continues. Decide which failure you prefer, then alert on log volume usage for the primary.
Which replication checks belong in monitoring?
| Check | Where | What to look for |
|---|---|---|
| Replication state | hdbnsutil -sr_state as <sid>adm |
Mode (primary, sync, async, syncmem), site names, active primary |
| Replication status | M_SERVICE_REPLICATION |
REPLICATION_STATUS and REPLICATION_STATUS_DETAILS per service |
| Retained log | Disk usage app, hdblogdiag seglist |
RetainedFree segments growing |
| Backup recency | M_BACKUP_CATALOG |
Last successful data and log backup |
| Memory headroom | M_SERVICE_MEMORY |
Used versus effective limit |
A weekly routine that fits on one page
- Read memory against the effective limit and note growth.
- Confirm every service shows a healthy replication status.
- Confirm the last successful data backup and the last log backup.
- Check log volume usage and
RetainedFreesegments. - Record revision and parameter changes, so a surprise has a paper trail.
Not every landscape needs more than this. If yours has grown past it, SAP HANA consulting from AceMQ works at the database layer with partner SAP HANA experts; the scope is outlined in the memory and workload review.
FAQ
What is the default global_allocation_limit in SAP HANA?
The default value is 0, which means 90% of the first 64 GB of available physical memory on the host plus 97% of each further GB. You can set a fixed MB value or a percentage in global.ini.
How often should I back up SAP HANA logs? SAP's default is every 15 minutes (900 seconds) and it recommends 15 minutes or less for production, with log mode set to normal.
Why is my SAP HANA log volume full when system replication is on?
In logreplay modes the primary keeps log segments for a secondary that is not synchronised, so a long disconnect can fill the log volume. logshipping_max_retention_size caps it at the cost of needing a full data shipment to resynchronise.
Sources
- help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/bd43f1c0bb571014bf5acf22f379fd3d.html
- help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/c1a774b3bb571014af018d2352f0d757.html
- help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20bf33c975191014bc16d7ffb7717db2.html
- help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/bee45f05696d4b9596797a7980d403c2.html
- help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/c039a1a5b8824ecfa754b55e0caffc01.html
- help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/627bd11e86c84ec2b9fcdf585d24011c.html
- help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/6e9eadcd57464e74b9395004cb1aba9a.html
- help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/d04835a010d3485c87992619dce89e2d.html
Talk to an engineer
Need a hand with SAP HANA?
Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

