You are on page 1of 12

Week 4: Performance Analysis

Unit 1: Analyzing Memory Usage


Analyzing Memory Usage
Memory Analysis application in SAP HANA cockpit

 Displays the current memory usage statistics and their


trend over time
 Offers charts and filters for easy time-based analysis
 Detailed tabular analysis based on components,
subcomponents, tables, and out-of-memory (OOM) events
– Historical overview for host and service
– Used memory by component, categorized by type
– Used memory by subcomponent, filtered by component
– Used memory historical graphs
– Top 10 tables by size and growth
– Occurrences of OOM events, including their reason
 Useful in determining what caused a memory spike,
especially if it resulted in an OOM situation

© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 2


Analyzing Memory Usage
Memory Analysis application: technical details

Memory allocation (current and historical) is derived


from SAP HANA system views:
 HOST_RESOURCE_UTILIZATION_STATISTICS
 HOST_SERVICE_MEMORY
 HOST_SERVICE_COMPONENT_MEMORY
 HOST_HEAP_ALLOCATORS
 GLOBAL_ROWSTORE_TABLES_SIZE_BASE
 HOST_COLUMN_TABLES_PART_SIZE
 M_OUT_OF_MEMORY_EVENTS

All views stored in the _SYS_STATISTICS schema

© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 3


Analyzing Memory Usage
Step 1: Launch the Memory Analysis application

 Open the Manage Services app by clicking the “Overall Database Status” tile on the Overview page
 Open the Memory Analysis app by clicking the mini bar-chart in the memory column of the service whose
memory statistics you want to inspect

© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 4


Analyzing Memory Usage
Step 2: Pick the desired data using the various controls and selections available

Host & Service selection dropdown Time selection Collection frequency

Unit selection dropdown

© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 5


Analyzing Memory Usage
Step 3: Inspect the memory statistics using the top chart and select point in time to examine

Memory alerts

Global Allocation Limit


Allocated Memory
Total Used Memory

© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 6


Analyzing Memory Usage
Step 4: Examine the used memory by the different components

Used memory by component

Used memory by type

Components’ used memory history

© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 7


Analyzing Memory Usage
Step 5: Examine the subcomponents for more details on memory use

Used memory by subcomponent

Filter by component name

Subcomponents used memory history

© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 8


Analyzing Memory Usage
Step 6: Examine table size and growth

Top 10 tables by size Top 10 tables by growth

 Table size and growth shows memory distribution across tables and provides a way to determine potentially
fast-growing tables requiring further investigation
© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 9
Analyzing Memory Usage
Step 7: Examine OOM events

List of OOM events with reason and SQL statement

 Out-of-memory events show the out-of-memory incidents that have occurred, including the reason for
occurrence and related SQL statement
© 2017 SAP SE or an SAP affiliate company. All rights reserved. ǀ PUBLIC 10
Thank you.
Contact information:

open@sap.com
© 2017 SAP SE or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.

The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components
of other software vendors. National product specifications may vary.

These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated
companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are
set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this docume nt or any related presentation, or to develop or release
any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ st rategy and possible future developments, products,
and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The
information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various
risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements,
and they should not be relied upon in making purchasing decisions.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trade marks of SAP SE (or an SAP affiliate company)
in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companie s.
See http://global.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.

You might also like