Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 303EE903B for ; Thu, 14 Jun 2012 07:51:21 +0000 (UTC) Received: (qmail 44945 invoked by uid 500); 14 Jun 2012 07:51:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 44748 invoked by uid 500); 14 Jun 2012 07:51:17 -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 44705 invoked by uid 99); 14 Jun 2012 07:51:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 07:51:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 07:51:10 +0000 Received: by pbbro12 with SMTP id ro12so3987131pbb.18 for ; Thu, 14 Jun 2012 00:50:50 -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:content-transfer-encoding; bh=cXrhps88TmI5wd+2N8BlaLzznvYOZa/c8X4XX0nOZMA=; b=yVeql/8X95nXa5XW2Yjh/LYNz7s547kwRHJYks2TmgY0kBoyE0y+5RQOKiMZMU5J2W d2L+t/6dKnJZoM+4m0tCFRg05Pf/3gkVRt3YL9AIuEymkAAfBpkenopMl90N0UQdq9Aj fwCnlu9AnjcfrTD4Ux0cyKbc7q6fuWOXJ9SJtqbQOKflM2Etd1H+TiD84VwWDSwXXA8y I2nyLpU9mFzMTxjC/FsOksbttMp31qqa7sYiI/S3aoEn5VDwFSrHaZHdVBf04+c6rlPI YdLfxojZUtFDAG8Mz/mast1+WPzbo9d167xk9bKx6108PaT27lZ3fcJ7JYyMAB/kjXrA B9oA== MIME-Version: 1.0 Received: by 10.68.218.169 with SMTP id ph9mr5007018pbc.167.1339660250545; Thu, 14 Jun 2012 00:50:50 -0700 (PDT) Received: by 10.68.46.36 with HTTP; Thu, 14 Jun 2012 00:50:50 -0700 (PDT) In-Reply-To: <4FD91EA8.1070006@yahoo.es> References: <4FD91EA8.1070006@yahoo.es> Date: Thu, 14 Jun 2012 11:50:50 +0400 Message-ID: Subject: Re: wget and Tomcat resources From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2012/6/14 Miguel Gonz=E1lez Casta=F1os : > Dear all, > > =A0Our developer has set a cronjob similar to this: > > =A0wget -T 0 http://ourserver.com/email_sender > > =A0which calls a javabean to check pending emails to send in a database a= nd > actually send them. > > =A0I'm concerned about this, since I have realized that we have peaks of = 500 > http connections per minute exactly about the same time this cronjob runs= . > I'm just wondering if this cronjob is performing several retries (since i= t > sets a 0 timeout) and count as http hits. > > =A0This increase of http hits (not related to people connecting since peo= ple > connect in office hours and this happens early morning) is happening > together with an increase of use of memory. 1. Configure your AccessLogValve to print "User-Agent" header of the request (%{User-Agent}i ). This way you will know what requests come from wget and how fast they are served by Tomcat. 2. Make sure that the page contacted by wget does not use sessions. If each request creates a new session it would be a waste of resources. You can include session id into AccessLogValve configuration: %S Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org