SlideShare a Scribd company logo
1 of 52
Recipes For the Perfect PI - Simple Ingredients for Complex Requirements SaschaWenninger - Australia Post
Bottom-Up Approach Photo by Gidzy
You’ll Hear About: Basis Adapter Framework Interface Design Questions Key Points to Take Home
30,000 Foot View SAP POS DM SAP PI SAP ERP Routing Mapping SAP SCEM XML XML XML XML Mapping Mapping JMS Queue Mapping Mapping … …
Some Figures… Retail Transactions from 8,000+ terminals in 3,400 stores: 500,000 – 750,000 messages per day Peaks of 45/second into PI, then split by receiver 6 receiving systems, 1-3 receivers per message Message size <10kB Roll-out: January – June 2011
Objectives Near-real time: <15 minutes end to end Scalable to 2,000,000 messages/day and 14 receiver systems Future peaks of 90/second into PI No impact on other critical PI interfaces 	e.g. Parcel Tracking interface moving 2m+ events per day As simple as possible Future-proof (no ccBPM, no ABAP mapping, etc.)
The Solution? Many small steps enabled us to get there.
Key Topic Basis
Basis System Memory Database Stuff Java Server Nodes The JVM Java Heap Space Wily Introscope
System Memory One of the main foundations of the system Needs to accommodate all aspects of the system: Java + ABAP + ICM + DBMS + OS + caching/buffers + other apps Need to avoid swapping to disk at all times – causes huge GC delays!
The Database DB Statistics Without DB stats, our throughput dropped to 1/6th of the normal! ,[object Object],DB Reorgs PI DB tables churn very frequently and fragment after a few weeks ,[object Object],[object Object]
The JVM PI 7.1 and later use SAP’s own JVM SAPJVM 4.1 for PI 7.0 coming soon (Notes 1495160, 1522198) Bug fixes and performance improvements delivered continually Several JVM Upgrades over the past 12 months significantly reduced OOM crashes and Garbage Collection times for our systems. This enables the use of larger heap spaces! Patching via JSPM takes 30 minutes and 1 restart, plus some testing
Java Heap Space More Heap = process larger messages, fewer full GCs, fewer OOMs SAP’s recommendation has historically been 2GB per Java process.  Recently changed to 4GB (for SAP JVM) AusPost has been using 4GB for 9 months now.  Main criteria: Full GCs should take less than 10 seconds.
Java Memory Analysis  This is in SolMan!
Wily Introscope Monitoring for the Java Stack Basic version is free with NetWeaver Java Provides functionality normally accessed via ABAP transactions
Wily Dashboards
More Dashboards
And More…
Tons of Dashboards! …and this is only the free version!
Our PI System PI 7.11 SP5 JVM 5.1 Patch level 59 (64 in test systems) 3 Java server nodes, 4GB heap space each. AIX 6.1 on IBM POWER6, 60GB RAM
Basis ,[object Object]
Database Stuff
Java Server Nodes
The JVM
Java Heap Space
Wily Introscope Many aspects which require special PI-Basis skills!
Key Topic Adapter Framework
Adapter Framework Thread Behaviour Messaging System
Threads Messages are processed using a number of adapter-specific queues. Each queue has its own thread pool.  e.g. for JMS:
Threads Threads are assigned to process messages from their respective pools ,[object Object],[object Object]
Caveat Some Adapters process messages serially!  e.g. JMS: 1 Adapter Thread per Communication Channel reads messages from the JMS queue { 1 JMS Comm Channel 3 Java Server Nodes
Threads in the AAE Adapter Thread picks up a message from the JMS queue, then: Executes Adapter Modules Performs Receiver Determination Persists 1 message per Receiver in Messaging System queue. Confirms message and removes from the JMS queue The longer this takes, the lower throughput will be.
What does this mean?
Sender-Side Performance is Really Important
Implications Throughput depends on Sender Adapter performance Try to avoid adapter modules in Sender adapters.  We achieved a 15% improvement by moving an XSLT mapping from the JMS adapter to the Operation Mapping.
Implications Throughput depends on Receiver Determination The initial “Adapter” thread evaluates conditions and copies the message for each Receiver.  ,[object Object]
DB performance: more Receivers = more I/O,[object Object]
2 Options In our system, each thread can process 10-15 messages/sec In order to consistently process 45 messages/sec from JMS, we need 4-5 concurrent JMS Sender Adapter threads.  Option 1: 5 Java server nodes Option 2: Multiple JMS Communication Channels.
Multiple Comm. Channels We cloned the Integrated Config Object and Sender Comm Channel ,[object Object], Better thread pool utilisation ,[object Object]
More scalableThis is not needed for SOAP since it’s truly parallel. Image Source: http://t.co/ZOBdlH0
Adapter Framework ,[object Object]
Messaging System Increased importance for Integrated Configuration scenarios!
Key Topic Interface Design
Integrated Configuration 	Receiver Determination +	Interface Determination +	Receiver Agreements Integrated Configuration Object Causes an interface to be executed in the Advanced Adapter Engine
Integrated Configuration Message Processing entirely in Java (AAE) Introduced in PI 7.1; more features in 7.11 and 7.3 Improved performance by: Reducing database I/O Eliminating ‘stack jumping’ between ABAP and Java 7-10 times throughput possible Not available for all adapters and scenarios.
Example
Example
Constraints There are a few things you can’t do with Integrated Configuration: IDocs* Multi-Mappings* ccBPMs But this is an Opportunity to be Creative! *features added in PI 7.3
Mapping Programs XSLT Easier to debug and tune Better performance from PI 7.1 onwards Easier to support Consolidate mapping steps ,[object Object],Reuse still possible via XSLT imports.
Communication Channels ABAP Proxies/Enterprise Services  Use SOAP Adapter in XI 3.0 mode JMS Senders  Clone comm. Channels for greater parallelisation Non-SAP Systems  Ensure inbound queuing is available to avoid backlog in PI
Design-Time Governance Don’t Overdo It! Find a balance which facilitates reuse but doesn’t impose too much up-front work. Image Source: http://geekandpoke.typepad.com

More Related Content

What's hot

Sap Process Integration
Sap Process Integration Sap Process Integration
Sap Process Integration Tauhidul Islam
 
SAP Systems Integration by SAP PI (XI)
SAP Systems Integration by SAP PI (XI)SAP Systems Integration by SAP PI (XI)
SAP Systems Integration by SAP PI (XI)alpercelk
 
Sap interface overview
Sap interface overviewSap interface overview
Sap interface overviewgnareshmbacwa
 
AWS Webcast - Running SAP HANA on the AWS Cloud
AWS Webcast - Running SAP HANA on the AWS CloudAWS Webcast - Running SAP HANA on the AWS Cloud
AWS Webcast - Running SAP HANA on the AWS CloudAmazon Web Services
 
Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...
Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...
Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...Safe Software
 
What Does Migrating to S/4HANA Mean for SAP Users?
What Does Migrating to S/4HANA Mean for SAP Users?What Does Migrating to S/4HANA Mean for SAP Users?
What Does Migrating to S/4HANA Mean for SAP Users?Ensono
 
Why IBM Power for SAP by John Hedge
Why IBM Power for SAP by John HedgeWhy IBM Power for SAP by John Hedge
Why IBM Power for SAP by John HedgeJohn R Hedge
 
What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)SAP Technology
 
