Presentation is loading. Please wait.

Presentation is loading. Please wait.

OS * Tools for Monitoring Progress Applications * Including Windows even though Gus says that I am lying ;)

Similar presentations


Presentation on theme: "OS * Tools for Monitoring Progress Applications * Including Windows even though Gus says that I am lying ;)"— Presentation transcript:

1 OS * Tools for Monitoring Progress Applications * Including Windows even though Gus says that I am lying ;)

2 A Few Words about the Speaker Tom Bascom; Progress user & roaming DBA since 1987 President, DBAppraise, LLC – Remote database management service for OpenEdge. – Simplifying the job of managing and monitoring the worlds best business applications. – VP, White Star Software, LLC – Expert consulting services related to all aspects of Progress and OpenEdge. – 2

3 Scope OS oriented – not specific to Progress or OpenEdge. But useful with Progress and OpenEdge Emphasis on Free tools. Pre-installed or easily available.

4 Common Use Cases CPU Utilization Runaway Processes Memory Utilization Disk Space Disk Activity Disk Capacity Progress Temp Files

5 CPU Utilization Am I really using all of my CPUs? (or cores?) Am I getting useful work done? Do I have room for growth? Do I have a runaway process?

6 sar -u sar -u 5 5 HP-UX pluto B U ia64 11/11/10 15:00:00 %usr %sys %wio %idle 15:00: :00: :00: :00: :00: Average

7 sar -u sar -u 5 5 HP-UX pluto B U ia64 11/11/10 15:00:00 %usr %sys %wio %idle 15:00: :00: :00: :00: :00: Average sar -f /usr/adm/sa/sa11 -s 15:00 -e 15:45 -i 600 -u HP-UX pluto B U ia64 11/11/10 15:00:00 %usr %sys %wio %idle 15:10: :20: :30: :40: Average

8 top Processes: 72 total, 2 running, 70 sleeping, 325 threads 15:33:28 Load Avg: 0.22, 0.22, 0.17 CPU usage: 1.26% user, 2.10% sys, 96.62% idle SharedLibs: 8260K resident, 9820K data, 0B linkedit. MemRegions: total, 833M resident, 29M private, 676M shared. PhysMem: 919M wired, 1558M active, 588M inactive, 3064M used, 5128M free. VM: 154G vsize, 1042M framework vsize, (0) pageins, 0(0) pageouts. Networks: packets: /276M in, /256M out. Disks: 89638/2507M read, /3753M written. PID COMMAND %CPU TIME #TH #WQ #POR #MREG RPRVT RSHRD RSIZE 2465 top : / K 340K 1656K 2462 bash : K 856K 1024K 2461 login : K 312K 1572K 2460 mdworker : K 14M 3336K 2447 _progres : K 340K 2156K 2444 bash : K 856K 1028K 2443 login : K 312K 1572K 2407 mdworker : K 15M 39M

9 nmon nmon 3=Top-by-CPU-use Host=usqadnode1 Refresh=8 secs 18:06.26 CPU-Utilisation-Small-View EntitledCPU= 3.00 UsedCPU= Logical CPUs CPU User% Sys% Wait% Idle%| | | | | |UUUUUUUUUUUUUUUUUUUUUUUsssssssssssssssssssssssss>| |UUUUUUUUUUUUUsssssssssssssssssss >| |sssssssssssssssss >| |sssssssssssss > | |ssssssssssss > | |sssssssssssss> | |ssssssssssss > | |sssssssssssssssss > | |sssssssssss > | |ssssssssssss > | |sssssssssss > | |ssssssssssss > | | | |

10 taskmgr Windows Task Manager View -> CPU History -> One Graph Per CPU

11 Memory Utilization How much memory am I really using? Operating systems double count shared memory…

12 nmon Memory Physical PageSpace | pages/sec In Out FileSystemCache % Used 97.2% 3.6% | to Paging Space | (numperm) 54.0% % Free 2.8% 96.4% | to File System | Process 23.0% MB Used MB MB | Page Scans | System 20.1% MB Free 933.8MB MB | Page Cycles 21.4 | Free 2.8% Total(MB) MB MB | Page Steals | | Page Faults | Total 100.0% | numclient 54.0% Min/Maxperm 952MB( 3%) 28545MB( 87%) <--% of RAM | maxclient 87.1% Min/Maxfree Total Virtual 59.5GB | User 74.0% Min/Maxpgahead 2 16 Accessed Virtual 14.4GB 24.2%| Pinned 19.1%

13 top top - 10:51:19 up 408 days, 2:18, 1 user, load average: 7.42, 7.17, 7.10 Tasks: 696 total, 1 running, 695 sleeping, 0 stopped, 0 zombie Cpu(s): 6.9%us, 0.9%sy, 0.0%ni, 85.0%id, 7.2%wa, 0.0%hi, 0.0%si, 0.0%st Mem: k total, k used, 27048k free, 24352k buffers Swap: k total, 156k used, k free, k cached

14 free /home/tom> free total used free shared buffers cached Mem: /+ buffers/cache: Swap:

15 sar -r Totally useless

16 Windows taskmgr

17 taskmgr – Windows 7

18 Sysinternals - RamMap

19 Sysinternals - VMMap

20 Disk Space How much free space do I have?

21 df, du /home/tom> df -vk Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb % / udev % /dev /dev/sdc % /data /dev/sdd % /home /dev/sda % /srv /dev/sda % /windows/C /home/protop> du –k 76./bin 80./etc 96./hlp 364./mon 28./os/HP-UX 24./os/AIX 28./os/SunOS 28./os/Linux 24./os/OSF1 136./os 96./tmp 6736.

22 df, du /home/tom> df -vk Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb % / udev % /dev /dev/sdc % /data /dev/sdd % /home /dev/sda % /srv /dev/sda % /windows/C /home/protop> du –k 76./bin 80./etc 96./hlp 364./mon 28./os/HP-UX 24./os/AIX 28./os/SunOS 28./os/Linux 24./os/OSF1 136./os 96./tmp Also available for Windows from Sysinternals!

23 Disk Activity Which disks are most active? Are my disks too active?

24 taskmgr - XP

25 nmon Disk Busy Read Write Name KB/s KB/s | | | | |hdisk4 8% 29 0 |RRRR > | hdisk6 4% |WW > | hdisk7 1% |W > | hdisk9 6% |RRWW | hdisk10 13% |RRWWWWW> | hdisk13 27% |RRRRRRRRRRRRWWW > | hdisk17 30% |RRRRRRRRRRRRRWWW > | hdisk18 5% |RRW > | hdisk21 12% |RRRWWWW > | hdisk22 2% 16 0 |R |

26 sar -d sar -d 60 1 HP-UX pluto B U ia64 11/14/10 11:22:40 device %busy avque r+w/s blks/s avwait avserv 11:23:40 c3t0d c24t0d c24t0d c24t0d c24t0d c24t1d

27 perfmon

28

29 Disk Capacity What can you expect of your disks?

30 iometer

31

32 randomrd.c /home/tom>./randomrd /data/dbappraise/dbappraise_20.d iterations reads time(sec) reads/sec

33 Progress Temporary Files Who do the files in -T belong to? What temp files does a process have open?

34 Progress Temporary Files # ls -l /protemp total 64 -rw-r--r-- 1 tom users :21 DBI paLIUh -rw-r--r-- 1 tom users :02 DBI vFfHS7 -rw-r--r-- 1 root users :21 lbi1Bncn0 -rw-r--r-- 1 root users :02 lbiXuiCqK -rw-r--r-- 1 tom users :02 rcdD5N6Ik -rw-r--r-- 1 tom users :21 rcdL2ugyw -rw-r--r-- 1 tom users :21 srtfrdJsL -rw-r--r-- 1 tom users :02 srtzgpRzx

35 Progress Temporary Files # ls -l /protemp total 64 -rw-r--r-- 1 tom users :21 DBI paLIUh -rw-r--r-- 1 tom users :02 DBI vFfHS7 -rw-r--r-- 1 root users :21 lbi1Bncn0 -rw-r--r-- 1 root users :02 lbiXuiCqK -rw-r--r-- 1 tom users :02 rcdD5N6Ik -rw-r--r-- 1 tom users :21 rcdL2ugyw -rw-r--r-- 1 tom users :21 srtfrdJsL -rw-r--r-- 1 tom users :02 srtzgpRzx # # fuser -u /protemp/* /protemp/DBI paLIUh: 15692(tom) /protemp/DBI vFfHS7: 17980(tom) /protemp/lbi1Bncn0: 15692(tom) /protemp/lbiXuiCqK: 17980(tom) /protemp/rcdD5N6Ik: 18972(tom) /protemp/rcdL2ugyw: 17980(tom) /protemp/srtfrdJsL: 15692(tom) /protemp/srtzgpRzx: 17980(tom)

