Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE5E010D18 for ; Mon, 17 Jun 2013 21:46:13 +0000 (UTC) Received: (qmail 11358 invoked by uid 500); 17 Jun 2013 21:46:10 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 11306 invoked by uid 500); 17 Jun 2013 21:46:10 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 11298 invoked by uid 99); 17 Jun 2013 21:46:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 21:46:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of idokissos@gmail.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-we0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 21:46:04 +0000 Received: by mail-we0-f174.google.com with SMTP id q58so2798794wes.19 for ; Mon, 17 Jun 2013 14:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=BTeSVFZ+NpNAEHZ7Ppg5VOeDJ060MN6+UOG64Tp6/lA=; b=xV4ou4kJrMBevPEaSrY/B3KfVUZnBszYNVhdNAr7xmQWrbSUvsj/HtLVgzDouwTgjS 9tk3lGMuF9zWHyYyT/MXUGDJ2HjIRzgRXMmvs9JV3+odRR9zDWSp3zWACmQQCWRgkIfE iVc+97LLaa/rsqjcqFvLAA+pnyhl/JxJrZzgMk9wH7pChet8k6XRd31YLRJWfRMVpxkA puS7B8vYBefCvvEu6OQbyLfC48yVveFDcywCmpXHgo1lPqLlFb9dTSKOOZOG5A4/dYtV djOFhPAO8gAqm0hbgDKBF+jnyR4kp3s9Kh9PygTQ2MMk3u1b3Pv+wfSq7sEZx3r6z9cB v+IQ== X-Received: by 10.194.240.169 with SMTP id wb9mr8933272wjc.90.1371505544408; Mon, 17 Jun 2013 14:45:44 -0700 (PDT) MIME-Version: 1.0 Sender: idokissos@gmail.com Received: by 10.194.2.196 with HTTP; Mon, 17 Jun 2013 14:45:14 -0700 (PDT) In-Reply-To: <7FDD0AB1-545F-43F5-B4E6-9F7EDD2F19AE@wunderwood.org> References: <151D4D22-0C9F-4A3F-9F82-1B3C6A5ABF5D@wunderwood.org> <7FDD0AB1-545F-43F5-B4E6-9F7EDD2F19AE@wunderwood.org> From: Manuel Le Normand Date: Tue, 18 Jun 2013 00:45:14 +0300 X-Google-Sender-Auth: XNrEXYsnUp1G2BjlII6DKtV97YQ Message-ID: Subject: Re: Avoiding OOM fatal crash To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=089e013d1a04c834ed04df608484 X-Virus-Checked: Checked by ClamAV on apache.org --089e013d1a04c834ed04df608484 Content-Type: text/plain; charset=ISO-8859-1 Unfortunately my organisation's too big to control or teach every employee what are the limits, as well as they can vary (many facets - how much is ok?, asking for too many fields in proportion of too many rows etc) Don't you think it is preferable to "commit" the maxBufferSize in the JVM heap for indexing only? On Tue, Jun 18, 2013 at 12:11 AM, Walter Underwood wrote: > Make them aware of what is required. Solr is not designed to return huge > requests. > > If you need to do this, you will need to run the JVM with a big enough > heap to build the request. You are getting OOM because the JVM does not > have enough memory to build a response with 100K documents. > > wunder > > On Jun 17, 2013, at 1:57 PM, Manuel Le Normand wrote: > > > One of my users requested it, they are less aware of what's allowed and I > > don't want apriori blocking them for long specific request (there are > other > > params that might end up OOMing me). > > > > I thought of timeAllowed restriction, but also this solution cannot > > guarantee during this delay I would not get the JVM heap flooded (for > > example I already have all cashed and my RAM io's are very fast) > > > > > > On Mon, Jun 17, 2013 at 11:47 PM, Walter Underwood < > wunder@wunderwood.org>wrote: > > > >> Don't request 100K docs in a single query. Fetch them in smaller > batches. > >> > >> wunder > >> > >> On Jun 17, 2013, at 1:44 PM, Manuel Le Normand wrote: > >> > >>> Hello again, > >>> > >>> After a heavy query on my index (returning 100K docs in a single query) > >> my > >>> JVM heap's floods and I get an JAVA OOM exception, and then that my > >>> GCcannot collect anything (GC > >>> overhead limit exceeded) as these memory chunks are not disposable. > >>> > >>> I want to afford queries like this, my concern is that this case > >> provokes a > >>> total Solr crash, returning a 503 Internal Server Error while trying > to * > >>> index.* > >>> > >>> Is there anyway to separate these two logics? I'm fine with solr not > >> being > >>> able to return any response after returning this OOM, but I don't see > the > >>> justification the query to flood JVM's internal (bounded) buffers for > >>> writings. > >>> > >>> Thanks, > >>> Manuel > >> > > > > > --089e013d1a04c834ed04df608484--