Return-Path: Delivered-To: apmail-incubator-trafficserver-dev-archive@minotaur.apache.org Received: (qmail 70153 invoked from network); 1 Feb 2010 04:36:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 04:36:18 -0000 Received: (qmail 37560 invoked by uid 500); 1 Feb 2010 04:36:18 -0000 Delivered-To: apmail-incubator-trafficserver-dev-archive@incubator.apache.org Received: (qmail 37495 invoked by uid 500); 1 Feb 2010 04:36:18 -0000 Mailing-List: contact trafficserver-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: trafficserver-dev@incubator.apache.org Delivered-To: mailing list trafficserver-dev@incubator.apache.org Received: (qmail 37480 invoked by uid 99); 1 Feb 2010 04:36:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 04:36:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 04:36:11 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AA46729A001A for ; Sun, 31 Jan 2010 20:35:51 -0800 (PST) Message-ID: <1633810496.1361264998951674.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Feb 2010 04:35:51 +0000 (UTC) From: "Leif Hedstrom (JIRA)" To: trafficserver-dev@incubator.apache.org Subject: [jira] Updated: (TS-88) traffic_server not able to setrlimit > 1024 on FDs In-Reply-To: <1774396487.1260934638261.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TS-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leif Hedstrom updated TS-88: ---------------------------- Fix Version/s: 2.0.0a > traffic_server not able to setrlimit > 1024 on FDs > -------------------------------------------------- > > Key: TS-88 > URL: https://issues.apache.org/jira/browse/TS-88 > Project: Traffic Server > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0a > Reporter: Leif Hedstrom > Assignee: George Paul > Fix For: 2.0.0a > > > When starting TS, i get a warning / error like this: > [example_alarm_bin.sh] sent alarm: loki.ogre.com [Tue Dec 15 20:33:55 2009] connection throttle too high, 10000 (throttle) + 192 (internal use) > 8192 (file descriptor limit), using throttle of 8000 > stracing traffic_manager, I see: > root@loki 332/1 # strace -f -e trace=setrlimit ./bin/traffic_manager 2>&1 | grep setrlimit > [pid 24114] setrlimit(RLIMIT_CPU, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 > [pid 24114] setrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 > [pid 24114] setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 > [pid 24126] setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0 > [pid 24126] setrlimit(RLIMIT_NOFILE, {rlim_cur=10000, rlim_max=10000}) = -1 EPERM (Operation not permitted) > The last call is from traffic_server, indicating that it's not able to setrlimit() to 10000. This would only happen (I think) if at this point it's running as a non-root user. If I run traffic_server as root directly, I don't have this problem (i.e. when it calls setrlimit() as root, it works fine). > This is using a standard installation in /usr/local. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.