×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 45020870, Entry date: 09/21/2021
(7)
Rate

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

  • Entry
  • Associated product(s)
The following instructions 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 Remark
5 Enabling and Using the "gflags" Tool
6 Using ProcDump
   6.1 Procedure
   6.2 Remarks
7 Glossary

Download  
  45020870_Userdump_create_W7_V1_5_en.pdf (994.2 KB)
 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. 1
        
    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 the Technical Support to find out which memory dump is required. 

Further Information
What diagnostics options are available for WinCC and PCS 7 OS?
 48698507 

 

Procedure for Windows 2000/2003 Server/XP

The following instructions 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 Manually 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)  

Have memory dumps created automatically by Windows

The following instructions describe how to set up Windows to automatically create a memory dump in the event of an error.

  1. Via "Control Panel", "System", you open the "Advanced Control Panel".
  2. Select the "Advanced" tab
  3. Open the settings for "Startup and Recovery"
  4. Under "Write debugging information" you select the corresponding memory dump in the pop-up menu

    Fig. 2

Notes
Different memory dumps are available for selection depending on the operating system.
You must restart Windows for the changes to take effect.
Windows creates the set memory dump in case of an error.

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.
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.