groupdocs-conversion / GroupDocs.Conversion-for-Java

GroupDocs.Conversion for Java examples, plugins and showcase projects
https://products.groupdocs.com/conversion/java
MIT License
25 stars 16 forks source link

`java.lang.OutOfMemoryError: GC overhead limit exceeded` while convert epub to txt #57

Open xinbimingjingtai opened 21 hours ago

xinbimingjingtai commented 21 hours ago

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.groupdocs groupdocs-conversion 24.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)