AEM - Few Important Information for debugging
Compiled Class path before AEM 6 is available in the crx console
/var/classes/org/apache/jsp/apps/<<Project_Name>>
Compiled Class path from AEM 6.1 is available in the installation directory of AEM
/crx-quickstart/launchpad/felix/bundle305/data/classes/org/apache/sling/scripting/sightly/apps/<<Project_Name>>
Extract log statements in b/w a specific time frame:
awk '/^01.08.2018 00:07:23.002*/,/01.08.2018 00:09:09.345*/' error.log > /tmp/error_aug1_period.log
Create a custom logger from crx/de
To configure a custom log file, perform these steps.
1. In CRXDE Lite, select /apps/logsample/config.author.
2. Create a node with below configurations:
Type - sling:OsgiConfig
Name - org.apache.sling.commons.log.LogManager.factory.config-logsample-model
3. Add the following properties to this node:
org.apache.sling.commons.log.file (String) - logs/logsample-model.log (specifies the location of the custom log file)
org.apache.sling.commons.log.level (String) – debug
org.apache.sling.commons.log.names (String[]) - com.aem.logsample.core.models (specifies the Java package whose classes writes to this log file)
org.apache.sling.commons.log.pattern (String) - {0,date,yyyy-MM-dd HH:mm:ss.SSS} {4} [{3}] {5}
4. CLick Save.
How to know the size of the dam folders or any other content directory in the repository
http://localhost:4502/etc/reports/diskusage.html?path=/content/dam/aem-flash
Change the path to the required directory and it should provide the size of the respective directory.
Disk usage issues:
https://helpx.adobe.com/experience-manager/kb/analyze-unusual-repository-growth.html
Repository Corruption issues
https://helpx.adobe.com/experience-manager/kb/fix-inconsistencies-in-the-repository-when-segmentnotfound-issue.html
/var/classes/org/apache/jsp/apps/<<Project_Name>>
Compiled Class path from AEM 6.1 is available in the installation directory of AEM
/crx-quickstart/launchpad/felix/bundle305/data/classes/org/apache/sling/scripting/sightly/apps/<<Project_Name>>
Extract log statements in b/w a specific time frame:
awk '/^01.08.2018 00:07:23.002*/,/01.08.2018 00:09:09.345*/' error.log > /tmp/error_aug1_period.log
Create a custom logger from crx/de
To configure a custom log file, perform these steps.
1. In CRXDE Lite, select /apps/logsample/config.author.
2. Create a node with below configurations:
Type - sling:OsgiConfig
Name - org.apache.sling.commons.log.LogManager.factory.config-logsample-model
3. Add the following properties to this node:
org.apache.sling.commons.log.file (String) - logs/logsample-model.log (specifies the location of the custom log file)
org.apache.sling.commons.log.level (String) – debug
org.apache.sling.commons.log.names (String[]) - com.aem.logsample.core.models (specifies the Java package whose classes writes to this log file)
org.apache.sling.commons.log.pattern (String) - {0,date,yyyy-MM-dd HH:mm:ss.SSS} {4} [{3}] {5}
4. CLick Save.
How to know the size of the dam folders or any other content directory in the repository
http://localhost:4502/etc/reports/diskusage.html?path=/content/dam/aem-flash
Change the path to the required directory and it should provide the size of the respective directory.
Disk usage issues:
https://helpx.adobe.com/experience-manager/kb/analyze-unusual-repository-growth.html
Repository Corruption issues
https://helpx.adobe.com/experience-manager/kb/fix-inconsistencies-in-the-repository-when-segmentnotfound-issue.html
Comments
Post a Comment