I' using groupdocs-conversion to convert epub to txt, I got a java.lang.OutOfMemoryError: GC overhead limit exceeded.
I tried modify vm options -XX:-UseGCOverheadLimit, -Xmx, -XX:MaxPermSize, -XX:ReservedCodeCacheSize, but it still occurred.
macOS Sonoma 14.6.1
java version "1.8.0_381"
Apache Maven 3.9.3
com.groupdocsgroupdocs-conversion24.9
public static void main(String[] args) {
Locale.setDefault(Locale.CHINA); // or Locale.US
// Load the source eBook file
try (Converter converter = new Converter("<epub file path>")) {
ConvertOptions<?> options;
options = new WordProcessingConvertOptions();
options.setFormat(WordProcessingFileType.Txt);
converter.convert("<txt target path>", options);
}
}
Exception in thread "java.lang.ThreadGroup[name=main,maxpri=10]_452" java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.groupdocs.conversion.internal.c.a.pd.internal.ms.System.Collections.Generic.lf.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.ms.System.Collections.Generic.lf.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.ms.System.Collections.Generic.lf.<init>(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l31y.l0p.<init>(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.html.dom.Element.<init>(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.html.HTMLElement.<init>(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.html.HTMLParagraphElement.<init>(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.html.dom.ld.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.html.lt.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.html.dom.lk.createElement(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l39p.ld.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l39p.ld.lf(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l39u.lh.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l39p.ld.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l39p.ld.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l39v.ly$1.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lt$1.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lt.lk(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lu.lf(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lb.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l39v.ly.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.html.dom.lk$lf$1$1.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lt.lk(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lb.ld(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lb.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lb$1.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l33f.lf$lI$1.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l68l.l1j.lI(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.l68l.l1n.run(Unknown Source)
at java.lang.Thread.run(Thread.java:750)
I' using
groupdocs-conversion
to convert epub to txt, I got ajava.lang.OutOfMemoryError: GC overhead limit exceeded
. I tried modify vm options-XX:-UseGCOverheadLimit
,-Xmx
,-XX:MaxPermSize
,-XX:ReservedCodeCacheSize
, but it still occurred.macOS Sonoma 14.6.1
java version "1.8.0_381"
Apache Maven 3.9.3