XSweet Java VM doesn't have enough memory to run
It's unclear exactly how to reproduce this, but after uploading many word docs in a short period, XSweet began failing. This is the log from the first step in the XSweet recipe. The issue seems to be with the overhead memory required to spin up Java VMs to run the process. Once this error presents itself, all subsequent attempts to run XSweet fail, at least in the short term. About ~30min after getting this error, one single file upload worked properly and round-tripped into Editoria, but then this presented itself again.
Here's the error and the log for the first step in the XSweet recipe (Xsweet Docx to HTML Extractor):
Errors: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f6c00000, 17825792, 0) failed; error='Cannot allocate memory' (errno=12), ["OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000f6c00000, 17825792, 0) failed; error='Cannot allocate memory' (errno=12)\n"]
Notes: ## There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocation (mmap) failed to map 17825792 bytes for committing reserved memory.# An error report file with more information is saved as:# /home/deploy/ink-api/production/shared/files/1511457556_NjEwZmFmMDI/3/hs_err_pid32490.log
- Short-term fix: increase server resources may fix this
- Long-term fix: @charlie to implement Java threading to use only one JVM (large task)