AEM 6.4 | JMX MBean OPTIMAL Threshold value | Email Alert Notification

rohitp23277067

16-04-2020

Hi all,

 

We are trying to do analysis on AEM System Monitoring Metrics and wanted to generate Alerts (like Email Notifications). Wanted to collate Optimal threshold value (WARN LEVEL and CRITICAL LEVEL) of each of these MBean Metrics. Meaning if the current value of MBean goes above OPTIMAL THRESHOLD value then email alert will be sent.

 

Refer this page : https://cqdump.wordpress.com/category/tipstricks/

And in OSGI here we get all System Stats

http://localhost:4502/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3DOak+Repository+Statistic...

 

Wanted to know if there is any documentation of what should be the RECOMMENDED OPTIMAL .

values for each of these MBean. Below attribute list for your reference :

 

Thanks for helping.

 

 

 Repository Statistics MBean (RepositoryStats)   
SR.Parameter TitleParameter NameTHRESHOLD VALUE
(WARN LEVEL)
THRESHOLD VALUE
(CRITICAL LEVEL)
1Average Session Read Duration (ns)SessionReadAverage  
2Number of Session WritesSessionWriteCount  
3Observation Queue LengthObservationQueueMaxLength  
4Number of Session ReadsSessionReadCount  
5Session Write Duration (ns)SessionWriteDuration  
6Average Event Processing Duration (ns)ObservationEventAverage  
7Event Processing Duration (ns)ObservationEventDuration  
8Number of EventsObservationEventCount  
9Average Session Write Duration (ns)SessionWriteAverage  
10Session Read Duration (ns)SessionReadDuration  
11Number of Active SessionsSessionCount  
12Query Duration (ms)QueryDuration  
13Number of Session LoginsSessionLogin  
14Number of QueriesQueryCount  
15Average Query Duration (ms)QueryAverage  
     
 Index Statistics MBean (IndexStats)   
SR.Parameter TitleParameter NameTHRESHOLD VALUE
(WARN LEVEL)
THRESHOLD VALUE
(CRITICAL LEVEL)
1Number of Indexing OperationsExecutionCount  
2Indexed Nodes CountIndexedNodesCount  
     
 FileStore Statistics MBean (FileStoreStats)   
SR.Parameter TitleParameter NameTHRESHOLD VALUE
(WARN LEVEL)
THRESHOLD VALUE
(CRITICAL LEVEL)
1Segment WritesWriteStats  
2Journal WritesJournalWriteStatsAsCompositeData  
3Repository Size (bytes)RepositorySize  
     
 Granite System Statistics MBean
(GraniteSystemStats)
   
SR.Parameter TitleParameter NameTHRESHOLD VALUE
(WARN LEVEL)
THRESHOLD VALUE
(CRITICAL LEVEL)
1Heap Committed (bytes)HeapStatistics.HEAP_COMMITTED_AVERAGE  
2Heap Init (bytes)HeapStatistics.HEAP_INIT_AVERAGE  
3Heap Max (bytes)HeapStatistics.HEAP_MAX_AVERAGE  
4Heap Used (bytes)HeapStatistics.HEAP_USED_AVERAGE  
5Non-Heap Committed (bytes)NonHeapStatistics.NON_HEAP_COMMITTED_AVERAGE  
6Non-Heap Init (bytes)NonHeapStatistics.NON_HEAP_INIT_AVERAGE  
7Non-Heap Max (bytes)NonHeapStatistics.NON_HEAP_MAX_AVERAGE  
8Non-Heap Used (bytes)NonHeapStatistics.NON_HEAP_USED_AVERAGE  
9Total Disk Space (bytes)SystemStatistics.DISK_TOTAL_SPACE_AVERAGE  
10Usable Disk Space (bytes)SystemStatistics.DISK_USABLE_SPACE_AVERAGE  
SR.Parameter TitleParameter NameTHRESHOLD VALUE
(WARN LEVEL)
THRESHOLD VALUE
(CRITICAL LEVEL)
1Free Physical Memory Size (bytes)SystemStatistics.FREE_PHYSICAL_MEMORY_SIZE_AVERAGE  
2Open File Descriptor CountSystemStatistics.OPEN_FILE_DESCRIPTOR_COUNT_AVERAGE  
3Process CPU LoadSystemStatistics.PROCESS_CPU_LOAD_PERCENTAGE_AVERAGE  
4Process CPU TimeSystemStatistics.PROCESS_CPU_TIME_AVERAGE  
5System CPU LoadSystemStatistics.SYSTEM_CPU_LOAD_PERCENTAGE_AVERAGE  
6Total Physical Memory Size (bytes)SystemStatistics.TOTAL_PHYSICAL_MEMORY_SIZE_AVERAGE  
7Code Cache Committed (bytes)MemoryPoolStatistics.CODE_CACHE_COMMITTED_AVERAGE  
8Code Cache Init (bytes)MemoryPoolStatistics.CODE_CACHE_INIT_AVERAGE  
9Code Cache Max (bytes)MemoryPoolStatistics.CODE_CACHE_MAX_AVERAGE  
10Code Cache Used (bytes)MemoryPoolStatistics.CODE_CACHE_USED_AVERAGE  
SR.Parameter TitleParameter NameTHRESHOLD VALUE
(WARN LEVEL)
THRESHOLD VALUE
(CRITICAL LEVEL)
1Compressed Class Space Committed (bytes)MemoryPoolStatistics.COMPRESSED_CLASS_SPACE_COMMITTED_AVERAGE  
2Compressed Class Space Init (bytes)MemoryPoolStatistics.COMPRESSED_CLASS_SPACE_INIT_AVERAGE  
3Compressed Class Space Max (bytes)MemoryPoolStatistics.COMPRESSED_CLASS_SPACE_MAX_AVERAGE  
4Compressed Class Space Used (bytes)MemoryPoolStatistics.COMPRESSED_CLASS_SPACE_USED_AVERAGE  
5Metaspace Committed (bytes)MemoryPoolStatistics.METASPACE_COMMITTED_AVERAGE  
6Metaspace Init (bytes)MemoryPoolStatistics.METASPACE_INIT_AVERAGE  
7Metaspace Max (bytes)MemoryPoolStatistics.METASPACE_MAX_AVERAGE  
8Metaspace Used (bytes)MemoryPoolStatistics.METASPACE_USED_AVERAGE  
9PS Eden Space Committed (bytes)MemoryPoolStatistics.PS_EDEN_SPACE_COMMITTED_AVERAGE  
10PS Eden Space Init (bytes)MemoryPoolStatistics.PS_EDEN_SPACE_INIT_AVERAGE  
SR.Parameter TitleParameter NameTHRESHOLD VALUE
(WARN LEVEL)
THRESHOLD VALUE
(CRITICAL LEVEL)
1PS Eden Space Max (bytes)MemoryPoolStatistics.PS_EDEN_SPACE_MAX_AVERAGE  
2PS Eden Space Used (bytes)MemoryPoolStatistics.PS_EDEN_SPACE_USED_AVERAGE  
3PS Old Generation Committed (bytes)MemoryPoolStatistics.PS_OLD_GEN_COMMITTED_AVERAGE  
4PS Old Generation Init (bytes)MemoryPoolStatistics.PS_OLD_GEN_INIT_AVERAGE  
5PS Old Generation Max (bytes)MemoryPoolStatistics.PS_OLD_GEN_MAX_AVERAGE  
6PS Old Generation Used (bytes)MemoryPoolStatistics.PS_OLD_GEN_USED_AVERAGE  
7PS Survivor Space Committed (bytes)MemoryPoolStatistics.PS_SURVIVOR_SPACE_COMMITTED_AVERAGE  
8PS Survivor Space Init (bytes)MemoryPoolStatistics.PS_SURVIVOR_SPACE_INIT_AVERAGE  
9PS Survivor Space Max (bytes)MemoryPoolStatistics.PS_SURVIVOR_SPACE_MAX_AVERAGE  
10PS Survivor Space Used (bytes)MemoryPoolStatistics.PS_SURVIVOR_SPACE_USED_AVERAGE  

