Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 80502 invoked from network); 21 Aug 2007 12:07:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 12:07:24 -0000 Received: (qmail 5340 invoked by uid 500); 21 Aug 2007 12:07:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 4732 invoked by uid 500); 21 Aug 2007 12:07:10 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 4721 invoked by uid 99); 21 Aug 2007 12:07:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 05:07:10 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [75.126.46.43] (HELO symphonious.net) (75.126.46.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 12:07:05 +0000 Received: from [192.168.1.4] (124-171-191-75.dyn.iinet.net.au [124.171.191.75]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by symphonious.net (Postfix) with ESMTP id AAFCE48C182A for ; Tue, 21 Aug 2007 22:05:09 +1000 (EST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <46CAD227.9090107@schoenhaber.de> References: <46CA96BE.7040704@schoenhaber.de> <46CAD227.9090107@schoenhaber.de> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5F7ED66E-837C-4342-AD59-EA4BEC7FC895@symphonious.net> Content-Transfer-Encoding: 7bit From: Adrian Sutton Subject: Re: Very Slow Startup with APR Date: Tue, 21 Aug 2007 22:06:39 +1000 To: "Tomcat Users List" X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org > I had just re-read Mladen's mail and experimented with RANDFILE > myself, > thinking that setting it to /dev/urandom might be the easiest > solution. > I strace'd Tomcat but couldn't find any hint that the value of > RANDFILE > is honored. Since my APR is built to use /dev/urandom I can't be sure, > but if you just restarted Tomcat doing some typing and mouse-moving in > between, the speed increase during startup might just be a result of > /dev/random having gathered enough entropy in the meantime to satisfy > Tomcat's read request without blocking. RANDFILE is definitely honored and it does work well setting it as / dev/urandom. I've restarted Tomcat a number of times and it stayed fast, plus: cat /proc/sys/kernel/random/entropy_avail consistently returns low values. Generating activity. In fact, with hindsight the times that Tomcat took longest to start were the times I wasn't doing anything else on the server - but the startup time was always 5 minutes or more and now it starts in under a minute. I'm only accessing the server via SSH btw - it's actually an Amazon EC2 instance. > Does Tomcat start still fast if you do something like > dd if=/dev/random of=/dev/null bs=1 > let that run for a couple of seconds and start Tomcat immediately > after > interrupting it? Yep, no delays at all. Adrian Sutton http://www.symphonious.net --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org