What's new on SAP HANA Workload Management
What's new on SAP HANA Workload ManagementWhat's new on SAP HANA Workload Management
What's new on SAP HANA Workload ManagementSAP Technology
 
Deep dive session - sap and aws - extend and innovate
Deep dive session - sap and aws - extend and innovateDeep dive session - sap and aws - extend and innovate
Deep dive session - sap and aws - extend and innovateRitesh Toshniwal
 
Sap process integration (pi) exchange infrastructure (xi) certification in...
Sap process integration (pi)  exchange infrastructure (xi)  certification  in...Sap process integration (pi)  exchange infrastructure (xi)  certification  in...
Sap process integration (pi) exchange infrastructure (xi) certification in...magnific5
 
Sap process integration (pi) exchange infrastructure (xi) technicaltraining...
Sap process integration (pi)  exchange infrastructure (xi)  technicaltraining...Sap process integration (pi)  exchange infrastructure (xi)  technicaltraining...
Sap process integration (pi) exchange infrastructure (xi) technicaltraining...magnific5
 
FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...
FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...
FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...Joseph Alaimo Jr
 
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...SAP Technology
 
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)SAP Technology
 
Change management in hybrid landscapes
Change management in hybrid landscapesChange management in hybrid landscapes
Change management in hybrid landscapesChris Kernaghan
 
