×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 45020870, Entry date: 04/13/2017
(5)
Rate

How do you create a memory dump for diagnostics purposes in WinCC and PCS 7?

  • Entry
  • Associated product(s)
The instructions below are for installing and using a memory dump in WinCC and PCS 7. You can use this tool to create a memory dump of a process in the event of a fault. This memory dump can be useful for detailed diagnostics.

Procedure for Windows 7 and higher (Windows 7, Windows 8.1, Windows Server 2008, Windows Server 2008 R2 and Windows Server 2012 R2, Windows 10)

Contents
1 Installing the Microsoft Windows Software Development Kit (SDK)
1.1 Downloading and Installing the SDK
2 Starting and Parameterizing the adplus.exe Program
2.1 Configuring the adplus.exe Program
2.2 Starting the adplus.exe Program
3 Adding the adplus.exe Program to the Startup List of the WinCC Project
4 Remarks
5 Enabling and Using the "gflags" Tool
6 Usage of ProcDump
6.1 Approach
6.2 Notes
6 Glossary

Download
 Creation of a memory dump (1,1 MB)
adplusconfig.xml (1.1 KB)

Notes

  • If the generated user dump or the file created by adplus has the size 0 KB, you have to change the page file of Windows. Detailed information is available from Microsoft under the article number 2860880. Another reason for this might also be a resource load problem.
  • You can also create a memory dump later. However, this memory dump is a snapshot and does not include the sequence of events leading to the fault.

In Windows 7 and higher you create other user dumps later with the Windows Task Manager.

Windows 7 / Windows 8.1 / Windows Server 2008 (32-bit versions)
  1. Open the Task Manager:
    - via Start > Run > Taskmgr.exe or
    - by right-clicking the taskbar > Start Task Manager.
  2. Open the "Processes" tab. Select the required process with a right-click.

  3. In the pop-up menu that opens you select the "Create Dump File" function.


    Fig. 01

    Creating the dump file.


Windows 7 / Windows 8.1 / Windows Server 2008 / Windows Server 2012 (64-bit versions) / Windows 10

Seeing as the WinCC processes are 32-bit processes you create a memory dump in the 32-bit format.
The 64-bit version of the Task Manager starts by default in the 64-bit versions of the operating system and therefore a memory dump is also created in the 64-bit format. Proceed as follows to create a memory dump in the 32-bit format in the 64-bit versions of the operating system.
  1. Start the 32-bit version of the Task Manager via C:\Windows\SysWOW64\taskmgr.exe.
  2. Open the "Processes" tab. Select the required process with a right-click.
  3. In the pop-up menu that opens you select the "Create Dump File" function.
    The dump file is created.

In any case you should always first get in touch with theTechnical Support to find out which memory dump is required.

Procedure for Windows 2000/2003 Server/XP

The instructions below are for installing and using the User Mode Process Dumper in WinCC and PCS 7. You can use this tool to create a memory dump of a process in the event of a fault. This memory dump can be useful for detailed diagnostics.

Contents
1 Installing and Using the "User Mode Process Dumper"
1.1 Manual Starting of the "User Mode Process Dumper"
1.2 Installing the "User Mode Process Dumper" for Automatic Monitoring
of a Process
1.3 Installing the "User Mode Process Dumper" with Hotkey
1.4 Uninstalling the "User Mode Process Dumper"
2 Enabling and Using the "gflags" Tool
2.1 Enabling the "gflags" Tool

Download
Documentation (711.6 KB)

Additional Keywords
User dump tool, Memory overwrite, Memory swell, Memory overflow, Crash, Memory dump, Dump

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.