You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Salman Ansari <sa...@gmail.com> on 2015/12/08 13:52:44 UTC

Issue with Querying Solr

Hi,

I have created a cluster of Solr and Zookeepers on 3 machines connected
together. Currently, I am facing a weird problem. My collection has only
261 documents and when I try to query the documents using the browser such
as

http://
[ASolrServerInTheCluster]:8983/solr/sabrLocationsStore/select?q=(*:*)

it returns the documents properly. However, when I try to do the same using
Solr.NET, it throws java.lang.OutOfMemoryError: Java heap space exception
(although I have very few documents there). Any ideas why I am getting this
error?

Regards,
Salman

Re: Issue with Querying Solr

Posted by Andrea Gazzarini <a....@gmail.com>.
I would set up logging in the admin console (queries should be logged out
by default), and then check the difference between the two invocations.
I don't believe the two clients are doing the *same* thing, there should be
some difference.

Another chance could be that the OOM is just behind the corner and the
Solr.NET invocation, the last invoker, is not the true responsible.

Andrea


2015-12-08 13:52 GMT+01:00 Salman Ansari <sa...@gmail.com>:

> Hi,
>
> I have created a cluster of Solr and Zookeepers on 3 machines connected
> together. Currently, I am facing a weird problem. My collection has only
> 261 documents and when I try to query the documents using the browser such
> as
>
> http://
> [ASolrServerInTheCluster]:8983/solr/sabrLocationsStore/select?q=(*:*)
>
> it returns the documents properly. However, when I try to do the same using
> Solr.NET, it throws java.lang.OutOfMemoryError: Java heap space exception
> (although I have very few documents there). Any ideas why I am getting this
> error?
>
> Regards,
> Salman
>

Re: Issue with Querying Solr

Posted by Don Bosco Durai <bo...@apache.org>.
You only have 261 documents. That shouldn't be a problem, unless your document size is huge.
I feel, the problem still exists somewhere. You have just deferred it...
Bosco






On Tue, Dec 8, 2015 at 6:48 AM -0800, "Salman Ansari" <sa...@gmail.com> wrote:










Thanks Andrea and Alexandre for your responses. Indeed it was the problem
that Solr.NET was returning many rows (as I captured this by fiddler).
Currently, my setup has only 500MB of JVM (which I will definitely
increase) but at least I found the culprit by reducing the number of rows
returned.

Regards,
Salman

On Tue, Dec 8, 2015 at 5:30 PM, Alexandre Rafalovitch 
wrote:

> Solr by default only returns 10 rows. SolrNet by default returns many
> rows. I don't know why that would cause OOM, but that's definitely
> your difference unless you dealt with it:
>
> https://github.com/mausch/SolrNet/blob/master/Documentation/Querying.md#pagination
>
> Regards,
>    Alex.
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 8 December 2015 at 07:52, Salman Ansari 
> wrote:
> > Hi,
> >
> > I have created a cluster of Solr and Zookeepers on 3 machines connected
> > together. Currently, I am facing a weird problem. My collection has only
> > 261 documents and when I try to query the documents using the browser
> such
> > as
> >
> > http://
> > [ASolrServerInTheCluster]:8983/solr/sabrLocationsStore/select?q=(*:*)
> >
> > it returns the documents properly. However, when I try to do the same
> using
> > Solr.NET, it throws java.lang.OutOfMemoryError: Java heap space exception
> > (although I have very few documents there). Any ideas why I am getting
> this
> > error?
> >
> > Regards,
> > Salman
>






Re: Issue with Querying Solr

Posted by Salman Ansari <sa...@gmail.com>.
Thanks Andrea and Alexandre for your responses. Indeed it was the problem
that Solr.NET was returning many rows (as I captured this by fiddler).
Currently, my setup has only 500MB of JVM (which I will definitely
increase) but at least I found the culprit by reducing the number of rows
returned.

Regards,
Salman

On Tue, Dec 8, 2015 at 5:30 PM, Alexandre Rafalovitch <ar...@gmail.com>
wrote:

> Solr by default only returns 10 rows. SolrNet by default returns many
> rows. I don't know why that would cause OOM, but that's definitely
> your difference unless you dealt with it:
>
> https://github.com/mausch/SolrNet/blob/master/Documentation/Querying.md#pagination
>
> Regards,
>    Alex.
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 8 December 2015 at 07:52, Salman Ansari <sa...@gmail.com>
> wrote:
> > Hi,
> >
> > I have created a cluster of Solr and Zookeepers on 3 machines connected
> > together. Currently, I am facing a weird problem. My collection has only
> > 261 documents and when I try to query the documents using the browser
> such
> > as
> >
> > http://
> > [ASolrServerInTheCluster]:8983/solr/sabrLocationsStore/select?q=(*:*)
> >
> > it returns the documents properly. However, when I try to do the same
> using
> > Solr.NET, it throws java.lang.OutOfMemoryError: Java heap space exception
> > (although I have very few documents there). Any ideas why I am getting
> this
> > error?
> >
> > Regards,
> > Salman
>

Re: Issue with Querying Solr

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Solr by default only returns 10 rows. SolrNet by default returns many
rows. I don't know why that would cause OOM, but that's definitely
your difference unless you dealt with it:
https://github.com/mausch/SolrNet/blob/master/Documentation/Querying.md#pagination

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 8 December 2015 at 07:52, Salman Ansari <sa...@gmail.com> wrote:
> Hi,
>
> I have created a cluster of Solr and Zookeepers on 3 machines connected
> together. Currently, I am facing a weird problem. My collection has only
> 261 documents and when I try to query the documents using the browser such
> as
>
> http://
> [ASolrServerInTheCluster]:8983/solr/sabrLocationsStore/select?q=(*:*)
>
> it returns the documents properly. However, when I try to do the same using
> Solr.NET, it throws java.lang.OutOfMemoryError: Java heap space exception
> (although I have very few documents there). Any ideas why I am getting this
> error?
>
> Regards,
> Salman