SlideShare a Scribd company logo
1 of 25
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Tips and Tricks for the OSGi Web Console
Kevin Nennig | AEM Practice Lead | Adobe Digital Learning Services
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 2
1 | Understanding the Web Console
2 | Learn about each area of the web console
3 | Demo using some of the tips and tricks
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
AEM’s Web Console
 Belongs to the OSGi layer
 A part of the Apache Felix project
 Monitors every piece of the
architecture
 Can configure applications
3
JVM
Custom Code
AEM Modules
OSGi (Apache Felix)
Apache Sling
JCR (Apache Jackrabbit Oak)
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
OSGi Web Console
 You’ve heard of it
 You’ve used it
 You might manage it
 How much do you actually know though?????
4
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
What’s in the Web Console??
 Main – Product and Repository tools
 OSGi – OSGi tools
 Sling – Sling tools
 Status – Output for all consoles
 Web Console – System information
5
JVM
Custom Code
AEM Modules
OSGi
Apache Sling
JCR (Apache Jackrabbit Oak)
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Main
 Crypto Support
 Create Crypto text for configurations
 Disk Benchmark
 Test r/w speeds to the hard disk
 JMX
 Simple JMX console for access to mbeans
 MIME Types
 View supported MIME types
6
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Main
 OSGi Installer
 Find the install location of a bundle
 Repository Check (based on a JCR Path)
 Output repository size in bytes
 Log node paths
7
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > OSGi
 Bundle Management
 What are Components?
 Implementation of
 Events
 Schedulers
 Servlets
 Models
 What are Services?
 Interface
 Runnable
 Servlet
 EventHandler
 JobConsumer
8
Bundle
Service
Component
Configuration
Service
Component
Configuration
Service
Component
Configuration
Bundle
Bundle
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > OSGi
 Bundle
 A bundle must be Active to use the components
 Newest bundles have the highest ID
 Components
 Click the wrench of a component to open it’s corresponding config
 Package Dependencies
 Use to quickly find a maven dependency to add to your project
 Services
 View service / implementation relationships
9
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > OSGi
 Configuration
 A checkmark indicates component’s
defaults are no longer used
10
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > OSGi
 Configuration
 Use the web config to create the
sling:OsgiConfig node
11
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > OSGi
 OSGi Configurations
 Best practice: Use an sling:OsgiConfig node
 When setting via the Web Console > OSGi > Configuration
 Saved in the JCR as .config files
 Generally saved to /apps/system/config
 Alternatively, use the CRXDE Lite Query tool
12
PID
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Sling
 Features
 Quickly understand what features are enabled in AEM
 Most are asset features
 Log Support
 Simple way to create adhoc loggers
 Resource Resolver
 View your custom sling mappings from /etc/map (Ctrl+F “Mapping Map Entries”)
 Only valid mappings will show up in this console
 View ALL Vanity URLs authors setup under page properties (Ctrl+F
“/content/yourSite”)
 Sling Adapters
 FULL list of all adaptations you can do on each java object
 Ex: Node node = resource.adapTo(Node.class);
13
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Sling
 Features
 OSGi > Configurations do a Crtl+F “Feature Flag” to find all configs
 File System Class Loader
 View HTL cached as Java to debug syntax
 Log Support
 You can create a logger for a JCR path by replacing / with .
 Ex: /apps/myproject/components/ = apps.myproject.components
 Resource Resolver
 Use the Configuration Test to find an AEM console in /libs to customize
 Ex: assets.html resolves to /libs/dam/gui/content/assets
14
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Sling
 Sling Health Checks
 Can quickly run all health checks in one place
 OSGi > Confguration
 Custom composite health check
 Add custom tags to health checks
 Custom health check
15
OOTB Tags
bundles  security  production  login  dos  sling 
dispatcher  cq  replication  csrf  acl  webserver 
clickjacking
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Status
 Dump of different mechanisms within OSGi
 OSGi information
 Sling Information
 Cached file information
 JVM output
 Threading info
 Log files
 Status output via cURL
 Requests can be .html, .json, or .txt
16
$ curl http://admin:admin@localhost:4502/system/console/<console>
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Status
 Many status dumps have a corresponding
management console
 Status consoles can be uses to quickly find
and verify a certain setting
17
Main > OSGi Installer
Main > Product Information
Main > Felix Http Whiteboard
Main > Http Service
OSGi > Bundles
OSGi > Configurations
OSGi > Components
OSGi > Services
Sling > Metrics
Sling > Resource Resolver
Sling > Sling Adapters
Sling > Topology Management
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Status
 Each time a status dump loads you have several downloadable options
 All are buttons are based upon the timestamp
 Download As Text
 Single text file of the current dump
 Download As Zip
 Separated text files of the dump if several status are concatenated
 Download Full Text
 Single text file of all dumps in the Status tab
 Download Full Zip
 Seperated text files of all dumps in the Status tab
18
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Status
 Granite Replication
 Use to verify correct replication agents
 Product Information
 See what AEM version / SP is installed
 Sling Scheduler
 View / verify when a scheduler will trigger next
 Sling Service User Mappings
 View all bundle/subservices using a service user
 Sling Settings
 View active AEM runmodes
 View where the server is installed locally
19
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Status
 Configurations
 Use a quick Ctrl+F to find a property value of a config
 Log Files
 Download log files if you don’t have access to the server
 Uploaded Packages
 View / verify what content packaged uploaded / installed
20
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Web Console > Web Console
 Licenses
 Every License that exists in the
Bundles
 Memory Usage
 Overview Console
 System Information
 Start level configuration
 Server stats
 JVM stats
21
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 22
Demo
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Resources
 Felix Web Console
 http://felix.apache.org/documentation/subprojects/apache-felix-web-console.html
 Slideshare
 https://www.slideshare.net/KevinNennig/tips-and-tricks-in-the-osgi-web-console
 Github Project
 https://github.com/knennigtri/Immerse-Demo
 Health checks
 https://docs.adobe.com/docs/en/aem/6-2/administer/operations/operations-dashboard.html
 Adobe Digital Learning Services Courses
 https://training.adobe.com/training/current-
courses.html#solution=adobeExperienceManager&p=1
23
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Q&A
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.24
Kevin Nennig
nennig@adobe.com
Github: knennigtri
Twitter: @knennigtri
LinkedIn: /in/kevinnennig
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

More Related Content

What's hot

CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_SingaporeCI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
Amazon Web Services
 
Asynchronous OSGi – Promises for the Masses - T Ward
Asynchronous OSGi – Promises for the Masses - T WardAsynchronous OSGi – Promises for the Masses - T Ward
Asynchronous OSGi – Promises for the Masses - T Ward
mfrancis
 

What's hot (20)

CI/CD on AWS
CI/CD on AWSCI/CD on AWS
CI/CD on AWS
 
CI/CD with AWS Code Services
CI/CD with AWS Code ServicesCI/CD with AWS Code Services
CI/CD with AWS Code Services
 
Beyond AEM Curl Commands
Beyond AEM Curl CommandsBeyond AEM Curl Commands
Beyond AEM Curl Commands
 
Api manager preconference
Api manager preconferenceApi manager preconference
Api manager preconference
 
使用 Amazon EKS 打造高效的服務架構設計
使用 Amazon EKS 打造高效的服務架構設計使用 Amazon EKS 打造高效的服務架構設計
使用 Amazon EKS 打造高效的服務架構設計
 
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
 
Amazon CI/CD Practices for Software Development Teams - SRV320 - Anaheim AWS ...
Amazon CI/CD Practices for Software Development Teams - SRV320 - Anaheim AWS ...Amazon CI/CD Practices for Software Development Teams - SRV320 - Anaheim AWS ...
Amazon CI/CD Practices for Software Development Teams - SRV320 - Anaheim AWS ...
 
