<i id='kzXfq'><tr id='kzXfq'><dt id='kzXfq'><q id='kzXfq'><span id='kzXfq'><b id='kzXfq'><form id='kzXfq'><ins id='kzXfq'></ins><ul id='kzXfq'></ul><sub id='kzXfq'></sub></form><legend id='kzXfq'></legend><bdo id='kzXfq'><pre id='kzXfq'><center id='kzXfq'></center></pre></bdo></b><th id='kzXfq'></th></span></q></dt></tr></i><div id='kzXfq'><tfoot id='kzXfq'></tfoot><dl id='kzXfq'><fieldset id='kzXfq'></fieldset></dl></div>

    <small id='kzXfq'></small><noframes id='kzXfq'>

      <tfoot id='kzXfq'></tfoot>

        <legend id='kzXfq'><style id='kzXfq'><dir id='kzXfq'><q id='kzXfq'></q></dir></style></legend>
          <bdo id='kzXfq'></bdo><ul id='kzXfq'></ul>

      1. 打开 lucene 索引时出错:映射失败

        时间:2023-09-29
        1. <legend id='nYvY9'><style id='nYvY9'><dir id='nYvY9'><q id='nYvY9'></q></dir></style></legend>
        2. <tfoot id='nYvY9'></tfoot>

                <tbody id='nYvY9'></tbody>
                <bdo id='nYvY9'></bdo><ul id='nYvY9'></ul>

                  <small id='nYvY9'></small><noframes id='nYvY9'>

                • <i id='nYvY9'><tr id='nYvY9'><dt id='nYvY9'><q id='nYvY9'><span id='nYvY9'><b id='nYvY9'><form id='nYvY9'><ins id='nYvY9'></ins><ul id='nYvY9'></ul><sub id='nYvY9'></sub></form><legend id='nYvY9'></legend><bdo id='nYvY9'><pre id='nYvY9'><center id='nYvY9'></center></pre></bdo></b><th id='nYvY9'></th></span></q></dt></tr></i><div id='nYvY9'><tfoot id='nYvY9'></tfoot><dl id='nYvY9'><fieldset id='nYvY9'></fieldset></dl></div>
                  本文介绍了打开 lucene 索引时出错:映射失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我尝试使用 1、2、3、4 GB 内存启动该进程,但仍然出现相同的错误.有小费吗?gc 日志显示它正在运行 GC,即使它有足够的内存.但可能这个错误与使用 NIO 的内存映射文件有关.有人以前见过这样的事情吗?如果是这样,您是如何解决的?

                  I have tried starting the process with 1,2,3,4 GB of memory but still get the same error. Any tips? The gc log shows that its running the GC even though it has enough memory. But probably this error has something to do with the memory mapped files using NIO. Anybody has seen anything like this before? And if so, how did you solve it?

                  $ java -d64 -server -Xmx15g -Xms15g -XX:+UseConcMarkSweepGC  -verbose:gc -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/frank/heap.dmp  -jar lukeall-3.5.0.jar 
                      [Full GC 207648K->28758K(15660544K), 0.1105290 secs]
                      [Full GC 61479K->15416K(15660544K), 0.0654310 secs]
                      [Full GC 69950K->15418K(15660544K), 0.0717170 secs]
                      [Full GC 69952K->15418K(15660544K), 0.0661720 secs]
                      java.io.IOException: Map failed
                          at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:849)
                          at org.apache.lucene.store.MMapDirectory$MMapIndexInput.<init>(MMapDirectory.java:265)
                          at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:216)
                          at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:89)
                          at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:115)
                          at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:93)
                          at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:113)
                          at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:83)
                          at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:754)
                          at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:75)
                          at org.apache.lucene.index.IndexReader.open(IndexReader.java:462)
                          at org.apache.lucene.index.IndexReader.open(IndexReader.java:377)
                          at org.getopt.luke.Luke.openIndex(Unknown Source)
                          at org.getopt.luke.Luke.openOk(Unknown Source)
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          at thinlet.Thinlet.invokeImpl(Unknown Source)
                          at thinlet.Thinlet.invoke(Unknown Source)
                          at java.awt.Component.dispatchEventImpl(Component.java:4861)
                      Caused by: java.lang.OutOfMemoryError: Map failed
                          at sun.nio.ch.FileChannelImpl.map0(Native Method)
                          at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:846)
                          ... 48 more
                  

                  推荐答案

                  ulimit -v unlimited
                  

                  问题解决了!

                  这篇关于打开 lucene 索引时出错:映射失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Lucene 性能 下一篇:如何在 Lucene 搜索中匹配精确文本?

                  相关文章

                  最新文章

                  <small id='J8SlJ'></small><noframes id='J8SlJ'>

                • <legend id='J8SlJ'><style id='J8SlJ'><dir id='J8SlJ'><q id='J8SlJ'></q></dir></style></legend>

                    <i id='J8SlJ'><tr id='J8SlJ'><dt id='J8SlJ'><q id='J8SlJ'><span id='J8SlJ'><b id='J8SlJ'><form id='J8SlJ'><ins id='J8SlJ'></ins><ul id='J8SlJ'></ul><sub id='J8SlJ'></sub></form><legend id='J8SlJ'></legend><bdo id='J8SlJ'><pre id='J8SlJ'><center id='J8SlJ'></center></pre></bdo></b><th id='J8SlJ'></th></span></q></dt></tr></i><div id='J8SlJ'><tfoot id='J8SlJ'></tfoot><dl id='J8SlJ'><fieldset id='J8SlJ'></fieldset></dl></div>
                      <tfoot id='J8SlJ'></tfoot>
                        <bdo id='J8SlJ'></bdo><ul id='J8SlJ'></ul>