Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 94047 invoked from network); 10 Aug 2010 21:32:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Aug 2010 21:32:41 -0000 Received: (qmail 84480 invoked by uid 500); 10 Aug 2010 21:32:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84428 invoked by uid 500); 10 Aug 2010 21:32:37 -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 84419 invoked by uid 99); 10 Aug 2010 21:32:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 21:32:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 21:32:30 +0000 Received: from [192.168.245.240] (montserrat.wissensbank.com [212.85.37.175]) by tor.combios.es (Postfix) with ESMTPA id 7F874226269 for ; Tue, 10 Aug 2010 23:29:45 +0200 (CEST) Message-ID: <4C61C531.8050604@ice-sa.com> Date: Tue, 10 Aug 2010 23:31:29 +0200 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: [OT] Tomcat unexpectedly shuts down References: ,<99C8B2929B39C24493377AC7A121E21F99011AA516@USEA-EXCH8.na.uis.unisys.com>,,<99C8B2929B39C24493377AC7A121E21F99011AA6B5@USEA-EXCH8.na.uis.unisys.com> <4C607F1A.4030802@ice-sa.com> <4C618343.5030506@christopherschultz.net> In-Reply-To: <4C618343.5030506@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Christopher, I have no fundamental contest with anything you say below (except one, see in text). It is just that 3000 MB is *a lot* of bytes (3,145,728,000 of them). It is, for example, the number of letters contained in 3,000 books, each of 500 pages. So even if you had 3,000 users, it would mean that the session data of each user would be about 1,000,000 bytes (as you indicate yourself below). Which means that each time one of these users hits the system, Tomcat would need to read and load 1 MB of data just to retrieve this user's previous session data, without even having done anything yet for this user and his present request. One may wonder how fast this server is expected to be, if it handles 3,000 user sessions simultaneously ? So let's say that I am just curious as to what the application is. Where I do object : Christopher Schultz wrote: ... > > 2. Caches. This may be something that is often not considered for a Perl > hacker such as yourself, where webapps tend to be scripts that run > once and then terminate. Wrong. I am also a mod_perl hacker. In a mod_perl environment, scripts (or handlers) do not "terminate", and memory is not recycled (this is even an inconvenient of mod_perl, and something to watch when designing mod_perl applications). So I am not objecting to using 3000 MB of Heap, I am just curious. If someone like Eric Robinson can run a non-trivial multi-user Tomcat application with an average 64 MB of Heap and you can do pretty much the same, then I am curious as to which Tomcat application (or situation) may require 3,000 MB of Heap, which is 50 times more. A secondary motive for my question to the OP, was to find out whether this size was really the result of a rational calculation (or experience), or just some number plucked out of the air. RAM prices are fickle, but let's say that for server-quality RAM, one currently pays 25 US$ per GB. And we do not know who the OP works for, but say he is talking about 1,000 Tomcat servers. Saving 1 GB of Heap to run his applications would thus mean saving 25,000 US$. I believe it is worth asking the question. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org