Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 50485 invoked from network); 14 Dec 2010 05:08:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Dec 2010 05:08:38 -0000 Received: (qmail 28866 invoked by uid 500); 14 Dec 2010 05:08:36 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 28622 invoked by uid 500); 14 Dec 2010 05:08:35 -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 28614 invoked by uid 99); 14 Dec 2010 05:08:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 05:08:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.48] (HELO mail-pw0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 05:08:26 +0000 Received: by pwj9 with SMTP id 9so58618pwj.35 for ; Mon, 13 Dec 2010 21:08:04 -0800 (PST) Received: by 10.142.161.11 with SMTP id j11mr4062096wfe.133.1292303284221; Mon, 13 Dec 2010 21:08:04 -0800 (PST) Received: from [192.168.1.115] (S0106001ee5440eba.vc.shawcable.net [24.87.133.241]) by mx.google.com with ESMTPS id x18sm9854445wfa.11.2010.12.13.21.08.02 (version=SSLv3 cipher=RC4-MD5); Mon, 13 Dec 2010 21:08:03 -0800 (PST) Message-ID: <4D06FB90.6020207@z33k.com> Date: Mon, 13 Dec 2010 21:07:28 -0800 From: Cameron Hurst User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b8pre) Gecko/20101126 Thunderbird/3.3a2pre MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Solr Memory Usage Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello all, I am a new user to Solr and am currently in a testing phase before I try and take my server into production. For my system I have a tomcat6 servlet running solr 1.4.1. Everything is running currently on my local computer and it is parsing data from a local dump of the production MySQL server. Things seem stable initially and I am able to query everything and have not experienced any sort of errors. The problem has to do with how much RAM the server uses compared to my expectations. On initial start up the tomcat6 server, 90MB of RAM is used. This seems normal compared to what I am expecting and what google searches give me. >From there in my solrconf.xml settings I have the maximum RAM buffer set to be 32 MB. Because of this, I am expecting that ontop of the 90MB of RAM for the first turn on that during indexing, and running operations that it will load an additional 32MB of information into RAM. Along with HTTP request and other buffers I am assuming that the total amount of RAM usage for the servlet and solr should be about 150MB of RAM with these settings. As I start to index data and passing queries to the database I notice a steady rise in the RAM but it doesn't stop at 150MB. If I continue to reindex the exact same data set with no additional data entries the RAM continuously increases. I stopped looking as the RAM increased beyond 350MB and started to try and debug it and can't find anything obvious from my beginners view point. I tried to a memory leak check from the web manager and that came up with no leaks. Are my expectations here unreasonable? Am i completely wrong with my assumptions that I should only have about 150MB and that 350 is perfectly fine? I am just trying to sort this out because on my production server I have a limited amount of RAM and I need to minimize this as much as possible. Thanks, Cameron