Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
JEAN-PAUL MARTIN
May 2015
Agenda
What is ASEMON
Use cases of ASEMON
Features for SAP ASE
Installation of ASEMON
Public
What is ASEMON
Public
ASEMON
What is Asemon
ASEMON is a performance monitoring tool
ASEMON is developed and maintained by SAP Principal Consultant JeanPaul Martin (jean-paul.martin@sap.com)
ASEMON helps to monitor the activity of various SAP database solutions
like: SAP ASE, SAP IQ, SAP SRS and Replication Agent for ORACLE
Two components
ASEMON_LOGGER :
JAVA based program, collects the activity of the monitored server and records it within a
repository
ASEMON_REPORT :
It is the HTML based GUI of ASEMON
Public
Public
Public
Version
Counters interfaces
SAP ASE
MDA interface
SAP IQ
SAP SRS
15.x
RAX counters
Public
Public
Public
Public
Public
Engines breakout
Activity
summary
CPU utilization
Public
Cache
Activity
Disk
Activity
Network
Activity
Public
User
connections
Active
User
connections
Procedure
cache
Activity
Public
Stored
Procedures
throughput
Procedure
cache
module
breakout
Lock
usage
Public
Procedure
cache
Modules
Statistics
Lock
situation
Analysis
Which table
was
blocked?
Public
Transaction
Log contention
Replication
Agent Activity
Public
Objects statistics
Cached objects
Process activity
Locking situations
Deadlocks situations
Fragmentation
Sp_sysmon
Spinlocks
Limit results
as n rows
Cumultative
CPU
consumption
Login time of
the session
Cumultative
Logical IO
consumption
Session ID
Cumultative
Disk IO
consumption
Public
User name
Lock state:
Blocking or
Blocked
Timestamp of
the blocking
situation
Database of the
locked object
Blocking
duration
in
second
Name of the
locked object
User name
Public
Session ID
Number of
Forwarded rows
Space utilization
Database
name
Number of
Deleted rows
Large IO
efficiency
Table name
Index name
Data page
cluster ratio
Index page
cluster ratio
Public
Locking
scheme
On the right :
avgCPUTime
sumCPUTime
avgLogicalReads
sumLogicalReads
AvgEexcTime
SumExecTime
avgPhysicalReads
sumPhysicalReads
Stored procedure
Nb. Of executions
Statement in stmt
cache
Public
Drill down
Public
Parameters (first
exec and value
when plan
captured)
Statement statistics
Public
Public
Unique feature of ASEMON:
ASEMON is able to generate
sp_sysmon output after the event
%
Spinlock
contention
Spinlock
name
Number of
spins
Spins per
waits ratio
Spinlock
grabs
Spinlock
waits
Public
Session ID
Duration of the
transaction
Public
Device name
Physical Reads
Drill down
To drill down for a specific device, just click on its row
Public
Throughput for
Reads, APF Reads,
Writes
operations
Service Time
Average
Device
Contention
%
Public
Public
Public
Observation
Timeframe
Export result
set as an
Excel
spreadsheet
Focus on
20 first
rows
Logical
I/Os
Physical
I/Os
name
Database
name
Table
name
Index
ID
Index
Drill down
To drill down for a specific object, just click on its row, for example MSEG table.
Public
Logical IOs
Throughput
DATA + INDEX
DML operations
Throughput
Physical IOs
Throughput
Here you have the drill down information for table MSEG and its indexes.
Public
Physical IOs
For index #2
Physical IOs
For index #3
Physical IOs
For index #4
Here you have the drill down information for table MSEG and its indexes.
Public
Start time
Of the
statement
Elapsed
Application
Statement
name
line
Physical IOs
time
in second
Client
CPU Time
hostname
Session
ID
Procedure
name or
Statement
name
Logical IOs
Wait Time
(disk IO,
lock)
Plan
available ?
At the bottom of the page, you will find the statements related to the current table
Drill down
To drill down for a specific statement, just click on its row.
Public
Elapsed time
[]
Start Time
Logical Reads
[]
Physical Reads
Wait Time
Cpu Time
Table information
Statement text
Table information
Statement text
SQL Plan
Public
Logical Reads
In second
CPU Time
Duration
Name
Wait Time
Plan
available ?
Application
Physical
Reads
Drill down
Public
[]
Logical Reads
Elapsed time
[]
Start Time
Physical Reads
Wait Time
Cpu Time
Table information
Statement text
Table information
Statement text
Of the statement
Argument values
Runtime metrics
SQL Plan
SQL Plan
Runtime metrics
Installation
Public
Download ASEMON
ASEMON is available at: http://sourceforge.net/projects/asemon/
Current version is ASEMON 2.7.19 (05 may 2015)
Download both components:
ASEMON_LOGGER: asemon_logger_V2.7.19.tgz
ASEMON_REPORT:
asemon_report_V2.7.19.zip
or
Windows only - bundle of Apache/PHP/ASEMON_REPORT/OpenClient:
AsemonReportSRV_V2.7.19.zip
Public
Setting up ASEMON_LOGGER
Create a database for archiving the metrics
Extract the ASEMON_LOGGER distribution
(asemon_logger_V2.7.19.tgz)
Fill $SYBASE/interfaces file of the ASEMON_LOGGER host with
archive dataserver and monitored dataserver
Archive dataserver
Monitored dataserver
Public
Setting up ASEMON_LOGGER
Create a XML configuration file. You can duplicate
sampleConfig.XML template
Fill it the XML configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<Config>
[ ]
<ArchiveSrv>
<name> ASEMON</name>
<user> sapsa </user>
<useKerberos> NO </useKerberos>
<database> asemon </database>
<charset> </charset>
<GranteeList> </GranteeList>
<poolsize> 1 </poolsize>
<packet_size> </packet_size> <!-- not mandatory. If defined, overrides default network packet size of the archive server -->
<useLongSrvNames> NO </useLongSrvNames> <!-- Put YES here if server names have more than 20 chars and archive server version is V15 or
greater -->
</ArchiveSrv>
<MonitoredSrv>
<SRV>
<name> PRODUCTION</name>
<user> sapsa </user>
<useKerberos> NO </useKerberos>
<charset> </charset>
<packet_size> </packet_size> <!-- not mandatory. If defined, overrides default network packet size of the monitored server -->
<srvDescriptor> ASE </srvDescriptor>
<purgearchive daysToKeep="90" deleteSleep="100" />
</SRV>
</MonitoredSrv>
Public
Running ASEMON_LOGGER
$ ./asemon_logger.sh -c ./PRODUCTIONconfig_file.xml
Run ASEMON_LOGGER to start the
collection and the archiving of the
metrics Mention the .XML file
2015/02/19 09:54:24.932 main - Srv found in interfaces or SQL.INI file. Host=production_host Port=4901
2015/02/19 09:54:25.028 main - Time difference (ms) between ASE and asemon_logger (positive when ASE is in advance) : 69422
2015/02/19 09:54:25.207 PRODUCTION_AmStats
- Start thread.
- Start thread.
- MonSQL BootID = 6
ASEMON_LOGGER is secure. The first time it boots, it will prompt for password of archive
dataserver login and the monitored server login. Then ASEMON_LOGGER will stored them
encrypted.
Public
Setting up ASEMON_LOGGER
Enable Monitoring on ASE via sp_configure
"Monitoring, following required:
'enable monitoring' = 1
http
://sourceforge.net/p/asemon/wiki/Asemon%20logger%
20installation
Public
Setting up ASEMON_REPORT
Easiest way is to run ASEMON_REPORT on Windows
Extract the ASEMON_REPORT distribution
AsemonReportSRV_V2.7.19.zip on C:\AsemonReportSRV
This distribution contains an embedded Apache HTTP server
Update C:\AsemonReportSRV\SYBASE\INI\SQL.INI with the name
of the archive server
Archive dataserver
Public
Run ASEMON_REPORT
Update the setup.bat (if needed)
Execute setup.bat
Run ASEMON_REPORT: startApache.bat :
Public
Run ASEMON_REPORT
Open a browser, connect to ASEMON URL
ASEMON URL
Monitored dataserver
Archive dataserver
Archive database
Public