• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Contribution Sysdig Tutorial: Using sysdig to find performance and other problems!

atomicturtle

Golden Pleskian
Description
Sysdig instruments your physical and virtual machines at the OS level by installing a module into the Linux kernel and
capturing system calls and other OS events.Using sysdig's command line interface, you can filter and decode these events in order to extract useful information.

Sysdig can be used to inspect systems live in real-time, or to generate trace files that can be analyzed at a later stage.

Installation
1) Install the atomic repo
wget -q -O - http://www.atomicorp.com/installers/atomic |sh

2) Install sysdig:
yum install sysdig

3) (optional) If you're using an ASL kernel, or otherwise locking the system from loading kernel modules:
reboot


Usage: These are just a few simple examples

Showing what files are using the most I/O for httpd:
sysdig -c topfiles_time proc.name=httpd

Show process execution time system wide:
sysdig -c proc_exec_time

Show top server ports:
sysdig -c topports_server

Show every file opened under a web domain:
sysdig evt.type=open and fd.name contains /var/www/vhosts/domainname/httpdocs/

Show files exchanged between apache and IP 10.11.12.13:
sysdig -A -c echo_fds proc.name=httpd and fd.sip=10.11.12.13

Show what the user id testuser is doing:
sysdig -c spy_users username=testuser
 
Back
Top