AzureRS - Sap on azure: Ambientes seguros e Escaláveis
AzureRS - Sap on azure: Ambientes seguros e EscaláveisAzureRS - Sap on azure: Ambientes seguros e Escaláveis
AzureRS - Sap on azure: Ambientes seguros e EscaláveisLucas Chies
 
SAP HANA INFRA - Amazon Web Services - Cloud
SAP HANA INFRA - Amazon Web Services - CloudSAP HANA INFRA - Amazon Web Services - Cloud
SAP HANA INFRA - Amazon Web Services - CloudSandeep Mahindra
 

What's hot (20)

SAP PI and SOA Overview
SAP PI and SOA OverviewSAP PI and SOA Overview
SAP PI and SOA Overview
 
Sap Process Integration
Sap Process Integration Sap Process Integration
Sap Process Integration
 
SAP Systems Integration by SAP PI (XI)
SAP Systems Integration by SAP PI (XI)SAP Systems Integration by SAP PI (XI)
SAP Systems Integration by SAP PI (XI)
 
SAP PI
SAP PISAP PI
SAP PI
 
Sap interface overview
Sap interface overviewSap interface overview
Sap interface overview
 
AWS Webcast - Running SAP HANA on the AWS Cloud
AWS Webcast - Running SAP HANA on the AWS CloudAWS Webcast - Running SAP HANA on the AWS Cloud
AWS Webcast - Running SAP HANA on the AWS Cloud
 
Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...
Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...
Integrating the Enterprise with Event-Driven Messaging – Using FME Server as ...
 
What Does Migrating to S/4HANA Mean for SAP Users?
What Does Migrating to S/4HANA Mean for SAP Users?What Does Migrating to S/4HANA Mean for SAP Users?
What Does Migrating to S/4HANA Mean for SAP Users?
 
Why IBM Power for SAP by John Hedge
Why IBM Power for SAP by John HedgeWhy IBM Power for SAP by John Hedge
Why IBM Power for SAP by John Hedge
 
What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)
 
What's new on SAP HANA Workload Management
What's new on SAP HANA Workload ManagementWhat's new on SAP HANA Workload Management
What's new on SAP HANA Workload Management
 
Deep dive session - sap and aws - extend and innovate
Deep dive session - sap and aws - extend and innovateDeep dive session - sap and aws - extend and innovate
Deep dive session - sap and aws - extend and innovate
 
Sap process integration (pi) exchange infrastructure (xi) certification in...
Sap process integration (pi)  exchange infrastructure (xi)  certification  in...Sap process integration (pi)  exchange infrastructure (xi)  certification  in...
Sap process integration (pi) exchange infrastructure (xi) certification in...
 
Sap process integration (pi) exchange infrastructure (xi) technicaltraining...
Sap process integration (pi)  exchange infrastructure (xi)  technicaltraining...Sap process integration (pi)  exchange infrastructure (xi)  technicaltraining...
Sap process integration (pi) exchange infrastructure (xi) technicaltraining...
 
FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...
FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...
FDMEE Scripting - Cloud and On-Premises - It Ain't Groovy, But It's My Bread ...
 
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
 
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
 
Change management in hybrid landscapes
Change management in hybrid landscapesChange management in hybrid landscapes
Change management in hybrid landscapes
 
AzureRS - Sap on azure: Ambientes seguros e Escaláveis
AzureRS - Sap on azure: Ambientes seguros e EscaláveisAzureRS - Sap on azure: Ambientes seguros e Escaláveis
AzureRS - Sap on azure: Ambientes seguros e Escaláveis
 
SAP HANA INFRA - Amazon Web Services - Cloud
SAP HANA INFRA - Amazon Web Services - CloudSAP HANA INFRA - Amazon Web Services - Cloud
SAP HANA INFRA - Amazon Web Services - Cloud
 

Viewers also liked

The Lesson Learned from Implementation of ERP in Project-Based Holdings
The Lesson Learned from Implementation of ERP in Project-Based HoldingsThe Lesson Learned from Implementation of ERP in Project-Based Holdings
The Lesson Learned from Implementation of ERP in Project-Based HoldingsMASOUD ZAKERMOSHFEGH
 
REST - A Super Quick Intro
REST - A Super Quick IntroREST - A Super Quick Intro
REST - A Super Quick IntroSascha Wenninger
 
SAP TechEd 2010 highlights
SAP TechEd 2010 highlightsSAP TechEd 2010 highlights
SAP TechEd 2010 highlightsSascha Wenninger
 
REST: So What's It All About? (SAP TechEd 2011, MOB107)
REST: So What's It All About? (SAP TechEd 2011, MOB107)REST: So What's It All About? (SAP TechEd 2011, MOB107)
REST: So What's It All About? (SAP TechEd 2011, MOB107)Sascha Wenninger
 
2 Minute Gap Analysis Worksheet
2 Minute Gap Analysis Worksheet  2 Minute Gap Analysis Worksheet
2 Minute Gap Analysis Worksheet guest13df88e8
 
The Checklist for Modern ERP: ERP Made Sexy
The Checklist for Modern ERP: ERP Made SexyThe Checklist for Modern ERP: ERP Made Sexy
The Checklist for Modern ERP: ERP Made SexyBlytheco
 
Erp implementation checklist
Erp implementation checklistErp implementation checklist
Erp implementation checklistMitch Rushing
 
Sap pi overview
Sap pi overviewSap pi overview
Sap pi overviewsmavachee
 
Build your Own Technology Roadmap!
Build your Own Technology Roadmap!Build your Own Technology Roadmap!
Build your Own Technology Roadmap!Sascha Wenninger
 
Case study on erp failures
Case study on erp failuresCase study on erp failures
Case study on erp failuresTarvinder Singh
 
Success and Failure Examples of ERP Implementation
Success and Failure Examples of ERP ImplementationSuccess and Failure Examples of ERP Implementation
Success and Failure Examples of ERP ImplementationSunidhi Kumari
 
ERP Case Study - Failure case - FoxMeyer Case
ERP Case Study - Failure case - FoxMeyer CaseERP Case Study - Failure case - FoxMeyer Case
ERP Case Study - Failure case - FoxMeyer CaseShaunak Sontakke
 

Viewers also liked (14)

The Lesson Learned from Implementation of ERP in Project-Based Holdings
The Lesson Learned from Implementation of ERP in Project-Based HoldingsThe Lesson Learned from Implementation of ERP in Project-Based Holdings
The Lesson Learned from Implementation of ERP in Project-Based Holdings
 
REST - A Super Quick Intro
REST - A Super Quick IntroREST - A Super Quick Intro
REST - A Super Quick Intro
 
SAP TechEd 2010 highlights
SAP TechEd 2010 highlightsSAP TechEd 2010 highlights
SAP TechEd 2010 highlights
 
REST: So What's It All About? (SAP TechEd 2011, MOB107)
REST: So What's It All About? (SAP TechEd 2011, MOB107)REST: So What's It All About? (SAP TechEd 2011, MOB107)
REST: So What's It All About? (SAP TechEd 2011, MOB107)
 
2 Minute Gap Analysis Worksheet
2 Minute Gap Analysis Worksheet  2 Minute Gap Analysis Worksheet
2 Minute Gap Analysis Worksheet
 
The CSV File Strikes Back
The CSV File Strikes BackThe CSV File Strikes Back
The CSV File Strikes Back
 
The Checklist for Modern ERP: ERP Made Sexy
The Checklist for Modern ERP: ERP Made SexyThe Checklist for Modern ERP: ERP Made Sexy
The Checklist for Modern ERP: ERP Made Sexy
 
Erp implementation checklist
Erp implementation checklistErp implementation checklist
Erp implementation checklist
 
Sap pi overview
Sap pi overviewSap pi overview
Sap pi overview
 
ERP Gap Analysis
ERP Gap AnalysisERP Gap Analysis
ERP Gap Analysis
 
Build your Own Technology Roadmap!
Build your Own Technology Roadmap!Build your Own Technology Roadmap!
Build your Own Technology Roadmap!
 
Case study on erp failures
Case study on erp failuresCase study on erp failures
Case study on erp failures
 
Success and Failure Examples of ERP Implementation
Success and Failure Examples of ERP ImplementationSuccess and Failure Examples of ERP Implementation
Success and Failure Examples of ERP Implementation
 
ERP Case Study - Failure case - FoxMeyer Case
ERP Case Study - Failure case - FoxMeyer CaseERP Case Study - Failure case - FoxMeyer Case
ERP Case Study - Failure case - FoxMeyer Case
 

Similar to Lessons Learnt Implementing High-Performance Integration using SAP PI

The Art of Message Queues - TEKX
The Art of Message Queues - TEKXThe Art of Message Queues - TEKX
The Art of Message Queues - TEKXMike Willbanks
 
Introduction to requirement of microservices
Introduction to requirement of microservicesIntroduction to requirement of microservices
Introduction to requirement of microservicesAvik Das
 
Low latency in java 8 v5
Low latency in java 8 v5Low latency in java 8 v5
Low latency in java 8 v5Peter Lawrey
 
Tuning and development with SIP Servlets on Mobicents
Tuning and development with SIP Servlets on MobicentsTuning and development with SIP Servlets on Mobicents
Tuning and development with SIP Servlets on MobicentsJean Deruelle
 
Scaling Streaming - Concepts, Research, Goals
Scaling Streaming - Concepts, Research, GoalsScaling Streaming - Concepts, Research, Goals
Scaling Streaming - Concepts, Research, Goalskamaelian
 
Usemon; Building The Big Brother Of The Java Virtual Machinve
Usemon; Building The Big Brother Of The Java Virtual MachinveUsemon; Building The Big Brother Of The Java Virtual Machinve
Usemon; Building The Big Brother Of The Java Virtual MachinvePaul René Jørgensen
 
ChakraCore - JSConf Last Call
ChakraCore - JSConf Last CallChakraCore - JSConf Last Call
ChakraCore - JSConf Last CallGaurav Seth
 
PPT slides
PPT slidesPPT slides
PPT slidesVideoguy
 
Troubleshooting SQL Server
Troubleshooting SQL ServerTroubleshooting SQL Server
Troubleshooting SQL ServerStephen Rose
 
How to scale your web app
How to scale your web appHow to scale your web app
How to scale your web appGeorgio_1999
 
Maximize Messaging and Performance and Lowering Infrastructure Footprint
Maximize Messaging and Performance and Lowering Infrastructure FootprintMaximize Messaging and Performance and Lowering Infrastructure Footprint
Maximize Messaging and Performance and Lowering Infrastructure FootprintWSO2
 
Impact2014 session # 1523 performance optimization using ibm java on z and w...
Impact2014  session # 1523 performance optimization using ibm java on z and w...Impact2014  session # 1523 performance optimization using ibm java on z and w...
Impact2014 session # 1523 performance optimization using ibm java on z and w...Elena Nanos
 
