[ 
https://issues.apache.org/jira/browse/LUCENE-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552786
 ] 

Doron Cohen commented on LUCENE-1091:
-------------------------------------

I tried on XP with Java 1.6:

{noformat}
  > java -version
  java version "1.6.0_02"
  Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
  Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode)
{noformat}

!screenshot-1.jpg!

The above screenshot is what happens at the end of adding 9,000,000 docs. The 
mem usage reported by Java matches that of the task manager (for java should 
look at total-memory), and is never greater than 36MB. 

I wonder whether you can reproduce this behavior with another, synthetic - non 
Lucene - simple program, which say, creates some text in string buffers and 
open random access files, writes in them, and occasionally close the files and 
open new ones? 

Also (repeating Grant's question)  did you get an out-of-mem error?


> Big IndexWriter memory leak: when Field.Index.TOKENIZED
> -------------------------------------------------------
>
>                 Key: LUCENE-1091
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1091
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.2
>         Environment: Ubuntu Linux 7.10, 32-bit
> Java 1.6.0 buld 1.6.0_03-b05 (default in Ubuntu 7.10)
> 1GB RAM
>            Reporter: Mirza Hadzic
>         Attachments: lucene.txt, LuceneOOM.PNG, screenshot-1.jpg, TestOOM.java
>
>
> This little program eats incrementally 2MB of virtual RAM per each 1000 
> documents indexed, only when Field.Index.TOKENIZED used :
> public Document getDoc() {
>    Document document = new Document();
>    document.add(new Field("foo", "foo bar", Field.Store.NO, 
> Field.Index.TOKENIZED));
>    return document;
> }
> public Document run() {
>    IndexWriter writer = new IndexWriter(new File(jIndexFileName), new 
> StandardAnalyzer(), true);                                      
>    for (int i = 0; i < 1000000; i++) {
>       writer.addDocument(getDoc());
>    }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to