Memory leak defect or misssuse of SolrJ API?

2016-01-30 Thread Steven White
Hi folks, I'm getting memory leak in my code. I narrowed the code to the following minimal to cause the leak. while (true) { HttpSolrClient client = new HttpSolrClient(" http://192.168.202.129:8983/solr/core1";); client.close(); } Is this a defect or an issue in the way

Re: Is Solr cache cleared when I restart Solr?

2016-01-30 Thread Zheng Lin Edwin Yeo
I did change the JVM heap size from 16GB to 24GB. Will that make a difference? Regards, Edwin On 28 January 2016 at 22:10, Alessandro Benedetti wrote: > As already specified you need to distinguish between Solr Cache and OS > Memory mapped files. > What you should clearly notice in your situati

Increasing maxMergedSegmentMB value

2016-01-30 Thread Zheng Lin Edwin Yeo
Hi, I would like to find out, when I increase the maxMergedSegmentMB from 10240 (10GB) to 15360 (15GB), will all the 10GB segments that were created previously be automatically merge to 15GB? This setting is part of my mergePolicy setting, which I am using TieredMergePolicy. 1

Re: Memory leak defect or misssuse of SolrJ API?

2016-01-30 Thread Susheel Kumar
Hi Steve, Can you please elaborate what error you are getting and i didn't understand your code above, that why initiating Solr client object is in loop. In general creating client instance should be outside the loop and a one time activity during the complete execution of program. Thanks, Sus

Re: Memory leak defect or misssuse of SolrJ API?

2016-01-30 Thread Walter Underwood
Create one HttpSolrClient object for each Solr server you are talking to. Reuse it for all requests to that Solr server. It will manage a pool of connections and keep them alive for faster communication. I took a look at the JavaDoc and the wiki doc, neither one explains this well. I don’t thi

Re: Memory leak defect or misssuse of SolrJ API?

2016-01-30 Thread Erick Erickson
Assuming you're not really using code like above and it's a test case What's your evidence that memory consumption goes up? Are you sure you're not just seeing uncollected garbage? When I attached Java Mission Control to this program it looked pretty scary at first, but the heap allocated aft

Re: Increasing maxMergedSegmentMB value

2016-01-30 Thread Shawn Heisey
On 1/30/2016 7:31 AM, Zheng Lin Edwin Yeo wrote: > I would like to find out, when I increase the maxMergedSegmentMB from 10240 > (10GB) to 15360 (15GB), will all the 10GB segments that were created > previously be automatically merge to 15GB? Not necessarily. It will make those 10GB+ segments eli

Full Indexing is geeting failed with hybris application

2016-01-30 Thread Manoj Agrawal (ADM - Pune)
Hi Team, We have migrated our application from hybris version 5.2 to version 5.5.1.4 and we are using solr version 4.6. After running the full indexing , below error is coming in the application log. Could anyone help me on this . I can give also give you more information on this as well. Err

Re: Increasing maxMergedSegmentMB value

2016-01-30 Thread Jack Krupansky
>From the Lucene MergePolicy Javadoc: "Whenever the segments in an index have been altered by IndexWriter , either the addition of a newly flushed segment, addition of many segments from addIndexes* calls, or a pre

Full Indexing is geeting failed with hybris application

2016-01-30 Thread Manoj Agrawal (ADM - Pune)
Hi Team, We have migrated our application from hybris version 5.2 to version 5.5.1.4 and we are using solr version 4.6. After running the full indexing , below error is coming in the application log. Could anyone help me on this . I can give also give you more information on this as well. Err