Open Ask AI (⌘/Ctrl+I)

Magnolia author or public slow response

Symptom

A CustomerMagnoliaAuthorSlowResponse alert is firing or a CustomerMagnoliaPublicSlowResponse alert is firing. Both alerts use the same metrics but with different thresholds:

  • The author instance is slow responding if the average response time for 90% of requests is more than 2 seconds
  • A public instance is slow responding if the average response time for 90% of requests is more than 0.8 seconds

Observations

Here are the details on the alerts:

Alert: CustomerMagnoliaAuthorSlowResponse

PropertyValue
Expressionmgnl_filterChain_duration_seconds{component="author-instance",quantile="0.9"} > 2
Delay15 minutes
Labelsteam: customer

Annotations:

  • summary
  • description
  • tenant
  • cluster_id
  • cluster_name
  • instance
  • namespace
  • pod

Alert: CustomerMagnoliaPublicSlowResponse

PropertyValue
Expressionmgnl_filterChain_duration_seconds{component="public-instance",quantile="0.9"} > 0.8
Delay15 minutes
Labelsteam: customer

Annotations:

  • summary
  • description
  • tenant
  • cluster_id
  • cluster_name
  • instance
  • namespace
  • pod

Solutions

This section provides solutions that should help resolve the issue in most cases.

Investigate slow response cause

Slow responses from Magnolia can be caused by many things, including the implementation of your project.

Here’s an incomplete list of possible causes of slow response times and what actions to take:

CauseAction
High request volumeCheck the rate of requests to Magnolia.
Insufficient memoryCheck the memory allocation for the Magnolia pod and the JVM max heap setting.
Excessive garbage collectionCheck for frequent garbage collection and how close and how frequently the JVM heap used is to the JVM max heap.
Magnolia cache is underutilizedCheck the Magnolia cache hit percentage.
Custom filter bottleneckCheck for custom filters in the filter chain.
Slow requests per typeTurn on detailed response time metrics and check for slow requests by type (e.g., resources, images, pages).