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 9E4569859 for ; Wed, 16 May 2012 13:05:31 +0000 (UTC) Received: (qmail 39861 invoked by uid 500); 16 May 2012 13:05:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 39630 invoked by uid 500); 16 May 2012 13:05:28 -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 39620 invoked by uid 99); 16 May 2012 13:05:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 13:05:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.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; Wed, 16 May 2012 13:05:19 +0000 Received: from [192.168.245.129] (p549E8CEA.dip0.t-ipconnect.de [84.158.140.234]) by tor.combios.es (Postfix) with ESMTPA id EB848DA0704 for ; Wed, 16 May 2012 15:04:56 +0200 (CEST) Message-ID: <4FB3A5F8.10106@ice-sa.com> Date: Wed, 16 May 2012 15:04:56 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: two instances of Tomcat in same machine References: <1337160349.79631.YahooMailNeo@web29601.mail.ird.yahoo.com> <4FB37869.2060805@ice-sa.com> <1337163532.15062.YahooMailNeo@web29606.mail.ird.yahoo.com> <1337164778.49160.YahooMailNeo@web29606.mail.ird.yahoo.com> In-Reply-To: <1337164778.49160.YahooMailNeo@web29606.mail.ird.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Miguel Gonzalez wrote: > there wasn't a limit of 32 bits OS for running JVM for more than 1.5 Gb? Not exactly. I'm not sure that my knowledge is totally accurate here, but here is my take on it : - a "32 bit OS" generally means that the total address space available to *a process* running at any point in time under that OS is 2^32 = 4,294,967,296 bytes, which is 4 GB (give or take :-)). - this includes the memory accupied by the resident part of the OS, so that in the practice nowadays, a process can use only a fraction of that, say 2-3 GB. - that available addressable space is shared between the code of the process, and the in-memory data needed by that process - the JVM (which runs Tomcat) is one such process. The code of the JVM itself occupies some memory. For the JVM, the Tomcat code and your application code is data, which uses a part of the addressable space available to the JVM process. The JVM also allocates some space for the data that Tomcat and your applications use, dynamically, as needed and requested by Tomcat and your applications. In Java, most of that "work memory" is allocated in a memory structure called the Heap. - in the practice thus, if you are running a Java application under a Java JVM under a 32-bit OS, the maximum size of the Heap that your application will be able to use is likely to limited to around 2-2.5 GB. OS-specific characteristics may further reduce this. On hardware that can use 64-bit addresses, and with an OS that can use a 64-bit address space, these limits are much higher (2^64 = 18,446,744,073,709,551,616 bytes), so that in the practice you would run out of money long before your run out of Heap space. (And you would also run out of time before you fill up all that memory). --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org