Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of Memory Error #2

Open
shades443 opened this issue Mar 6, 2021 · 1 comment
Open

Out of Memory Error #2

shades443 opened this issue Mar 6, 2021 · 1 comment

Comments

@shades443
Copy link

Hi,

I keep getting the error below:
Exception in thread "main" java.lang.OutOfMemoryError even after increasing my heap size.
XML-Flattener.txt

Is there a limit to the number of nested levels?

Thanks in advance.

@jjsteenkamp
Copy link
Member

Hi,

Yes indeed, the deeper you nest the structure and the more 'peer' levels to each nested structure you have the higher the demand on memory becomes. An exact limit is hard to define given the richness and variety of XML can take on. Certainly for the use-case I originally develop this for, nesting was no more then about a dozen so levels.

Would be interested to follow up on this. Not sure if you would be able to share with me your XML (or at least a 'masked' version of your XML), and perhaps your -Xmx memory settings or a heap dump?

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants