| Product(s): | APM Implementation and Performance Management | |
| Version(s): | 7.x & up | |
| Environment: | N\A | |
| Area: | N/A | |
| Subarea: | N\A | |
My application server process or client session is hung, and APM Support needs a full-memory dump of the hung process.
Background
Smart-clients are unable to connect to an application server, or services (Remote, ODC, Action Scheduler, etc.) are not running.
Or
A smartclient is hung and can only proceed by killing the client with Task Manager.
Two full-memory process dumps, taken a few minutes apart, are required by Support to investigate the cause.
Steps to Accomplish
Option 1: Web Monitor
- Open a browser and enter "http://{server_name}:{port#}" in the URL control, e.g., "http://naou10015:8081". (Note: If you are logged in to the server, you can enter "http://localhost:8081")
- You will be prompted for a user and password.
- The browser will display the Web Monitor's Home page.
- Select the Diagnostics page.
- The Diagnostics page has 2 sections: Server Log Files and Process Dumps. Scroll until you see the Process Dumps section.
- In the Process Dumps section, there are 3 buttons: Dump Process Now, Monitor Process, and Delete All Dump Files.
- Click on the Dump Process Now button.
- The page will display the Dump IvaraServer Process page, with the message "Process dump initiated...". Go back to the Diagnostics page.
- The Process Dumps section will now list a file with a name similar to "FULLDUMP_HangMode_IvaraServer.exe__1900_2016-04-08_03-17-38-315_182c.dmp".
- Wait a few minutes, and use the Process Dump Now button to force another hang dump.
- The 2 memory dump files are typically saved to the "%programdata%\Bentley\IvaraEXP\Logs\" directory, in a "dumps" folder. If you have multiple server process, the "dumps" folder will contain folders for each server instance. Open the folder for the server instance that was hung, and you should see two folders for each Hang Mode dump.
- These folders should be compressed (e.g., a .zip) file, and uploaded to a Bentley ShareFile folder. (Note: We will also want the server instance's log files, which are also located in the "%programdata%\Bentley\IvaraEXP\Logs\" directory.)
- Enter an AssetWise APM Service Request (if not already submitted), and request the ShareFile location to which the dump files are to be uploaded.
Option 2: Task Manager
- Log on to the server that hosts the hung service instance.
- Start the Windows Task Manager, go to thte Details tab, and sort by Name.
- Find the IvaraServer.exe process. If there are multiple IvaraServer.exe processes, display the "Command line" column, and look for the the server/service instance and port in the command line arguments.)
- Select the server process, click the right mouse button, and select the "Create dump file" option.
- When the dump is completed, a dialog will display showing the location and name of the dump file.
- Wait a few minutes, and use the "Create dump file" option to create a second memory dump.
- When the dump is completed, a dialog will display showing the location and name of the dump file.
- Using Windows File Explorer, find the 2 memory dump files.
- If you forget to record the names & location of the 2 dump files, open a Command Prompt window & enter echo %TEMP%, which will return the storage location for the memory dumps. (NOTE: The default location is typically %SystemDrive%\Users\{username}\AppData\Local\Temp or %SystemDrive%\Documents and Settings\{username}\Local Settings\Temp.)
- These files should be compressed (e.g., a .zip) file, and uploaded to a Bentley ShareFile folder. (Note: We will also want the server instance's log files, which are typically located in the "%programdata%\Bentley\IvaraEXP\Logs\" directory.)
- Enter an AssetWise APM Service Request (if not already submitted), and request the ShareFile location to which the dump files are to be uploaded.
See Also
https://bentleysystems.service-now.com/community?id=kb_article_view&sysparm_article=KB0089134
| Original Author: | Roy Suthers | |