36 fuser, lsof # lsof -p COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME _progres tom cwd DIR 8, /home/tom _progres tom rtd DIR 8, / _progres tom txt REG 8, /usr/dlc/bin/_progres _progres tom mem REG 0,0 0 [heap] (stat: No such file or dir) _progres tom mem REG 8, /lib64/ld-2.4.so _progres tom mem REG 8, /var/run/nscd/passwd _progres tom mem REG 8, /lib64/libpthread-2.4.so _progres tom mem REG 8, /lib64/libdl-2.4.so _progres tom mem REG 8, /lib64/libcrypt-2.4.so _progres tom mem REG 8, /lib64/libm-2.4.so _progres tom mem REG 8, /usr/lib64/libstdc++.so _progres tom mem REG 8, /lib64/libgcc_s.so.1 _progres tom mem REG 8, /lib64/libc-2.4.so _progres tom 0u CHR 136,2 4 /dev/pts/2 _progres tom 1u CHR 136,2 4 /dev/pts/2 _progres tom 2u CHR 136,2 4 /dev/pts/2 _progres tom 3r REG 8, /usr/dlc/promsgs _progres tom 4r REG 8, /usr/dlc/convmap.cp _progres tom 5u REG 8, /home/tom/lbiJaKarj (deleted) _progres tom 6u REG 8, /home/tom/srtllSsLf (deleted) _progres tom 7u REG 8, /home/tom/rcdNAdL5b (deleted)

37 sysinternals

38 Resources nmon sysinternals iometer randomrd.c

39 Questions?

40 Thank-you!

41

42 top Processes: 71 total, 2 running, 1 stuck, 68 sleeping, 336 threads 15:30:49 Load Avg: 0.40, 0.23, 0.17 CPU usage: 1.13% user, 1.36% sys, 97.49% idle SharedLibs: 8260K resident, 9820K data, 0B linkedit. MemRegions: total, 855M resident, 30M private, 679M shared. PhysMem: 918M wired, 1587M active, 587M inactive, 3092M used, 5100M free. VM: 152G vsize, 1042M framework vsize, (0) pageins, 0(0) pageouts. Networks: packets: /276M in, /256M out. Disks: 89504/2506M read, /3748M written. PID COMMAND %CPU TIME #TH RPRVT RSHRD RSIZE VPRVT VSIZE PPID State FAULTS COW 2448 PubSubAgent : K 14M 9940K 60M 2436M 136 sleeping top : /1 1572K 244K 2148K 17M 2378M 2444 running bash : K 244K 1028K 17M 2378M 2443 sleeping login : K 244K 1572K 18M 2379M 226 sleeping mdworker : K 14M 39M 92M 2469M 1 running cupsd : K 248K 2292K 57M 2418M 1 sleeping AppleSpell : K 14M 4960K 47M 2427M 136 sleeping Safari : M 65M 74M 230M 4919M 136 sleeping ssh-agent : K 280K 2312K 42M 2411M 136 sleeping Preview : M 54M 46M 55M 2781M 136 sleeping Microsoft AU : K 1400K 2108K 49M 891M 136 sleeping Microsoft Ex : M 95M 58M 88M 1128M 136 sleeping Firewall : K 244K 1304K 10M 2379M 136 sleeping Terminal : M 39M 35M 65M 2752M 136 sleeping db_daemon : K 2316K 2848K 18M 589M 1 sleeping gconfd : K 2468K 2236K 18M 589M 1 sleeping VMware Fusio : K 18M 3992K 50M 911M 136 sleeping

43 Network Activity

44 netstat

45 perfmon, control panel

46 sysinternals

47 Kernel Resources

48 sar

49 perfmon, sysinternals

50 Common Use Cases CPU Utilization Memory Utilization Disk Space Disk Activity Disk Capacity Progress Temp Files Runaway Processes System Calls Network Activity Kernel Resources


Download ppt "OS * Tools for Monitoring Progress Applications * Including Windows even though Gus says that I am lying ;)"

Similar presentations


Ads by Google