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

Encountered potentially-fixable OutOfMemoryError with large attachments #283

Open
jesse-gallagher opened this issue Jul 23, 2021 · 0 comments
Labels
enhancement New feature or request odpexporter ODP exporter implementation and servlet

Comments

@jesse-gallagher
Copy link
Member

I saw this in a DB with a UsingDocument that had a 300MB attachment(!). While it makes sense that this would hit memory limits, this specific path may be something that we could rectify by writing to a file buffer instead of a ByteArrayOutputStream. It's likely that it would fail on the next step when trying to actually process the XML, though.

[INFO] java.lang.OutOfMemoryError: Java heap space
[INFO] 	at java.util.Arrays.copyOf(Arrays.java:3236)
[INFO] 	at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
[INFO] 	at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
[INFO] 	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:135)
[INFO] 	at org.openntf.nsfodp.commons.io.SwiperOutputStream.write(SwiperOutputStream.java:76)
[INFO] 	at java.io.OutputStream.write(OutputStream.java:116)
[INFO] 	at java.io.OutputStream.write(OutputStream.java:75)
[INFO] 	at com.darwino.domino.napi.proc.XML_WRITE_FUNCTION$1.callback(XML_WRITE_FUNCTION.java:35)
...
@jesse-gallagher jesse-gallagher added enhancement New feature or request odpexporter ODP exporter implementation and servlet labels Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request odpexporter ODP exporter implementation and servlet
Projects
None yet
Development

No branches or pull requests

1 participant