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 DE2856BC7 for ; Sat, 11 Jun 2011 23:28:08 +0000 (UTC) Received: (qmail 93203 invoked by uid 500); 11 Jun 2011 23:28:05 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 93148 invoked by uid 500); 11 Jun 2011 23:28:05 -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 93140 invoked by uid 99); 11 Jun 2011 23:28:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 23:28:05 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.54.42.164] (HELO smtpq1.tb.mail.iss.as9143.net) (212.54.42.164) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2011 23:27:57 +0000 Received: from [212.54.42.144] (helo=smtp13.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1QVXaZ-0005Hx-H6 for solr-user@lucene.apache.org; Sun, 12 Jun 2011 01:27:35 +0200 Received: from 5249ddab.cm-4-2d.dynamic.ziggo.nl ([82.73.221.171] helo=relax.localnet) by smtp13.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1QVXaY-0003bI-Ti for solr-user@lucene.apache.org; Sun, 12 Jun 2011 01:27:34 +0200 From: Markus Jelsma Reply-To: markus.jelsma@openindex.io Organization: Openindex To: solr-user@lucene.apache.org Subject: Calculating memory consumption FVH Date: Sun, 12 Jun 2011 01:27:18 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-29-generic; KDE/4.5.5; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201106120127.18740.markus.jelsma@openindex.io> X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1QVXaY-0003bI-Ti X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-1.383, vereist 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_40 -0.00, CM_REPLY_NOARROW 0.30, PROLO_TRUST_RDNS -3.00, PROLO_TRUST_TO_DIRECT -3.48, RDNS_DYNAMIC 0.98, TO_NO_BRKTS_DIRECT 3.48, TO_NO_BRKTS_DYNIP 1.33) X-ZiggoSMTP-MailScanner-From: markus.jelsma@openindex.io X-Old-Spam-Status: No Hi, How can i calculate the memory requirements for highlighting documents where the variables are number of documents to highlight and the total size of the documents in a single request? I can then multiply a worst-case result set with the expected concurrency. For example, with a _limited_ heap highlighting works perfectly well and is only CPU-bound, which is clearly visible when highlighting a result set with many very large documents. When such a worst-case query is fired a lot of times concurrently Solr is guaranteed to run out of memory. So, now i'm looking for a method to calcualte per-request memory consumption for set-ups with FVH and all term* settings enabled on the highlighted field in schema. Thanks,