I have code that is trying to serialize a very large Java object through Spring into Redis. For most objects, this works fine. For a few very large objects it results in StackOverflowError. I'm trying to figure out if I can tune for this, but I can't find a way to ask the JVM "how big is the default stack"?
Is there some System.getDefaultStackSize()
or System.getProperty("Xss")
that I can leverage here?