Securing applications
Securing applicationsSecuring applications
Securing applications
 
Machine Learning - From Notebook to Production with Amazon Sagemaker
Machine Learning - From Notebook to Production with Amazon SagemakerMachine Learning - From Notebook to Production with Amazon Sagemaker
Machine Learning - From Notebook to Production with Amazon Sagemaker
 
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_SingaporeCI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
 
Where is cold fusion headed
Where is cold fusion headedWhere is cold fusion headed
Where is cold fusion headed
 
Asynchronous OSGi – Promises for the Masses - T Ward
Asynchronous OSGi – Promises for the Masses - T WardAsynchronous OSGi – Promises for the Masses - T Ward
Asynchronous OSGi – Promises for the Masses - T Ward
 
Load Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionLoad Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusion
 
CI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and FargateCI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and Fargate
 
Become a Security Rockstar with ColdFusion 2016
Become a Security Rockstar with ColdFusion 2016Become a Security Rockstar with ColdFusion 2016
Become a Security Rockstar with ColdFusion 2016
 
Locking Down CF Servers
Locking Down CF ServersLocking Down CF Servers
Locking Down CF Servers
 
Session State Caching with Spring
Session State Caching with SpringSession State Caching with Spring
Session State Caching with Spring
 
Powering Test Environments with Amazon EKS using Serverless Tool | AWS Commun...
Powering Test Environments with Amazon EKS using Serverless Tool | AWS Commun...Powering Test Environments with Amazon EKS using Serverless Tool | AWS Commun...
Powering Test Environments with Amazon EKS using Serverless Tool | AWS Commun...
 
S903 palla
S903 pallaS903 palla
S903 palla
 
AWS Webcast - On-Demand Video Streaming using Amazon CloudFront
AWS Webcast - On-Demand Video Streaming using Amazon CloudFront  AWS Webcast - On-Demand Video Streaming using Amazon CloudFront
AWS Webcast - On-Demand Video Streaming using Amazon CloudFront
 

Similar to Tips and tricks in the OSGi Web Console

Similar to Tips and tricks in the OSGi Web Console (20)

CON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWSCON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWS
 
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
 
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdfDEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
 
Kubernetes on AWS
Kubernetes on AWSKubernetes on AWS
Kubernetes on AWS
 
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
 
AWS Cloud9 – Cloud IDE for Writing, Running and Debugging Code
AWS Cloud9 – Cloud IDE for Writing, Running and Debugging CodeAWS Cloud9 – Cloud IDE for Writing, Running and Debugging Code
AWS Cloud9 – Cloud IDE for Writing, Running and Debugging Code
 
Upgrade to cf 2016 1
Upgrade to cf 2016 1Upgrade to cf 2016 1
Upgrade to cf 2016 1
 
ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013
 
CON203_Driving Innovation with Containers
CON203_Driving Innovation with ContainersCON203_Driving Innovation with Containers
CON203_Driving Innovation with Containers
 
Driving Innovation with Containers - CON203 - re:Invent 2017
Driving Innovation with Containers - CON203 - re:Invent 2017Driving Innovation with Containers - CON203 - re:Invent 2017
Driving Innovation with Containers - CON203 - re:Invent 2017
 
Securing Containers - Sathyajit Bhat - Adobe
Securing Containers - Sathyajit Bhat - AdobeSecuring Containers - Sathyajit Bhat - Adobe
Securing Containers - Sathyajit Bhat - Adobe
 
REST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion AetherREST Development made Easy with ColdFusion Aether
REST Development made Easy with ColdFusion Aether
 
Breaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfBreaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdf
 
New and cool in OSGi R7 - David Bosschaert & Carsten Ziegeler
New and cool in OSGi R7 - David Bosschaert & Carsten ZiegelerNew and cool in OSGi R7 - David Bosschaert & Carsten Ziegeler
New and cool in OSGi R7 - David Bosschaert & Carsten Ziegeler
 
Breaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdfBreaking the Monolith road to containers.pdf
Breaking the Monolith road to containers.pdf
 
Building Web Apps on AWS
Building Web Apps on AWSBuilding Web Apps on AWS
Building Web Apps on AWS
 
Amazon ECS Deep Dive
Amazon ECS Deep DiveAmazon ECS Deep Dive
Amazon ECS Deep Dive
 
Amazon Amazon Elastic Container Service (Amazon ECS)
Amazon Amazon Elastic Container Service (Amazon ECS)Amazon Amazon Elastic Container Service (Amazon ECS)
Amazon Amazon Elastic Container Service (Amazon ECS)
 
Introducing AWS Cloud9 - AWS Online Tech Talks
Introducing AWS Cloud9 - AWS Online Tech TalksIntroducing AWS Cloud9 - AWS Online Tech Talks
Introducing AWS Cloud9 - AWS Online Tech Talks
 
Leo Zhadanovsky - Building Web Apps with AWS CodeStar and AWS Elastic Beansta...
Leo Zhadanovsky - Building Web Apps with AWS CodeStar and AWS Elastic Beansta...Leo Zhadanovsky - Building Web Apps with AWS CodeStar and AWS Elastic Beansta...
Leo Zhadanovsky - Building Web Apps with AWS CodeStar and AWS Elastic Beansta...
 

Recently uploaded

Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 

Recently uploaded (20)

FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 

