11

How to analyse *.hprof files in BI servers

 3 years ago
source link: https://blogs.sap.com/2021/05/23/how-to-analyse-.hprof-files-in-bi-servers/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Technical Articles
Posted on May 23, 2021 2 minute read

How to analyse *.hprof files in BI servers

1 Like 55 Views 0 Comments

Many of you must probably have observed *.hprof files generated in log folder in BI servers. hprof files are heap dump of the memory of java-based processes. Huge hprof files most commonly indicate out of memory issues about the related processes. These hprof files can be configured at startup to track and monitor memory performance issues.

In order to analyze the hprof files, there is a tool called Memory Analyzer(MAT) provided by SAP and IBM jointly. You can download latest version from here. In this post, I will try to explain shortly how to analyse the hprof files and OOM (out of memory) issues in BI servers and solve them.

  • Download the MAT tool from above URL and copy it somewhere on your disk. No need to install. Just unzip. Java must be readily installed of course. Minimum java version is described in documentation
  • Run executable “MemoryAnalyzer” under folder “mat”. Its symbol is like something belowmat%20symbol
  • The entrance screen is below.

   mat%20entrance

 mat entrance screen

  • Click File -> Open Heap Dump. Select the hprof file as below. You will see the file name in format <“java_pid”><OS PID number of process>. The PID number may provide a hint for you to understand. However, all BI server processes look the same in task manager. Moreover, PID may be a sub process of the main process. You can try to find the process using process explorer. However, let’s not get stuck with trying to find the identity of the process at this stage.

hprof%20file

hprof file

  • choose “Leak Suspects Report”

leak-suspects.png

  • Click “System Overview”

System-properties-4.png

  • Click “System Properties”

System-properties.png

  • On the next screen, you will see many properties and values. the most important parameter here is “businessobjects.name” parameter. The parameter is in format <hostname.APS.***>  just like you see in CMC -> servers. This parameter show us the BI server process the OOM is related with. Most often, the issue can be solved by increasing the -Xmx value of the related server process.

System-properties-2.png

In this post, I tried to explain the hprof files and how to understand the server process the file originates from. You may read in some SAP notes the procedure of disabling the generation of hprof files. Disabling is not right. Because generation of these files informs us that something related with memory consumption is not right. Don’t disable. But analyze the files and make proper parametrization


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK