如何增加pandoc执行中的堆内存? [英] How to increase heap memory in pandoc execution?
问题描述
我正在将docx转换为epub。文档包含很多图像。当执行转换时,我有错误:
pandoc.exe:Heap exhausted;当前最大堆大小为1073741824
字节(1024 MB);使用'+ RTS -M'来增加它。
执行作业时出错!
我正在使用Node.js。
任何人都可以协助我如何增加堆大小?
更新:
我增加了大小,直到2GB。但是pandoc仍然显示错误
Pandoc.exe内存不足
是否有可能解决这个问题?
您可以增加可用于pandoc的内存,比如 但潜在的问题可能是Pandoc使用 zip-archive 压缩EPUB文件。看来您目前至少需要与您想要生成的未压缩的EPUB一样多的内存(但是我会在提交错误报告之前验证它)。 也应该缩小你的图像一点点,因为2GB对于电子书来说似乎相当过分(即使压缩时它有点小)。 I am working on converting docx to epub. Document contains lot of images. When execution of converting, i have error: I am using Node.js. Can any one assist me how to increase heap size? Update: Is it possible to solve this issue? You can increase the memory available to pandoc, to say But the underlying problem is probably that Pandoc uses zip-archive to zip the EPUB file. It seems you currently need at least as much memory as the uncompressed EPUB you want to generate (but I'd verify this before filing a bug report there). You probably also should scale down your images a bit since 2GB seems rather excessive for an e-book (even if it's a bit smaller when compressed). 这篇关于如何增加pandoc执行中的堆内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! 2048 MB
,其中包含:
pre $ pandoc.exe + RTS -M2048
"pandoc.exe: Heap exhausted; Current maximum heap size is 1073741824
bytes (1024 MB); use `+RTS -M' to increase it.
Error while executing job!"
I have increased size till 2GB. But pandoc still shows error
"Pandoc.exe out of memory"
2048 MB
, with:pandoc.exe +RTS -M2048