Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 10 Next »

It is possible to profile the rendering process of Multisite pages. This is done using the Python module cProfile. For viewing the profiling data, we use snakeviz.

SnakeViz is a viewer for Python profiling data that runs as a web application in your browser. It is inspired by the wxPython profile viewer RunSnakeRun.

Schritt-für-Schritt-Anleitung

  1. Enable profiling in Checkmk

    WATO - CONFIGURATION → Global Settings → USER INTERFACE

    Don't use 'Enable profiling by request'. This option will profile a Multisite request randomly and you and at the most of the time it will be the slowest one.

  2. Install Python module

    root@cmk-VirtualBox:~# pip install snakeviz
  3. Modify the URL to profile by adding '&_profile=1'

    http://localhost/nagnis_master/check_mk/view.py?view_name=allhosts&_profile=1
  4. Now two files are created in ~/var/check_mk/

    root@klappanas:/opt/omd/sites/nagnis_master/var/check_mk# ll |grep multisite
    -rw-rw---- 1 nagnis_master nagnis_master 100246 Nov 6 13:35 multisite.profile
    -rwxr-xr-x 1 nagnis_master nagnis_master 155 Nov 6 13:35 multisite.profile.py*
  5. Move the file to another directory (e.g. /tmp)

     



Verwandte Artikel

Filter by label

There are no items with the selected labels at this time.




  • No labels