いつもこれが出る。 >|| 2011/12/05 16:54:09 org.apache.solr.handler.dataimport.JdbcDataSource$1 call 情報: Time taken for getConnection(): 8 2011/12/05 17:04:14 org.apache.solr.common.SolrException log 致命的: Full Import failed:org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.OutOfMemoryError: Java heap space at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:669) at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:268) at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:187) at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:359) at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:427) at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:408) Caused by: java.lang.OutOfMemoryError: Java heap space at net.java.sen.dictionary.Node.clone(Node.java:101) at net.java.sen.dictionary.Viterbi.calculateConnectionCosts(Viterbi.java:72) at net.java.sen.dictionary.Viterbi.getBestTokens(Viterbi.java:200) at net.java.sen.StringTagger.analyze(StringTagger.java:112) at org.apache.lucene.analysis.ja.StreamTagger2.incrementTokenBuffer(StreamTagger2.java:178) at org.apache.lucene.analysis.ja.StreamTagger2.next(StreamTagger2.java:65) at org.apache.lucene.analysis.ja.JapaneseTokenizer.incrementToken(JapaneseTokenizer.java:93) at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:135) at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:278) at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:766) at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2327) at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2299) at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:240) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61) at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:115) at org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:73) at org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHandler.java:293) at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:636) ... 5 more ||< http://yamori-jp.blogspot.com/2010/08/apache-solr-mysql-php.html http://wiki.apache.org/solr/DataImportHandlerFaq によればdatasourceにbatchSize=-1を指定すればよいらしい。