Tips and tricks in the OSGi Web Console

  • 1. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Tips and Tricks for the OSGi Web Console Kevin Nennig | AEM Practice Lead | Adobe Digital Learning Services
  • 2. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 2 1 | Understanding the Web Console 2 | Learn about each area of the web console 3 | Demo using some of the tips and tricks
  • 3. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AEM’s Web Console  Belongs to the OSGi layer  A part of the Apache Felix project  Monitors every piece of the architecture  Can configure applications 3 JVM Custom Code AEM Modules OSGi (Apache Felix) Apache Sling JCR (Apache Jackrabbit Oak)
  • 4. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. OSGi Web Console  You’ve heard of it  You’ve used it  You might manage it  How much do you actually know though????? 4
  • 5. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. What’s in the Web Console??  Main – Product and Repository tools  OSGi – OSGi tools  Sling – Sling tools  Status – Output for all consoles  Web Console – System information 5 JVM Custom Code AEM Modules OSGi Apache Sling JCR (Apache Jackrabbit Oak)
  • 6. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Main  Crypto Support  Create Crypto text for configurations  Disk Benchmark  Test r/w speeds to the hard disk  JMX  Simple JMX console for access to mbeans  MIME Types  View supported MIME types 6
  • 7. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Main  OSGi Installer  Find the install location of a bundle  Repository Check (based on a JCR Path)  Output repository size in bytes  Log node paths 7
  • 8. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > OSGi  Bundle Management  What are Components?  Implementation of  Events  Schedulers  Servlets  Models  What are Services?  Interface  Runnable  Servlet  EventHandler  JobConsumer 8 Bundle Service Component Configuration Service Component Configuration Service Component Configuration Bundle Bundle
  • 9. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > OSGi  Bundle  A bundle must be Active to use the components  Newest bundles have the highest ID  Components  Click the wrench of a component to open it’s corresponding config  Package Dependencies  Use to quickly find a maven dependency to add to your project  Services  View service / implementation relationships 9
  • 10. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > OSGi  Configuration  A checkmark indicates component’s defaults are no longer used 10
  • 11. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > OSGi  Configuration  Use the web config to create the sling:OsgiConfig node 11
  • 12. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > OSGi  OSGi Configurations  Best practice: Use an sling:OsgiConfig node  When setting via the Web Console > OSGi > Configuration  Saved in the JCR as .config files  Generally saved to /apps/system/config  Alternatively, use the CRXDE Lite Query tool 12 PID
  • 13. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Sling  Features  Quickly understand what features are enabled in AEM  Most are asset features  Log Support  Simple way to create adhoc loggers  Resource Resolver  View your custom sling mappings from /etc/map (Ctrl+F “Mapping Map Entries”)  Only valid mappings will show up in this console  View ALL Vanity URLs authors setup under page properties (Ctrl+F “/content/yourSite”)  Sling Adapters  FULL list of all adaptations you can do on each java object  Ex: Node node = resource.adapTo(Node.class); 13
  • 14. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Sling  Features  OSGi > Configurations do a Crtl+F “Feature Flag” to find all configs  File System Class Loader  View HTL cached as Java to debug syntax  Log Support  You can create a logger for a JCR path by replacing / with .  Ex: /apps/myproject/components/ = apps.myproject.components  Resource Resolver  Use the Configuration Test to find an AEM console in /libs to customize  Ex: assets.html resolves to /libs/dam/gui/content/assets 14
  • 15. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Sling  Sling Health Checks  Can quickly run all health checks in one place  OSGi > Confguration  Custom composite health check  Add custom tags to health checks  Custom health check 15 OOTB Tags bundles  security  production  login  dos  sling  dispatcher  cq  replication  csrf  acl  webserver  clickjacking
  • 16. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Status  Dump of different mechanisms within OSGi  OSGi information  Sling Information  Cached file information  JVM output  Threading info  Log files  Status output via cURL  Requests can be .html, .json, or .txt 16 $ curl http://admin:admin@localhost:4502/system/console/<console>
  • 17. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Status  Many status dumps have a corresponding management console  Status consoles can be uses to quickly find and verify a certain setting 17 Main > OSGi Installer Main > Product Information Main > Felix Http Whiteboard Main > Http Service OSGi > Bundles OSGi > Configurations OSGi > Components OSGi > Services Sling > Metrics Sling > Resource Resolver Sling > Sling Adapters Sling > Topology Management
  • 18. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Status  Each time a status dump loads you have several downloadable options  All are buttons are based upon the timestamp  Download As Text  Single text file of the current dump  Download As Zip  Separated text files of the dump if several status are concatenated  Download Full Text  Single text file of all dumps in the Status tab  Download Full Zip  Seperated text files of all dumps in the Status tab 18
  • 19. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Status  Granite Replication  Use to verify correct replication agents  Product Information  See what AEM version / SP is installed  Sling Scheduler  View / verify when a scheduler will trigger next  Sling Service User Mappings  View all bundle/subservices using a service user  Sling Settings  View active AEM runmodes  View where the server is installed locally 19
  • 20. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Status  Configurations  Use a quick Ctrl+F to find a property value of a config  Log Files  Download log files if you don’t have access to the server  Uploaded Packages  View / verify what content packaged uploaded / installed 20
  • 21. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Web Console > Web Console  Licenses  Every License that exists in the Bundles  Memory Usage  Overview Console  System Information  Start level configuration  Server stats  JVM stats 21
  • 22. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 22 Demo
  • 23. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2016 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Resources  Felix Web Console  http://felix.apache.org/documentation/subprojects/apache-felix-web-console.html  Slideshare  https://www.slideshare.net/KevinNennig/tips-and-tricks-in-the-osgi-web-console  Github Project  https://github.com/knennigtri/Immerse-Demo  Health checks  https://docs.adobe.com/docs/en/aem/6-2/administer/operations/operations-dashboard.html  Adobe Digital Learning Services Courses  https://training.adobe.com/training/current- courses.html#solution=adobeExperienceManager&p=1 23
  • 24. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Q&A © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.24 Kevin Nennig nennig@adobe.com Github: knennigtri Twitter: @knennigtri LinkedIn: /in/kevinnennig
  • 25. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Editor's Notes

  1. Main – Product and Repository Tools OSGi – OSGi Tools Sling – Sling tools Status – Output for anything Web Console – System Information
  2. Features: MOSTLY ASSETS Dynamic Media, auto tagging, Asset Collections, Assets Homepage, Reporting, insights, renditions, etc