Showing posts with label Felix configurations. Show all posts
Showing posts with label Felix configurations. Show all posts

How to find Current Apache Sling Rewriter Configuration in AEM through Felix console

Statement - Apache Sling rewrite configuration
Environment - AEM 6.3 GA

Solution :


 Current Apache Sling Rewriter Configuration
=================================================================
Active Configurations
-----------------------------------------------------------------
Configuration hybrid-app

Name : hybrid-app
Content Types : [text/html]
Paths : [/content/phonegap, /content/mobileapps, /content/campaigns]
Order : 1001
Active : true
Valid : true
Process Error Response : true
Pipeline : 
    Generator : 
        htmlparser : {includeTags=[Ljava.lang.String;@67735c8d}
    Transformers : 
        linkchecker
        contentsync : {component-optional=true}
        hybridapp : {component-optional=true}
        mobileappscampaign : {component-optional=true}
    Serializer : 
        htmlwriter
Resource path: /libs/mobileapps/config/rewriter/hybrid-app


Configuration campaign-link-rewrite

Name : campaign-link-rewrite
Content Types : [text/html]
Resource Types : [mcm/campaign/components/newsletter, 
mcm/neolane/components/newsletter, mcm/campaign/components/campaign_newsletterpage]
Order : 1000
Active : true
Valid : true
Process Error Response : true
Pipeline : 
    Generator : 
        htmlparser : {includeTags=[Ljava.lang.String;@14f0e58b}
    Transformers : 
        campaign-link-rewrite : {component-optional=true}
    Serializer : 
        htmlwriter
Resource path: /libs/mcm/config/rewriter/campaign-link-rewrite


Configuration cfm

Name : cfm
Content Types : [text/html]
Resource Types : [dam/cfm/components/contentfragment]
Selectors : [rawcontent]
Order : 1000
Active : true
Valid : true
Process Error Response : true
Pipeline : 
    Generator : 
        html-generator
    Transformers : 
        cfm-payload
        cfm-parfilter : {component-optional=false}
        cfm-assetprocessor : {component-optional=false}
    Serializer : 
        htmlwriter
Resource path: /libs/dam/config/rewriter/cfm


Configuration pdf

Name : pdf
Extensions : [pdf]
Order : 0
Active : true
Valid : true
Process Error Response : false
Pipeline : 
    Generator : 
        empty-generator
    Transformers : 
        htmlparser
        xslt : {source=sling://libs/wcm/core/content/pdf/page2fo.xsl}
    Serializer : 
        fop : {mime-type=application/pdf}
Resource path: /libs/cq/config/rewriter/pdf


Configuration default

Name : default
Content Types : [text/html]
Order : -1
Active : true
Valid : true
Process Error Response : true
Pipeline : 
    Generator : 
        htmlparser
    Transformers : 
        linkchecker
        mobile : {component-optional=true}
        mobiledebug : {component-optional=true}
        contentsync : {component-optional=true}
    Serializer : 
        htmlwriter
Resource path: /libs/cq/config/rewriter/default



  • That's it!

How to Generate Thread dump in AEM through Felix console and quickest way to analysis the thread dump

Statement - Assuming if you do not have physical server access to windows or Linux system and an alternate way to download the thread dumps and analysis of the same

Environment - AEM 6.3 GA


Solution :



  • Go to the Felix console URL: http://localhost:4502/system/console/status-threaddump
  • login with username and password if not logged into the AEM server.
  • click on the download as Text or Download full text or download as zip or download full zip based on the need.
  • Select all the threaddump details and save as .txt file.

  • Use the http://fastthread.io/ for only analysis only if there is no confidential data in the dumps.
  • Click on the upload to browse to the file where threaddump.txt is located.
  • Click on Analyze to see the thread dump details which thread is causing the issue or there are any deadlocks.
  • That's it!

How to find all the PID's configuration details in AEM

Statement - types of script engines supported by AEM

Environment - AEM 6.3 GA


Solution :




  PID = com.day.cq.commons.servlets.RootMappingServlet
  BundleLocation = Unbound
  rootmapping.target = /aem/start.html
  service.pid = com.day.cq.commons.servlets.RootMappingServlet
  PID = com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl
  BundleLocation = Unbound
  service.bad_link_tolerance_interval = 48
  service.check_override_patterns = [^system/]
  service.pid = com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl
  service.special_link_patterns = 
  service.special_link_prefix = [javascript:, data:, mailto:, tel:, #, <!--, ]

  PID = org.apache.felix.http
  BundleLocation = launchpad:resources/install/5/org.apache.felix.http.jetty-3.4.0-B002.jar
  org.apache.felix.http.context_path = /
  org.apache.felix.http.enable = true
  org.apache.felix.http.host = 0.0.0.0
  org.apache.felix.http.jetty.acceptors = -1
  org.apache.felix.http.jetty.headerBufferSize = 16384
  org.apache.felix.http.jetty.maxFormSize = 204800
  org.apache.felix.http.jetty.requestBufferSize = 8192
  org.apache.felix.http.jetty.responseBufferSize = 24576
  org.apache.felix.http.jetty.selectors = -1
  org.apache.felix.http.jetty.sendServerHeader = false
  org.apache.felix.http.jetty.threadpool.max = -1
  org.apache.felix.http.mbeans = false
  org.apache.felix.http.name = 
  org.apache.felix.http.path_exclusions = [/system]
  org.apache.felix.http.session.timeout = 0
  org.apache.felix.http.timeout = 60000
  org.apache.felix.https.clientcertificate = none
  org.apache.felix.https.enable = true
  org.apache.felix.https.jetty.ciphersuites.excluded = []
  org.apache.felix.https.jetty.ciphersuites.included = []
  org.apache.felix.https.jetty.protocols.excluded = []
  org.apache.felix.https.jetty.protocols.included = []
  org.apache.felix.https.jetty.renegotiateAllowed = false
  org.apache.felix.https.jetty.session.cookie.httpOnly = true
  org.apache.felix.https.jetty.session.cookie.secure = false
  org.apache.felix.https.keystore = D:\AEM 6.3\AEM 6.3 software\ssl\localhost.csr
  org.apache.felix.https.keystore.key.password = anypassword
  org.apache.felix.https.keystore.password = anypassword
  org.apache.felix.https.truststore = 
  org.apache.felix.proxy.load.balancer.connection.enable = false
  org.eclipse.jetty.servlet.CheckingRemoteSessionIdEncoding = true
  org.eclipse.jetty.servlet.MaxAge = -1
  org.eclipse.jetty.servlet.SessionCookie = JSESSIONID
  org.eclipse.jetty.servlet.SessionDomain = 
  org.eclipse.jetty.servlet.SessionIdPathParameterName = jsessionid
  org.eclipse.jetty.servlet.SessionPath = 
  org.osgi.service.http.port = 4502
  org.osgi.service.http.port.secure = 5433
  service.pid = org.apache.felix.http
.
.
.
.
.
.
.
.
.
.
.
.
.
etc
  • That's it!...

What are the different types of Script Engines supported by AEM

Statement - types of script engines supported by AEM

Environment - AEM 6.3 GA


Solution :


Available Script Engines
========================

Apache Sling JST script engine (Sling JavaScript Templates) 1.0
-------------------------------------
- Language : JavaScript Templates, 1.0
- Extensions : jst
- MIME Types : application/x-sling-jst
- Names : jst

Apache Sling Scripting JSP Support 2.2.6
-------------------------------------
- Language : Java Server Pages, 2.1
- Extensions : jsp, jspf, jspx
- MIME Types : -
- Names : jsp, JSP

Apache Sling Scripting HTL Engine 1.0.32
-------------------------------------
- Language : The HTL Templating Language, 1.0
- Extensions : html
- MIME Types : -
- Names : sightly

HandlebarsScriptingEngineFactory 1.0.0
-------------------------------------
- Language : handlebars, 1.0.0
- Extensions : hbs
- MIME Types : -
- Names : handlebars

Apache Sling Scripting Java Support 2.1.2
-------------------------------------
- Language : Java Servlet Compiler, 1.5
- Extensions : java
- MIME Types : -
- Names : -

Apache Sling Scripting JavaScript Support (null) 2.0.30
-------------------------------------
- Language : ECMAScript, 0
- Extensions : ecma, esp
- MIME Types : text/javascript, application/ecmascript, application/javascript
- Names : javascript, ecma, esp
  • That's it!

How to download the AEM server log files through Felix console

Statement - Assuming if you do not have physical server access to windows or Linux server and an alternate way to download the log files.

Environment - AEM 6.3 GA


Solution :


  • That's it!

How to find the AEM version and customer name

Statement - Ways to find the customer name and Product version.
Environment - AEM 6.3 GA

Solution :






  • That's it!

How to find the OS version, OS architecture and OS name in AEM through Felix console

Statement - Assuming if you do not have access to the physical server on AEM is installed and an alternate way to find the OS details

Environment - AEM 6.3 GA

Solution :

  • That's it!

What are the different ways to run garbage collector in AEM through Felix Console

Statement - Ways to run the GC.
Environment - AEM 6.3 GA

Solution :


  • Go to the Felix console URL: http://localhost:4502/system/console/vmstat
  • login with username and password if not logged into the AEM server.
  • Under Java information tab look for Garbage collection as shown in the below screenshot. 



  • That's it!

How to find AEM Server up time or last started

Statement - Assuming if you do not have administration  access to windows or Linux system and an alternate way to find the AEM server up time or when was last started.

Environment - AEM 6.3 GA

Solution :

  • Go to the Felix console URL: http://localhost:4502/system/console/vmstat
  • login with username and password if not logged into the AEM server.
  • Under Server information tab look for last started and uptime as shown in the below screenshot.
  • That's it!

How to to find the JVM build and JRE version through AEM Felix console

Statement - Ways to find the JRE version and VM build version.
Environment - AEM 6.3 GA

Solution :


Option-1

  • Go to the Felix console URL: http://localhost:4502/system/console/vmstat
  • login with username and password if not logged into the AEM server.
  • Under Java information tab search for JRE and VM as shown in the below screenshot. 

Option-2

  • That's it!

How to find the number of Processor on which AEM server is running

Statement - Assuming if you do not have administration  access to windows or Linux system and an alternate way to find the no of processor.

Environment - AEM 6.3 GA

Solution :

  • Go to the Felix console URL: http://localhost:4502/system/console/vmstat
  • login with username and password if not logged into the AEM server.
  • Under Java information tab search for Number of processors as shown in the below screenshot.
  • That's it!