wste 03112010 wmqv7administrationtroubleshootingmadeeasy shah
TRANSCRIPT
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 1/35
IBM Software Group
®
WebSphere® Support Technical Exchange
WebSphere Message Broker V7.0 Administration and Troubleshooting Made Easy
Amar Shah Advisory Software Engineer [email protected]
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 2/35
IBM Software Group
WebSphere® Support Technical Exchange 2 of 35
Agenda
Architectural and Conceptual changes Configuration Manager Removal overview
Database removal overview
Admin Security
Administration using Message Broker Explorer (MBX)
Problem determination
Summary
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 3/35
IBM Software Group
WebSphere® Support Technical Exchange 3 of 35
Configuration Manager Removal overview
WebSphere Message Broker (WMB) V7 does not contain a
Configuration Manager
Brokers become responsible for deployment, management and
enforcement of administrative security
Existing tools administer each broker directly
More information on what’s happening
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 4/35
IBM Software Group
WebSphere® Support Technical Exchange 4 of 35
Broker’s Interaction with Tools
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 5/35
IBM Software Group
WebSphere® Support Technical Exchange 5 of 35
Configuration Manager Proxy API Exerciser Changes New actions
“Connect to Broker” option
View menu (Basic/Advanced/Everything)Show BAR files under execution
group; view and re-deploy them
Control service trace for execution
group and message flow
Removed all pub/sub administrationoptions, including topology
Added nodes, BAR files, message flowdependencies and icons to tree
Added Administration Queue
Added Configurable Services
Right-click now uses sub-menus to groupsimilar tasks
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 6/35
IBM Software Group
WebSphere® Support Technical Exchange 6 of 35
Managing Configurable Services
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 7/35
IBM Software Group
WebSphere® Support Technical Exchange 7 of 35
Administering Message Flows
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 8/35
IBM Software Group
WebSphere® Support Technical Exchange 8 of 35
Compatibility with Existing CMP Applications
Benefit from direct broker connections without having to change existing applications
You can use your V6.x CMP code to connect to a broker:
ConfigManagerConnectionParameters cmcp =
new MQConfigManagerConnectionParameters("localhost", 1414, "QMGR");
ConfigManagerProxy cmp = ConfigManagerProxy.getInstance(cmcp);
TopologyProxy t = cmp.getTopology();
BrokerProxy b = t.getBrokerByName(“BROKER”);
In this case, the broker will pretend to be a Configuration Manager and return sensibleinformation that the existing application might expect
You will receive deprecation warnings when compiling.
We recommend that you use v7 APIs where possible.
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 9/35
IBM Software Group
WebSphere® Support Technical Exchange 9 of 35
Admin Security Setup
WMBV7
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 10/35
IBM Software Group
WebSphere® Support Technical Exchange 10 of 35
Mqsicreatebroker MB7BROKER –q MB7QMGR –s active
Simplified administrative security in WMB V7 allows 3 levels of authorisationfor administrative actions:
Reading
Writing
Executing
On two object types:
Broker
Execution Group
Administrative Security is not enabled by default
Access controlled using MQ queues on the broker’s queue manager
Administrative Security
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 11/35
IBM Software Group
WebSphere® Support Technical Exchange 11 of 35
Actions Vs Authorizations
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 12/35
IBM Software Group
WebSphere® Support Technical Exchange 12 of 35
Database Removal Overview
WMB V7 does not use a system database
Internally managed store holds broker’s configuration
Backup and restore commands for disaster recovery
User database access unaffected
WMB only uses ODBC/JDBC if you want to access data from within
your message flows
WMB v7 does not ship with a DBMS
DBInstanceMgr removed.
A key feature to improving the simplicity of Message Broker.
System
Database
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 13/35
IBM Software Group
WebSphere® Support Technical Exchange 13 of 35
The broker's configuration (v7)
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 14/35
IBM Software Group
WebSphere® Support Technical Exchange 14 of 35
Tables moved to the Filesystem
BROKERAA
BROKERAAEG
BROKERRESOURCES
BRMPHYSICALRES
BRMRTDINFO
BRMWFDINFO
mqsibrowse can be used to view the contents of the tables still.
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 15/35
IBM Software Group
WebSphere® Support Technical Exchange 15 of 35
Command Changes – Flags
Several flags are now ignored in WMB v7
mqsicreatebroker –u dataSourceUserId –p dataSourcePassword –n
dataSourceName
mqsichangebroker –p dataSourcePassword
mqsicreatebroker -3 (z/OS only)
To set default userid and password for user databases
mqsisetdbparms BROKER –n dsn::DSN -u USERID –p PASS
mqsisetdbparms BROKER –n jdbc::JDBC -u USERID –p PASS
On Unix®/Linux® –i and –a parameters (system userid and password parameters are
no longer required.
On Windows® ‘LocalSystem’ can be used as the system userid and a dummy
password.
N.B. mqsisetdbparms no longer requires a broker restart!
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 16/35
IBM Software Group
WebSphere® Support Technical Exchange 16 of 35
Default DB access on Windows
When accessing a user database, the following logic is used to find the connecting userid andpassword.
ODBC values in order of precedence:
mqsisetdbparms specific DSN
mqsisetdbparms default DSN (dsn::DSN)
System userid and password
JDBC values in order of precedence:
mqsisetdbparms specific JDBC
mqsisetdbparms default JDBC (jdbc::JDBC)
System userid and password
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 17/35
IBM Software Group
WebSphere® Support Technical Exchange 17 of 35
Default DB access on Unix and Linux
When accessing a user database, the following logic is used to find the connecting useridand password.
ODBC values in order of precedence:
mqsisetdbparms specific DSN
mqsisetdbparms default DSN (dsn::DSN)
UserId=“mqsiUser ”, Password=“********”
JDBC values in order of precedence:
mqsisetdbparms specific JDBC
mqsisetdbparms default JDBC (jdbc::JDBC)
UserId=“mqsiUser ”, Password=“********”
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 18/35
IBM Software Group
WebSphere® Support Technical Exchange 18 of 35
Backup and Restore
New commands to backup and restore a broker’s configuration
Backs up configuration state from the filesystem
Internal Configuration Store
Registry Artefacts deployed from BARs (not UDNs)
Shared Configuration
Online backups supported
No backup to be taken while the broker is processing configuration changes and deployments
Used for disaster recovery scenarios only
• Operational state (e.g. from queues) not saved
mqsibackupbroker BROKERNAME –d dirName [-a archiveName]
mqsirestorebroker BROKERNAME –d dirName –a archiveName [-c]
Broker
Broker QMgr
File system
Backup
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 19/35
IBM Software Group
WebSphere® Support Technical Exchange 19 of 35
What is Message Broker Explorer (MBX)?
MBX is an Eclipse plugin to WMQExplorer v7.0.1.0 or above.
It can run on Windows and Linux.
It is installed as an “eclipse extension” to WMQExplorer by using an Install
Anywhere standalone installer.
Windows and Linux packages produced from same config file• Install.exe and install.bin
InstallAnywhere packages can be silently, console or GUI installed.
WMQExplorer plugins are never polluted.
IBM S f G
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 20/35
IBM Software Group
WebSphere® Support Technical Exchange 20 of 35
What does MBX provide? MBX provides a mechanism for Administering WebSphere Message Brokers.
It allows a Broker Administration User to do the following:
View local and remote Brokers in the WMQExplorer (automatically discovers
local components)
View Execution groups and Flows running on the Brokers
Create and Delete local Brokers
Starting and Stopping local Brokers
Deploying of BAR files to multiple execution groups
Starting and Stopping service trace on execution groups and flows
Enable Broker Tooling, Administration API and MQClient Traces
Broker Accounting and Statistics Charting
DataPower Security Wizard Policy Sets & Security Profiles
Much more…
IBM S ft G
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 21/35
IBM Software Group
WebSphere® Support Technical Exchange 21 of 35
MBX showing Brokers, Broker Archives & Stats View
IBM S ft G
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 22/35
IBM Software Group
WebSphere® Support Technical Exchange 22 of 35
MBX showing various artifacts
IBM S ft G
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 23/35
IBM Software Group
WebSphere® Support Technical Exchange 23 of 35
Selection of Deploy Mechanisms
Drag and Drop BAR’s from Filesystem (1 click)
Drag and Drop BAR’s from Message Broker Toolkit Resource Perspective to
Execution Group in Message Broker Explorer (1 click)
Drag and Drop BAR’s from within the Broker Resources in Message Broker
Explorer to Execution Groups
Use Deploy menu from Execution Group to deploy several BARs From FileSystem
From Message Broker Explorer workspace
Use BAR menu to deploy a BAR to a group of Execution Groups
Simultaneous deploys of a single BAR quickly
Use BAR content page to open the BAR Deploy Wizard and then double click to
deploy a BAR. (2 click)
+ many more combinations!
IBM S ft G
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 24/35
IBM Software Group
WebSphere® Support Technical Exchange 24 of 35
Administration Log (change history)
More useful messages to the administrator
A move away from BIP4040/BIP2056 and towardsfull administrative audit capability
Persistence option in MBX
See changes by all users connected to the broker
Displayed automatically in MBX
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 25/35
IBM Software Group
WebSphere® Support Technical Exchange 25 of 35
Configurable Services exposed! You can create/ delete/ view and edit Configurable Services on your broker
Using the Configurable Services Wizard you can base a Configurable Service on onealready defined on the broker
You can import and export Configurable Services f iles to the broker from other brokers
Also supports Drag and Drop onto Configurable Services directory between
brokers
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 26/35
IBM Software Group
WebSphere® Support Technical Exchange 26 of 35
Administration Queue
What is the broker doing?
What administration requests are
outstanding?
Allows work items not yet startedto be cancelled.
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 27/35
IBM Software Group
WebSphere® Support Technical Exchange 27 of 35
WMB V7 Admin - Benefits
The broker environment is lot easier to manage One view of the world
More information returned to tools
Improved connect and deploy times
Long-standing niggles have been eliminated. V7 has:
One-step broker creation (i.e. no CM association step) No service user ID requirement on non-Windows platforms
No default execution groups (i.e. to host pub/sub)
No “Deployment already in progress” messages
No CM/Broker Synchronization problems• Cancel Deployment
• Performance
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 28/35
IBM Software Group
WebSphere® Support Technical Exchange 28 of 35
Problem Determination - MBX
There are 4 logs which are constantly written to. These are allfound in the workspace .metadata/ directory.
<workspace>/.metadata/.log
<workspace>/.metadata/BrokerExplorer.log
<workspace>/.metadata/DefaultConfigurationWizard.log
<workspace>/.metadata/CommandAssistantWizard.log
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 29/35
IBM Software Group
WebSphere® Support Technical Exchange 29 of 35
Problem Determination - MBX The .log file is Eclipses’ main error log file and uncaught exceptions.
The other 3 logs are MBX specific.
BrokerExplorer.log
• Is constantly written to in an Errors and Warnings capacity.This is overwritten at every MBX startup and a backup logmade called BrokerExplorer.log.bak
DefaultConfigurationWizard.log
• Contains the output from the running of the Default Configwizard.
CommandAssistantWizard.log
• Contains all actions instigated by the MBX plugin such asmqsistart, mqsistop, mqsicreatebroker etc…
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 30/35
IBM Software Group
WebSphere® Support Technical Exchange 30 of 35
Problem Determination using Resource Statistics – JVM A JVM has two memory areas, Heap and Non Heap, the following properties are reported
InitialMemoryInMBThe initial amount of memory (in megabytes) that the Java™ virtual machine requests
from the operating system for memory management during startup.
Its value may be undefined which is indicated by a value of -1.
UsedMemoryInMBThe amount of memory currently used (in megabytes).
CommittedMemoryInMB
The amount of memory (in megabytes) that is guaranteed to be available for use by the
Java virtual machine.
MaxMemoryInMB
The maximum amount of memory (in megabytes) that can be used for memory
management.
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 31/35
IBM Software Group
WebSphere® Support Technical Exchange 31 of 35
JVM Stats – Interpretation
How much memory is the JVM using?
CommittedMemoryInMB - how much memory is currently allocated to the JVM
MaxMemoryInMB - how big this may grow.
How often am I doing garbage collection?
CumulativeNumberOfGCCollections – Frequent increase in this indicates the garbagecollection (GC) may be excessive. Excessive GC can impact performance.
CumulativeGCTimeInSeconds – If this is increasing at more than 2 seconds per 20 second
stats interval then consider increasing the JVM Max Heap size
Inspect any Java Plugin nodes or Java Compute nodes in your message flows to ensure that youare not creating and deleting many objects that could be reused.
Should I change my min or max heap size?
If your CumulativeGCTimeInSeconds is increasing by more than 2 seconds per stats intervalthen look to increase the Max Heap Size to reduce this.
If your UsedMemoryInMB is never close to your InitialMemoryInMB then this indicates thatyou are pre-allocating more memory for the heap than necessary and could reduce the JVM MinHeap Size value for you execution group to a value closer to the UsedMemoryInMB value.
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 32/35
IBM Software Group
WebSphere® Support Technical Exchange 32 of 35
Summary
Radical simplification of operational model
Configuration Manager has been removed.
Broker does not need a system Database .
Administration Security for MB managed by MQ.
MBX gives Finer control over the Broker and Qmanager
operations.
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 33/35
IBM Software Group
WebSphere® Support Technical Exchange 33 of 35
Additional WebSphere Product Resources
Discover the latest trends in WebSphere Technology and implementation, participate intechnically-focused briefings, webcasts and podcasts at:http://www.ibm.com/developerworks/websphere/community/
Learn about other upcoming webcasts, conferences and events:http://www.ibm.com/software/websphere/events_1.html
Join the Global WebSphere User Group Community:http://www.websphere.org
Access key product show-me demos and tutorials by visiting IBM® Education Assistant:http://www.ibm.com/software/info/education/assistant
View a webcast replay with step-by-step instructions for using the Service Request (SR)tool for submitting problems electronically:
http://www.ibm.com/software/websphere/support/d2w.html
Sign up to receive weekly technical My Notifications emails:http://www.ibm.com/software/support/einfo.html
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 34/35
IBM Software Group
WebSphere® Support Technical Exchange 34 of 35
We Want to Hear From You!
Tell us about what you want to learn
Suggestions for future topicsImprovements and comments about our webcasts
We want to hear everything you have to say!
Please send your suggestions and comments to:[email protected]
IBM Software Group
7/28/2019 WSTE 03112010 WMQV7AdministrationTroubleshootingMadeEasy Shah
http://slidepdf.com/reader/full/wste-03112010-wmqv7administrationtroubleshootingmadeeasy-shah 35/35
IBM Software Group
WebSphere® Support Technical Exchange 35 of 35
Questions and Answers