gpt4 book ai didi

java - jack 兔子 java.lang.OutOfMemoryError : Java heap space

转载 作者:行者123 更新时间:2023-12-01 13:09:38 26 4
gpt4 key购买 nike

谁遇到过有关长耳大野兔的问题?跟踪如下:

java.lang.OutOfMemoryError: Java heap space at org.apache.jackrabbit.core.query.lucene.FieldNames.createNamedValue(FieldNames.java:141) at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createFieldWithoutNorms(NodeIndexer.java:539) at org.apache.jackrabbit.core.query.lucene.NodeIndexer.addStringValue(NodeIndexer.java:754) at org.apache.jackrabbit.core.query.lucene.NodeIndexer.addValue(NodeIndexer.java:376) at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDoc(NodeIndexer.java:259) at org.apache.jackrabbit.core.query.lucene.SearchIndex.createDocument(SearchIndex.java:1208) at org.apache.jackrabbit.core.query.lucene.SearchIndex.updateNodes(SearchIndex.java:657) at org.apache.jackrabbit.core.SearchManager.onEvent(SearchManager.java:408) at org.apache.jackrabbit.core.observation.EventConsumer.consumeEvents(EventConsumer.java:248) at org.apache.jackrabbit.core.observation.ObservationDispatcher.dispatchEvents(ObservationDispatcher.java:214) at org.apache.jackrabbit.core.observation.EventStateCollection.dispatch(EventStateCollection.java:475) at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:801) at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1492) at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:400) at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354) at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:375) at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:275) at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:258) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329) at org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveOperation.java:64) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361) at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:812) at org.apache.jackrabbit.server.remoting.davex.JcrRemotingServlet.processDiff(JcrRemotingServlet.java:525) at org.apache.jackrabbit.server.remoting.davex.JcrRemotingServlet.doPost(JcrRemotingServlet.java:398) at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.execute(AbstractWebdavServlet.java:326) at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.service(AbstractWebdavServlet.java:263) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

有时它会抛出:

java.lang.OutOfMemoryError: GC overhead limit exceeded

最佳答案

这意味着没有足够的堆空间来执行程序。您可以尝试在启动 JVM 时指定更多的堆空间,例如

java -Xmx1G ...

将指定 1 GB 堆空间。

设置堆空间的选项可能会因您使用的 JVM 而异。

关于java - jack 兔子 java.lang.OutOfMemoryError : Java heap space,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22983412/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com