Optimizing your java applications for multi core hardware
Optimizing your java applications for multi core hardwareOptimizing your java applications for multi core hardware
Optimizing your java applications for multi core hardwareIndicThreads
 
Xen App Platinum For Service Providers (072209)
Xen App Platinum For Service Providers (072209)Xen App Platinum For Service Providers (072209)
Xen App Platinum For Service Providers (072209)Scott Swanburg
 
Handling Data in Mega Scale Systems
Handling Data in Mega Scale SystemsHandling Data in Mega Scale Systems
Handling Data in Mega Scale SystemsDirecti Group
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningScott Jenner
 

Similar to Lessons Learnt Implementing High-Performance Integration using SAP PI (20)

The Art of Message Queues - TEKX
The Art of Message Queues - TEKXThe Art of Message Queues - TEKX
The Art of Message Queues - TEKX
 
How To Scale v2
How To Scale v2How To Scale v2
How To Scale v2
 
Introduction to requirement of microservices
Introduction to requirement of microservicesIntroduction to requirement of microservices
Introduction to requirement of microservices
 
Low latency in java 8 v5
Low latency in java 8 v5Low latency in java 8 v5
Low latency in java 8 v5
 
Tuning and development with SIP Servlets on Mobicents
Tuning and development with SIP Servlets on MobicentsTuning and development with SIP Servlets on Mobicents
Tuning and development with SIP Servlets on Mobicents
 
Scaling Streaming - Concepts, Research, Goals
Scaling Streaming - Concepts, Research, GoalsScaling Streaming - Concepts, Research, Goals
Scaling Streaming - Concepts, Research, Goals
 
Usemon; Building The Big Brother Of The Java Virtual Machinve
Usemon; Building The Big Brother Of The Java Virtual MachinveUsemon; Building The Big Brother Of The Java Virtual Machinve
Usemon; Building The Big Brother Of The Java Virtual Machinve
 
ChakraCore - JSConf Last Call
ChakraCore - JSConf Last CallChakraCore - JSConf Last Call
ChakraCore - JSConf Last Call
 
PPT slides
PPT slidesPPT slides
PPT slides
 
Troubleshooting SQL Server
Troubleshooting SQL ServerTroubleshooting SQL Server
Troubleshooting SQL Server
 
How to scale your web app
How to scale your web appHow to scale your web app
How to scale your web app
 
Maximize Messaging and Performance and Lowering Infrastructure Footprint
Maximize Messaging and Performance and Lowering Infrastructure FootprintMaximize Messaging and Performance and Lowering Infrastructure Footprint
Maximize Messaging and Performance and Lowering Infrastructure Footprint
 
Impact2014 session # 1523 performance optimization using ibm java on z and w...
Impact2014  session # 1523 performance optimization using ibm java on z and w...Impact2014  session # 1523 performance optimization using ibm java on z and w...
Impact2014 session # 1523 performance optimization using ibm java on z and w...
 
Velocity 2010 - ATS
Velocity 2010 - ATSVelocity 2010 - ATS
Velocity 2010 - ATS
 
Optimizing your java applications for multi core hardware
Optimizing your java applications for multi core hardwareOptimizing your java applications for multi core hardware
Optimizing your java applications for multi core hardware
 
Riding with camel
Riding with camelRiding with camel
Riding with camel
 
Xen App Platinum For Service Providers (072209)
Xen App Platinum For Service Providers (072209)Xen App Platinum For Service Providers (072209)
Xen App Platinum For Service Providers (072209)
 
Handling Data in Mega Scale Systems
Handling Data in Mega Scale SystemsHandling Data in Mega Scale Systems
Handling Data in Mega Scale Systems
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance Tuning
 
Fastest Servlets in the West
Fastest Servlets in the WestFastest Servlets in the West
Fastest Servlets in the West
 

