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 C5F6D1760F for ; Thu, 12 Mar 2015 07:51:03 +0000 (UTC) Received: (qmail 85635 invoked by uid 500); 12 Mar 2015 07:50:59 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 85568 invoked by uid 500); 12 Mar 2015 07:50:59 -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 85556 invoked by uid 99); 12 Mar 2015 07:50:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2015 07:50:58 +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 (athena.apache.org: domain of karl.kilden@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2015 07:50:54 +0000 Received: by wesq59 with SMTP id q59so14397061wes.9 for ; Thu, 12 Mar 2015 00:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7gbCFvZiUE7hq3JV3twcQyfWfKsqRz3gO2k9sv+FQBg=; b=Re/CgvObpexgM+sTrrWt9Nj7LqfceE/H6CQ8Tc2Tz0YZR3Ke6XtbTYcPjisZQIc8qy kco4Zh6YludQtu3eKywNaK/VmNb+HGmA27KIRemNdB9LT5NwB3GloyEmP2yLFLDI381n YALMc4RgAT03rD7KbGf3777XMAb7okoK51K9AM1znvxFBOnT4pCnLhcVrFIca9flnvib uIbPTXwSvT5F3u8AADNAmYZSBxiLJ+hK38iBQyIqNRCgpN7N1aWtz80l/X115ZfDVAhL goCcKtthXdSFPBM0OzFZb7I8tA2GBo7+Q/L6JLToww3m2KOuEC6zm3pZFtbd0LV29uSF oVkQ== MIME-Version: 1.0 X-Received: by 10.194.6.228 with SMTP id e4mr83390701wja.63.1426146588630; Thu, 12 Mar 2015 00:49:48 -0700 (PDT) Received: by 10.27.135.67 with HTTP; Thu, 12 Mar 2015 00:49:48 -0700 (PDT) In-Reply-To: References: <5500951E.6060501@elyograg.org> Date: Thu, 12 Mar 2015 08:49:48 +0100 Message-ID: Subject: Re: default heap size for solr 5.0? (-Xmx param) From: =?UTF-8?B?S2FybCBLaWxkw6lu?= To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b5d86add025ec051112a0e1 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d86add025ec051112a0e1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Actually the reason I did not use the solr script was that I didn't really get how to make a window service out of it from nssm.exe. I tried doing a .bat that called solr with start -p 8983 but seems it just loops my command rather then run it. Thanks for the help / Karl On 11 March 2015 at 23:08, Erick Erickson wrote: > Well, the new way will be the only way eventually, so either you learn > the old way then switch or learn it now ;)... > > But if you insist you could start with a heap size of 4G like this: > > java -Xmx4G -Xms4G -jar start.jar > > Best, > Erick > > > On Wed, Mar 11, 2015 at 1:09 PM, Karl Kild=C3=A9n > wrote: > > Thanks! > > > > I am using the old way and I see no reason to switch really? > > > > cheers > > > > On 11 March 2015 at 20:18, Shawn Heisey wrote: > > > >> On 3/11/2015 12:25 PM, Karl Kild=C3=A9n wrote: > >> > I am a solr beginner. Anyone knows how solr 5.0 determines the max > heap > >> > size? I can't find it anywhere. > >> > > >> > Also, where whould you activate jmx? Would like to be able to use > >> visualvm > >> > in the future I imagine. > >> > > >> > I have a custom nssm thing going that installs it as a window servic= e > >> that > >> > simply calls java -jar start.jar > >> > >> The default heap size is 512m. This is hardcoded in the bin/solr > >> script. You can override that with the -m parameter. > >> > >> If you are not using the bin/solr script and are instead doing the old > >> "java -jar start.jar" startup, the default heap size is determined by > >> the version of Java you are running. > >> > >> Thanks, > >> Shawn > >> > >> > --047d7b5d86add025ec051112a0e1--