Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Large attachments may cause Out Of Memory errors and performance degradation - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Large attachments may cause Out Of Memory errors and performance degradation
KB0683260

Large attachments may cause Out Of Memory errors and performance degradation


4362 Views Last updated : Jul 24, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Attempting to attach multiple large files at the same time may cause an OOM error. The attachment window may show the attachments loading for several minutes, but the attachment.do transaction never actually completes. Some attachments may appear as duplicates in the activity stream and in the Manage Attachment section, while others may fail.

Release

Istanbul and Jakarta have had issues with Images over 5MB. Optimization has been performed in Kingston and later.

Cause

When an image is attached to a form, it gets scaled down rendered as a thumbnail in the Activity Stream (formatter), so users can see the images in line with their updates. This process is achieved through system property "glide.ui.activity_stream.scale_images" which is active by default in the platform. When attachments are larger than 5MB and the activity formatter attempts to render the thumbnail, this can cause an out-of-memory event.

Resolution

There is a system property that can be added to an instance to manage the maximum image scaling dimensions. The platform limits the size of attachments that can be loaded into memory to prevent performance degradation from occurring. The value set in this property "com.glide.attachment.max_get_size" would allow administrators to specify a maximum number of megabytes to which a thumbnail would render. Specifically with this property set, if the value is at 5242880, then any image over 5242880 bytes (5MB) would render as a link instead of a thumbnail in the activity stream.

Navigate to sys_properties.list and add the following record:
  • Name - com.glide.attachment.max_get_size
  • Type - integer
  • Value - 5242880
 Note: The value field metric is set in bytes and the default recommended value is 5242880. Admins can adjust this value as needed. It is not recommended to increase this property to a large value beyond 5MB as it can significantly increase the risk of running out of free memory, resulting in an outage.



 Note: "com.glide.attachment.max_get_size" is different from the "com.glide.attachment.max_size" property which limits the total maximum size of an attachment that can be uploaded to the system. The default value for this property is set to 1024 (MB) and is present in every environment OOB. Property "com.glide.attachment.max_get_size" is not present OOB and must be manually added to your system in order to take effect.

 

Related Links

  • Administering attachments
  • Add and manage attachments
  • How to adjust the maximum allowable size of an attachment to a record

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.