More from Sascha Wenninger

A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...Sascha Wenninger
 
A Look at the Performance of SAP's Modern UIs
A Look at the Performance of SAP's Modern UIsA Look at the Performance of SAP's Modern UIs
A Look at the Performance of SAP's Modern UIsSascha Wenninger
 
Recipes for the Perfect PI v2.0
Recipes for the Perfect PI v2.0Recipes for the Perfect PI v2.0
Recipes for the Perfect PI v2.0Sascha Wenninger
 
Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)
Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)
Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)Sascha Wenninger
 
REST - What's It All About? (SAP TechEd 2012, CD110)
REST - What's It All About? (SAP TechEd 2012, CD110)REST - What's It All About? (SAP TechEd 2012, CD110)
REST - What's It All About? (SAP TechEd 2012, CD110)Sascha Wenninger
 

More from Sascha Wenninger (6)

HTTP/2 and SAP Fiori
HTTP/2 and SAP FioriHTTP/2 and SAP Fiori
HTTP/2 and SAP Fiori
 
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
 
A Look at the Performance of SAP's Modern UIs
A Look at the Performance of SAP's Modern UIsA Look at the Performance of SAP's Modern UIs
A Look at the Performance of SAP's Modern UIs
 
Recipes for the Perfect PI v2.0
Recipes for the Perfect PI v2.0Recipes for the Perfect PI v2.0
Recipes for the Perfect PI v2.0
 
Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)
Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)
Navigating SAP’s Integration Options (Mastering SAP Technologies 2013)
 
REST - What's It All About? (SAP TechEd 2012, CD110)
REST - What's It All About? (SAP TechEd 2012, CD110)REST - What's It All About? (SAP TechEd 2012, CD110)
REST - What's It All About? (SAP TechEd 2012, CD110)
 