Accepted Solutions (1)

Accepted Solutions (1)

Jörg_Hoh

Employee

17-04-2020

There are no "optimal values" for these. You can use these values for the purpose of comparing them over time (e.g. to evaluate the effect of optimizations), but it's hard to use them for anything else

Hi Jog,

 

Thanks for reply on this.

 

So is there any way to setup email alerts on current values of these parameters. I wanted to use ACS Common Health Check E-mailer to send health check reports with just current values of these parameters.

ACS Common Health Check Emailer provides the input field to add hc.tags. Below are the only fields. Is there a way to do this ?

 

Out-of-the-box tags

Tags

Health Checks

Tags

Health Checks

sling

Sling Get Servlet, Sling Java Script Handler, Sling Jsp Script Handler, Sling Jobs, Sling Referrer Filter

jobs

Sling Jobs

dispatcher

CQ Dispatcher Configuration

cq

CQ HTML Library Manager Config, Replication and Transport Users, WCM Filters Configuration

bundles

CRXDE Support, DavEx Health Check, WebDAV Health Check

packages, startup

Default CQ content packages are present

content

Default CQ content packages are present, Example Content Packages

login

Default Login Accounts, Example Content Packages

example

Example Content Packages

replication

Replication and Transport Users

dos

Sling Get Servlet

webserver, clickjacking

Web Server Configuration

deserialization

Deserialization Firewall Attach API Readiness, Deserialization Firewall Functional, Deserialization Firewall Loaded

queries

Query Traversal Limits

csrf

Sling Referer Filter

acl

User Profile Default Access

production

CQ Dispatcher Configuration, CQ HTML Library Manager Config, CRXDE Support,Default Login Accounts, Default Login Accounts, Example Content Packages, Sling Get Servlet, Sling Java Script Handler, Sling Jsp Script Handler, WCM Filters Configuration, Web Server Configuration, Authorizable Node Name Generation, DavEx Health Check, Sling Referrer Filter, WebDAV Health Check

security

CQ Dispatcher Configuration, CQ HTML Library Manager Config, CRXDE Support, Default Login Accounts, Example Content Packages, Replication and Transport Users, Sling Get Servlet, Sling Java Script Handler, Sling Jsp Script Handler, WCM Filters Configuration, Web Server Configuration, Authorizable Node Name Generation, DavEx Health Check, Deserialization Firewall Attach API Readiness, Deserialization Firewall Functional, Deserialization Firewall Loaded, Sling Referrer Filter, User Profile Default Access, WebDAV Health Check

system

Maintenance Task com.day.cq.audit.impl.AuditLogMaintenanceTask, Maintenance Task WorkflowPurgeTask, Maintenance Task RevisionCleanupTask

 

 

 

Have you checked its documentation already (https://adobe-consulting-services.github.io/acs-aem-commons/features/healthchecks/status-emailer/ind...). Any questions should be covered there.

Answers (0)