From users-return-215475-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Aug 10 10:43:15 2010 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 18876 invoked from network); 10 Aug 2010 10:43:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Aug 2010 10:43:15 -0000 Received: (qmail 20612 invoked by uid 500); 10 Aug 2010 10:43:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20194 invoked by uid 500); 10 Aug 2010 10:43:08 -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 20185 invoked by uid 99); 10 Aug 2010 10:43:08 -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 10:43:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 10:43:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OimI6-0001hk-WA for users@tomcat.apache.org; Tue, 10 Aug 2010 03:42:42 -0700 Message-ID: <29396387.post@talk.nabble.com> Date: Tue, 10 Aug 2010 03:42:42 -0700 (PDT) From: Angelo Chen To: users@tomcat.apache.org Subject: Re: 64 bit version for linux In-Reply-To: <20100809142802.6ffb3c41@tclx.cataneo.buero> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: angelochen960@yahoo.com.hk References: <29386189.post@talk.nabble.com> <4C5FD4C4.1060609@apache.org> <29386741.post@talk.nabble.com> <4C5FE3DE.4050504@ice-sa.com> <29387066.post@talk.nabble.com> <20100809142802.6ffb3c41@tclx.cataneo.buero> Hi Tobias, I use this: JAVA_OPTS="$JAVA_OPTS -d64 -Xms512m -Xmx4096m" but can not find -d64 in the command line passed to java, looks like -d64 is not needed. in the tomcat manager, it does show JVM memory as: Free memory: 325.24 MB Total memory: 490.68 MB Max memory: 3640.93 MB Am I really in the 64bit mode JVM? Thanks Tobias Crefeld-2 wrote: > > Am Mon, 9 Aug 2010 04:52:55 -0700 (PDT) > schrieb Angelo Chen : > >> >> the standard tomcat(apache-tomcat-6.0.20.tar.gz) is running in a 64 >> bit version of Centos. so can my app use memory bigger than 4G? I > > Which JVM-version does your Tomcat use? IIRC there are different > defaults for different versions of CentOS. Maybe > "yum list installed |grep ^java" > or > "yum list installed |grep ^jdk" > helps. > > I would download last JDK for Linux/x64 at > http://java.sun.com/javase/downloads/index.jsp, install it and set the > correct path, for example: "JAVA_HOME=/usr/jdk/latest;export JAVA_HOME" > before starting Tomcat. > > Maybe defaults of JVM have changed but AFAIK you have to set some > additional JAVA_OPTS-parameters to use 64bit and more RAM. We are using > a scriptlet like the following on our larger machines as part of the > catalina.sh or start-stop-wrapper for catalina.sh: > > ------------------------schnipp------------------------ > JAVA_OPTS="$JAVA_OPTS "-server > JAVA_OPTS="$JAVA_OPTS "-d64 > # Speicherlimit nur bei Aufruf von run, debug oder start auf 3 GB oder > mehr hochsetzen > case "$1" in > start|run|debug) > # Fuer 32-Bit-Betrieb die naechsten beiden Zeilen auf 3072k aendern > JAVA_OPTS="$JAVA_OPTS "-Xms6000m > JAVA_OPTS="$JAVA_OPTS "-Xmx11000m > ;; > stop) > JAVA_OPTS="$JAVA_OPTS "-Xms600m > JAVA_OPTS="$JAVA_OPTS "-Xmx600m > ;; > esac > ------------------------schnipp------------------------ > > > >> believe the 2G is the limit for 32 bit version of Linux. > > 3GB is a possible limit for 32bit. > > > Regards, > Tobias. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/64-bit-version-for-linux-tp29386189p29396387.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org