What is the maximum length of String that can be PDX serialized?
search cancel

What is the maximum length of String that can be PDX serialized?

book

Article ID: 293993

calendar_today

Updated On:

Products

VMware Tanzu Gemfire

Issue/Introduction

The purpose of this article is to explain the limits in String length when using PDX serialization - this article applies to GemFire versions 7 and later.

 


Resolution

GemFire PDX serialization does not directly limit the length of a String. So any String that can be created in Java can be serialized.

But note that PDX serialization poses another limit that can in theory have impact. Each object that is serialized with PDX has a 2GB limit to its total serialized size that includes nested objects. This is because the PDX header records the serialized length of the object bytes as a signed 32bit int


Additional Information

Applies to

GemFire 7 and later