Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3262CD86D for ; Thu, 30 Aug 2012 14:35:47 +0000 (UTC) Received: (qmail 55253 invoked by uid 500); 30 Aug 2012 14:35:46 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 55173 invoked by uid 500); 30 Aug 2012 14:35:46 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 55163 invoked by uid 99); 30 Aug 2012 14:35:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 14:35:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of davidnickerson4mailinglists@gmail.com designates 209.85.215.170 as permitted sender) Received: from [209.85.215.170] (HELO mail-ey0-f170.google.com) (209.85.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 14:35:39 +0000 Received: by eaao11 with SMTP id o11so608114eaa.15 for ; Thu, 30 Aug 2012 07:35:19 -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=DP26wyZiKAymP29tYHEAI9pZ4pg84QoRHAUSBPMmUfQ=; b=mO8mb45z22o9ZnrjCxZMJ6SnsUkmk2OooKSu9ol0keeiZXVMQHC7X/dAaX3EC0W7w8 ngGiP1RLGuzn+0vkmw3Xrx48HpvY0NP1LwtfbUdyT0vt4nxcXEhXvJ95YHAvtjPTzH2p hP0f2c/f4QdVtSgbZo0y8omkF3jPdR7/zX9VdvDJLfrVcjX0UPJWwy/0MpPtxVOkabPK 22P2nuSCHE/wwZ/TrJ1m3xvGz8MA12gFqqh1zz8bVT5qt/h7cV8ckqBw7VqVg6oyxQC9 W3F2XjGRhS34uzXfc6iQRnYe63qZLz+poO99uvhrSDSiBAJ4pb+L0J8/Ljcr5gPrRFOn 7Mgw== MIME-Version: 1.0 Received: by 10.14.172.129 with SMTP id t1mr6894594eel.34.1346337319266; Thu, 30 Aug 2012 07:35:19 -0700 (PDT) Received: by 10.14.204.133 with HTTP; Thu, 30 Aug 2012 07:35:19 -0700 (PDT) In-Reply-To: References: Date: Thu, 30 Aug 2012 10:35:19 -0400 Message-ID: Subject: Re: How to set the class path and java heap size From: David Nickerson To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=047d7b603c12a9aaf304c87c9575 --047d7b603c12a9aaf304c87c9575 Content-Type: text/plain; charset=ISO-8859-1 This "java.env" configuration seems to be non-standard and ZooKeeper-specific. I also can't find it anywhere in the ZooKeeper documentation. Would "java.env" look like this? export CLASSPATH="~/zookeeper-3.3.6/conf/log4j.properties" export JVMFLAGS="-Xmx1500m" On Wed, Aug 29, 2012 at 5:17 PM, Jordan Zimmerman < jordan@jordanzimmerman.com> wrote: > Add a file named "java.env" to the "conf" directory. But your Java > settings there. > > On Aug 29, 2012, at 4:15 PM, David Nickerson < > davidnickerson4mailinglists@gmail.com> wrote: > > > I'm starting a ZooKeeper server on Linux by running the following script: > > > > #!/bin/bash > > export CLASSPATH="~/zookeeper-3.3.6/conf/log4j.properties" > > export JVMFLAGS="-Xmx1500m" > > ~/zookeeper-3.3.6/bin/zkServer.sh start > > > > It seems to work fine, but is this properly adding the log4j.properties > > file to the classpath and setting the java heap size? > > --047d7b603c12a9aaf304c87c9575--