Recently uploaded

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Recently uploaded (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Lessons Learnt Implementing High-Performance Integration using SAP PI

  • 1.
  • 2. Recipes For the Perfect PI - Simple Ingredients for Complex Requirements SaschaWenninger - Australia Post
  • 4. You’ll Hear About: Basis Adapter Framework Interface Design Questions Key Points to Take Home
  • 5. 30,000 Foot View SAP POS DM SAP PI SAP ERP Routing Mapping SAP SCEM XML XML XML XML Mapping Mapping JMS Queue Mapping Mapping … …
  • 6. Some Figures… Retail Transactions from 8,000+ terminals in 3,400 stores: 500,000 – 750,000 messages per day Peaks of 45/second into PI, then split by receiver 6 receiving systems, 1-3 receivers per message Message size <10kB Roll-out: January – June 2011
  • 7. Objectives Near-real time: <15 minutes end to end Scalable to 2,000,000 messages/day and 14 receiver systems Future peaks of 90/second into PI No impact on other critical PI interfaces e.g. Parcel Tracking interface moving 2m+ events per day As simple as possible Future-proof (no ccBPM, no ABAP mapping, etc.)
  • 8. The Solution? Many small steps enabled us to get there.
  • 10. Basis System Memory Database Stuff Java Server Nodes The JVM Java Heap Space Wily Introscope
  • 11. System Memory One of the main foundations of the system Needs to accommodate all aspects of the system: Java + ABAP + ICM + DBMS + OS + caching/buffers + other apps Need to avoid swapping to disk at all times – causes huge GC delays!
  • 12.
  • 13. The JVM PI 7.1 and later use SAP’s own JVM SAPJVM 4.1 for PI 7.0 coming soon (Notes 1495160, 1522198) Bug fixes and performance improvements delivered continually Several JVM Upgrades over the past 12 months significantly reduced OOM crashes and Garbage Collection times for our systems. This enables the use of larger heap spaces! Patching via JSPM takes 30 minutes and 1 restart, plus some testing
  • 14. Java Heap Space More Heap = process larger messages, fewer full GCs, fewer OOMs SAP’s recommendation has historically been 2GB per Java process. Recently changed to 4GB (for SAP JVM) AusPost has been using 4GB for 9 months now. Main criteria: Full GCs should take less than 10 seconds.
  • 15. Java Memory Analysis  This is in SolMan!
  • 16. Wily Introscope Monitoring for the Java Stack Basic version is free with NetWeaver Java Provides functionality normally accessed via ABAP transactions
  • 20. Tons of Dashboards! …and this is only the free version!
  • 21. Our PI System PI 7.11 SP5 JVM 5.1 Patch level 59 (64 in test systems) 3 Java server nodes, 4GB heap space each. AIX 6.1 on IBM POWER6, 60GB RAM
  • 22.
  • 27. Wily Introscope Many aspects which require special PI-Basis skills!
  • 28. Key Topic Adapter Framework
  • 29. Adapter Framework Thread Behaviour Messaging System
  • 30. Threads Messages are processed using a number of adapter-specific queues. Each queue has its own thread pool. e.g. for JMS:
  • 31.
  • 32. Caveat Some Adapters process messages serially! e.g. JMS: 1 Adapter Thread per Communication Channel reads messages from the JMS queue { 1 JMS Comm Channel 3 Java Server Nodes
  • 33. Threads in the AAE Adapter Thread picks up a message from the JMS queue, then: Executes Adapter Modules Performs Receiver Determination Persists 1 message per Receiver in Messaging System queue. Confirms message and removes from the JMS queue The longer this takes, the lower throughput will be.
  • 34. What does this mean?
  • 35. Sender-Side Performance is Really Important
  • 36. Implications Throughput depends on Sender Adapter performance Try to avoid adapter modules in Sender adapters. We achieved a 15% improvement by moving an XSLT mapping from the JMS adapter to the Operation Mapping.
  • 37.
  • 38.
  • 39. 2 Options In our system, each thread can process 10-15 messages/sec In order to consistently process 45 messages/sec from JMS, we need 4-5 concurrent JMS Sender Adapter threads. Option 1: 5 Java server nodes Option 2: Multiple JMS Communication Channels.
  • 40.
  • 41. More scalableThis is not needed for SOAP since it’s truly parallel. Image Source: http://t.co/ZOBdlH0
  • 42.
  • 43. Messaging System Increased importance for Integrated Configuration scenarios!
  • 45. Integrated Configuration Receiver Determination + Interface Determination + Receiver Agreements Integrated Configuration Object Causes an interface to be executed in the Advanced Adapter Engine
  • 46. Integrated Configuration Message Processing entirely in Java (AAE) Introduced in PI 7.1; more features in 7.11 and 7.3 Improved performance by: Reducing database I/O Eliminating ‘stack jumping’ between ABAP and Java 7-10 times throughput possible Not available for all adapters and scenarios.
  • 49. Constraints There are a few things you can’t do with Integrated Configuration: IDocs* Multi-Mappings* ccBPMs But this is an Opportunity to be Creative! *features added in PI 7.3
  • 50.
  • 51. Communication Channels ABAP Proxies/Enterprise Services  Use SOAP Adapter in XI 3.0 mode JMS Senders  Clone comm. Channels for greater parallelisation Non-SAP Systems  Ensure inbound queuing is available to avoid backlog in PI
  • 52. Design-Time Governance Don’t Overdo It! Find a balance which facilitates reuse but doesn’t impose too much up-front work. Image Source: http://geekandpoke.typepad.com
  • 54. Key Points to Take Home Wily Introscope Essential for understanding performance of the Java stack Use Integrated Configuration Objects 20 minutes to migrate an existing interface Keep your JVM Current Continuous improvements without much fuss Most of the other points can be quick wins too if you don’t do them all at once.
  • 55. SaschaWenninger Australia Post sascha.wenninger@auspost.com.au @sufw +61 403 933 472
  • 56. Further Reading PI Performance Check SOA MiddlewareArticles on SDN Incl. the Performance section