Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E3C7DF49 for ; Thu, 16 Aug 2012 11:14:25 +0000 (UTC) Received: (qmail 57783 invoked by uid 500); 16 Aug 2012 11:14:25 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 57611 invoked by uid 500); 16 Aug 2012 11:14:21 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 57584 invoked by uid 99); 16 Aug 2012 11:14:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 11:14:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 11:14:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 02E3C23888FE for ; Thu, 16 Aug 2012 11:13:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1373789 - /activemq/activemq-apollo/trunk/apollo-distro/src/main/release/bin/apollo Date: Thu, 16 Aug 2012 11:13:35 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120816111336.02E3C23888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chirino Date: Thu Aug 16 11:13:35 2012 New Revision: 1373789 URL: http://svn.apache.org/viewvc?rev=1373789&view=rev Log: Fixes APLO-243 : Do not lower the maximum number of open files Applied patch contributed by Lionel Cons. Thanks! Modified: activemq/activemq-apollo/trunk/apollo-distro/src/main/release/bin/apollo Modified: activemq/activemq-apollo/trunk/apollo-distro/src/main/release/bin/apollo URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-distro/src/main/release/bin/apollo?rev=1373789&r1=1373788&r2=1373789&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-distro/src/main/release/bin/apollo (original) +++ activemq/activemq-apollo/trunk/apollo-distro/src/main/release/bin/apollo Thu Aug 16 11:13:35 2012 @@ -153,6 +153,12 @@ if [ ! -z "$APOLLO_BASE" ] ; then fi # Attempt to bump up the ulimit -ulimit -n 100000 > /dev/null 2> /dev/null +target=100000 +limit=`ulimit -n 2>/dev/null` +case $limit in + unlimited) ;; + [0-9]*) [ $limit -lt 10000 ] && ulimit -n $target >/dev/null 2>/dev/null ;; + *) ulimit -n $target >/dev/null 2>/dev/null ;; +esac ${EXEC} "$JAVACMD" ${JVM_FLAGS} ${SYSTEM_PROPS} -classpath "${CLASSPATH}" org.apache.activemq.apollo.boot.Apollo ${BOOTDIRS} org.apache.activemq.apollo.cli.Apollo $@