Tracing the CPU and memory usage in your WinCC OA project

Discussion about recent product features & solutions!
7 posts • Page 1 of 1
leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Tracing the CPU and memory usage in your WinCC OA project

Post by leoknipp »

Hello,

sometimes it can be necessary to get CPU and memory information for the WinCC OA processes in a project. If this information has to be available only "offline" you can use system tools for it, e.g. the performance monitor on Windows. But it can also be needful to have this information available "online" in your project.

I have implemented this functionality to collect data (CPU/memory usage) and represent it on datapoint elements in the WinCC OA project.
This feature is now available as a non-official AddOn called "WinCC OA CPU information". It can be used on Windows/Linux/Solaris x86 for PVSS 3.9 and newer PVSS/WinCC OA versions.

Attached you will find a pdf-file "WinCC_OA_CPU_information.pdf" with a detailed description for the AddOn.
To get the zip-file "WinCC_OA_CPU_information.zip" containing the files for the AddOn please have a look at my own reply to this posting.

Please note that this AddOn is not part of the WinCC OA standard product and is therefore not officially supported.
If you have questions concerning the functionality or if you want to report an error please write a reply in this thread.

Feel free to make your comments!

Best Regards
Leopold Knipp
Senior Support Specialist https://www.winccoa.com/fileadmin/image ... mation.pdf
Attachments
WinCC_OA_CPU_information.pdf
(95.96 KiB) Downloaded 413 times

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Tracing the CPU and memory usage in your WinCC OA project

Post by leoknipp »

As described in the previous posting the zip-file with the files for the AddOn is attached to this posting. https://www.winccoa.com/fileadmin/image ... mation.zip
Attachments
WinCC_OA_CPU_information.zip
(103.12 KiB) Downloaded 418 times

vogler
Posts:122
Joined: Thu Oct 28, 2010 8:32 am

Re: Tracing the CPU and memory usage in your WinCC OA project

Post by vogler »

you can also use c# to get the cpu-load of a host and push it to a WinCC OA Server (no need to install WinCC OA at the clients) ... c#/mono runs on linux and windows....

Image
Image

That's why i like C#, lot of things are very simple and provided by the .Net-Framework....


leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Tracing the CPU and memory usage in your WinCC OA project

Post by leoknipp »

Hello,

I've corrected some bugs for the CPU information toolkit. In redundant system the toolkit was not working properly.
Attached you'll find the updated zip-file with the modified scripts and an updated documentation. Please have a look at the chapter "Installation steps" when using the toolkit in a redundant system.

Best Regards
Leopold Knipp
Senior Support Specialist https://www.winccoa.com/fileadmin/image ... 131024.zip
Attachments
WinCC_OA_CPU_information-20131024.zip
(104.36 KiB) Downloaded 431 times

riccardo.crociani
Posts:34
Joined: Tue Mar 31, 2015 12:52 pm

Re: Tracing the CPU and memory usage in your WinCC OA project

Post by riccardo.crociani »

Hello Mr. Leopold,

as you suggested us in the SR 1-5253123165 we downloaded the attached AddOn to monitor the usage of CPU and memory for single processes.
Reading the installation steps we noted it necessery to restart the project we want to monitor if the project is a a redundant project.

It is strictly necessary? Or it's possibile to install it without restartarting the project but accepting a sort of limitation (eg. impossibe to monitor data and event...) ?

In a 2x2 architecture can we run the AddOn on PSS and SSS at the sametime ?

Thanks a lot

Riccardo

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Tracing the CPU and memory usage in your WinCC OA project

Post by leoknipp »

A restart of the project is necessary as you have to define fwdDpType entries for redundancy. The Event Manager has to read the config.redu to use the new settings. If no restart is made the CTRL script running on the passive server will not be able to set the dp elements to trace the CPU/memory usage. In a Disaster Recovery System you can use the tool on both servers.Please ensure that (according to your DRS configuration) the values/dp elements to trace the CPU usage are not copied from system to the other one.Best RegardsLeopold KnippSenior Support Specialist

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: Tracing the CPU and memory usage in your WinCC OA project

Post by adaneau »

Hi,

Just small advice from my side to improve this. In case of use of WinCC OA as a service, this cannot be used except if the following option is added:

-accepteula

This prevent the PSlist to expect user action when executed, which blocks the system in case of service running.

Also it would be nice to be able to enable/disable the file logging :)

Best regards
Alexandre Daneau

7 posts • Page 1 of 1