Slide 1

Slide 1 text

How to be a lion tamer (or keeping WebSphere under control with free tools) Sharon Bellamy James & Wannes Rams

Slide 2

Slide 2 text

Sharon Bellamy James • IBM WebSphere since 1999 & Connections since 2 / 2008 • Many years experience with migrations, installations, administration, integration, customization & DOCUMENTATION • Tiny bit of a Star wars & Disney fan • Charity fundraising Cosplayer/Costumer • Part of the team that brings you ICON UK 2

Slide 3

Slide 3 text

Wannes Rams 3 • Domino since 2000, Sametime since version 6.5.1 Connections since 2.01 • Many years experience with architecture, migrations, installations, integration, customization • Owner at Ramsit • Hard core (average) table tennis player • Social Connections User group board member

Slide 4

Slide 4 text

Overview • Nagios • WebSphere PTT • Nmon Visualizer

Slide 5

Slide 5 text

• https://www.nagios.com • Nagios Core - The open source industry standard in IT infrastructure monitoring and alerting • Download Core: https://www.nagios.org/downloads/nagios-core/ • https://exchange.nagios.org – for 3rd party plugins and add ons • Nagiosql (https://sourceforge.net/projects/nagiosql/ www.nagiosql.org ) - GUI configuration interface • Front ends – Looking glass - https://exchange.nagios.org/directory/Addons/Frontends-%28GUIs- and-CLIs%29/Web-Interfaces/Nagios-Looking-Glass/details

Slide 6

Slide 6 text

• IS FREE !!! – well open source • Linux based – runs on RHEL or CENTOS • Super easy to set up – very well DOCUMENTED J • Features: Monitoring - System metrics, network protocols, applications, services, servers, and network infrastructure Alerting - Nagios sends alerts when critical infrastructure components fail and recover. Alerts can be delivered via email, SMS, or custom script. Reporting - Provide a historical record of outages, events, notifications, and alert response for later review. Availability reports help ensure your SLAs are being met.

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Nagios & Websphere • Basic WAS monitoring • Up or Down check on soap port of each server • Up or Down of host machine – via a ping or host up command • Plugins: https://github.com/yannlambret/websphere-nagios - JVM heap monitoring, Server thread pools monitoring - including hung thread detection, JTA transactions monitoring,JDBC datasources monitoring, JMS connection factories monitoring, JMS 1.0 listeners status monitoring, SIB queues depth monitoring, HTTP sessions monitoring, Clustering support, Administrative security support https://github.com/dvarounis/perfservmon - Perfservmon is a Nagios Plugin for IBM Websphere Application Server(WAS) using the perfservlet web application that comes with each WAS installation. Can monitor - Heap Usage, Web Container Thread Pool Usage, ORB Thread Pool Usage, JDBC Connection Pool Usage, Live HTTP Sessions, JMS SIB Destination(Queue, Topic) Metrics

Slide 10

Slide 10 text

Nagios & HTTP • Basic HTTP monitoring • Ports up / down on 80, 443 and 8008 • Can monitor for specific codes 500 / 404 etc. • WAS plugins in the previous slides also monitor HTTP sessions.

Slide 11

Slide 11 text

Nagios & DB • Basic up and down check • Lots of plugins for monitoring • https://github.com/angoca/monitor-db2-with-nagios - bunch of really useful stuff - check_hadr_status - works with V10.5 - check_tablespace_size – 9.7 and up - check_db2diag –9.7 and up - check_instance_up – 9.7 and up - check_instance_memory – 9.7 and up - check_last_backup – 9.7 and up - check_log_consumption – 9.7 and up - check_log_usage – 9.7 and up

Slide 12

Slide 12 text

Performance indicators WebSphere • WebSphere Application Server Performance Tuning Toolkit (PTT) • Free, Eclipse based tool provided by IBM • Yes, it’s free and from IBM and it works J

Slide 13

Slide 13 text

WebSphere Application Server Performance Tuning Toolkit (WAS PTT) • Benefits: • No install on servers • Real time • Rule based • Easy to use interface

Slide 14

Slide 14 text

WAS PTT • Install: • Download, unzip, run… • Configuration

Slide 15

Slide 15 text

Data Collection

Slide 16

Slide 16 text

Visual reports

Slide 17

Slide 17 text

Visual reports

Slide 18

Slide 18 text

Visual reports

Slide 19

Slide 19 text

Visual reports

Slide 20

Slide 20 text

Visual reports

Slide 21

Slide 21 text

Visual reports

Slide 22

Slide 22 text

Visual reports

Slide 23

Slide 23 text

Reports • Ability to run reports (pdf, csv)

Slide 24

Slide 24 text

WAS PTT • Ability to get tuning data (and update them)

Slide 25

Slide 25 text

WAS PTT • Ability to generate: • Thread Dump • Heap Dump • Enable Trace • Show Connection Pool contents • Get Server Logs

Slide 26

Slide 26 text

How to find performance indicators HTTP Server: mod_status • Apache module • HTML Interface: Ex. : http://www.apache.org/server-status

Slide 27

Slide 27 text

How to find performance indicators HTTP Server: mod_status

Slide 28

Slide 28 text

How to find performance indicators HTTP Server: mod_status • Easy to setup in httpd.conf

Slide 29

Slide 29 text

Nmon Visualizer • Easier than the excel file • Open source tool • Developed by IBM to monitor Smartcloud • Apache 2.0 License • nmon files from Linux and AIX, IOStat files, IBM Verbose GC logs, Windows Perfmon & ESXTop csv data and JSON data

Slide 30

Slide 30 text

Nmon Visualizer

Slide 31

Slide 31 text

Nagios & DB2 Monitoring • Each script is individually configurable • Edit the script directly or use GUI config (nagiosQL) • Alerting settings are configured at Nagios level

Slide 32

Slide 32 text

Nagios & DB2 Monitoring • https://github.com/angoca/monitor-db2-with-nagios • check_connection_qty - quantity of connections on the database and the state they are currently in, lockwait, connecting, rollback etc .. • check_database_connection – checks a connection to the DB • check_database_size – set threshold alerts, etc. • check_lock_wait – 10.5 and above – checks lock waits • check_memory_usage - usage memory: total, free, usage • check_open_files – open files per instance

Slide 33

Slide 33 text

References and links • Performance Tuning Toolkit • http://www.ibm.com/developerworks/websphere/downloads/performtuning.ht ml • Mod_status • http://www.tecmint.com/monitor-apache-web-server-load-and-page-statistics/ • Nmon Visualizer • http://nmonvisualizer.github.io/nmonvisualizer/

Slide 34

Slide 34 text

References and links • Nagios • Core Download - https://www.nagios.org/downloads/nagios-core/ • Nagios Exchange - https://exchange.nagios.org • DB2 Plugins - https://github.com/angoca/monitor-db2-with-nagios http://www.dbatodba.com/db2/scripts-db2/nagios-plugins/ • WebSphere Plugins - https://github.com/yannlambret/websphere-nagios https://github.com/dvarounis/perfservmon

Slide 35

Slide 35 text

Any Questions?

Slide 36

Slide 36 text

Thank you http://socialshazza.com dilftechnical @socialshazza http://ramsit.com/blog wannesrams @wannesrams