Are there any limits on the size of a serialized object?

Dane Foster

There are limits, but in practice you shouldn't encounter them. You are limited by the amount of memory your JVM can allocate to the creation and maintainence of your object. As for writing it out to disk, you are limited by the maximum file size of the underlying OS. Linux for example, has a 2GB limit on any one file.

See also: