Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 44154 invoked from network); 11 Nov 2008 21:18:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 21:18:56 -0000 Received: (qmail 97486 invoked by uid 500); 11 Nov 2008 21:18:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96734 invoked by uid 500); 11 Nov 2008 21:18:51 -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 96723 invoked by uid 99); 11 Nov 2008 21:18:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 13:18:51 -0800 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: local policy) Received: from [212.85.38.174] (HELO popeye.combios.es) (212.85.38.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 21:17:31 +0000 Received: from [192.168.245.129] (p549EA432.dip0.t-ipconnect.de [84.158.164.50]) (authenticated bits=0) by popeye.combios.es (8.13.8/8.13.8/Debian-3) with ESMTP id mABLEBI6028572 for ; Tue, 11 Nov 2008 22:14:11 +0100 Message-ID: <4919F4F9.4090803@ice-sa.com> Date: Tue, 11 Nov 2008 22:11:21 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat 5.5 memory References: <7b87d8120811111014n399c4b80v107b471ddf50ec39@mail.gmail.com> <4919CD16.407@verizon.net> <7b87d8120811111030y4a6f7f84w3061f2585e09e5e8@mail.gmail.com> <4919E811.6080404@verizon.net> <7b87d8120811111226q423465eby972148c63c0613a3@mail.gmail.com> In-Reply-To: <7b87d8120811111226q423465eby972148c63c0613a3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on popeye.combios.es X-Virus-Scanned: ClamAV 0.92.1/8609/Tue Nov 11 13:53:28 2008 on popeye.combios.es X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-97.7 required=2.5 tests=DNS_FROM_SECURITYSAGE, RCVD_IN_PBL,RCVD_IN_SORBS_DUL,USER_IN_WHITELIST autolearn=no version=3.2.3 Alberto Jesus La Rosa Agramonte wrote: > The hardware only, the software is 32 bits, and the jvm too. The > problem that it's spawning too many processes. Alberto, what a couple of other people on this list have already tried to tell you - without apparently triggering any reaction from you - is that "too many processes" is not a very precise or helpful expression. Too many compared to what ? Compared to what you are expecting ? compared to the number of requests your server is supposed to process ? compared to the "maxThreads" attribute of the element in your server.xml configuration file (maybe a hint here) ? If you have many requests to process very fast, then maybe the number of processes (or probably threads) that you are seeing is normal and correct, and your server just does not have enough memory for what you are trying to do. Or maybe you need more servers. Or maybe you just need a better application. But you are not saying what you are trying to do, so it is hard to help you. Maybe you would like to start again, describe your server (hardware, software, application) and what your problem really is ? > > 2008/11/12 David kerber : >> Alberto Jesus La Rosa Agramonte wrote: >>> The tomcat run many processes and each process consumes 6 to 7 mb and >>> in a Period of time the server's memory is exhausted. >>> >> Is it running the "correct" number of processes, and you just don't have >> enough memory for them, or is the problem that it's spawning too many >> processes? If the former, then I'd say your best bet is to add more RAM. >> If the later, then you need to look at your application, or limit the >> number of threads Tomcat is allowed to use (I don't recall off the top of my >> head what that setting is called). >> >> Also, you said the "platform" is 64 bit; is that the OS, or just the >> hardware? If the OS, do you have the 64-bit JVM installed? >> >> D >> >>> 2008/11/12 David kerber : >>> >>>> Alberto Jesus La Rosa Agramonte wrote: >>>> >>>>> Hi, I have installed apache tomcat 5.5 and giving me problems with >>>>> memory, this is the configuration that I have now, someone can help me >>>>> to optimize this, or tell me if this right.The server have 3 gb of >>>>> RAM. Thanks >>>>> >>>>> >>>> What kind of problems are you having? Using too much? Not using enough? >>>> >>>> D >>>> >>>> >>>> >>>>> # Run Tomcat as this user ID (default: tomcat55). Set this to an empty >>>>> string >>>>> # to prevent Tomcat from starting. >>>>> #TOMCAT5_USER=tomcat55 >>>>> >>>>> # The home directory of the Java development kit (JDK). You need at >>>>> least >>>>> # JDK version 1.4. If JAVA_HOME is not set, some common directories for >>>>> # the Sun JDK, various J2SE 1.4 versions, and the free runtimes >>>>> # java-gcj-compat-dev and kaffe are tried. >>>>> JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.07" >>>>> >>>>> # Directory for per-instance configuration files and webapps. It contain >>>>> the >>>>> # directories conf, logs, webapps, work and temp. See RUNNING.txt for >>>>> details. >>>>> # Default: /var/lib/tomcat5.5 >>>>> #CATALINA_BASE=/var/lib/tomcat5.5 >>>>> >>>>> # Arguments to pass to the Java virtual machine (JVM) >>>>> # "-Djava.awt.headless=true -Xmx128M" is automatically set if >>>>> CATALINA_OPTS >>>>> # is left empty here >>>>> CATALINA_OPTS="-Djava.awt.headless=true -Xmx2048M -server \ >>>>> -XX:MaxPermSize=512m \ >>>>> -XX:+UseConcMarkSweepGC \ >>>>> -XX:+CMSPermGenSweepingEnabled \ >>>>> -XX:+CMSClassUnloadingEnabled" >>>>> >>>>> # Java compiler to use for translating JavaServer Pages (JSPs). You can >>>>> use all >>>>> # compilers that are accepted by Ant's build.compiler property. >>>>> #JSP_COMPILER=jikes >>>>> >>>>> # Use the Java security manager? (yes/no, default: yes) >>>>> # WARNING: Do not disable the security manager unless you understand >>>>> # the consequences! >>>>> # NOTE: java-gcj-compat-dev currently doesn't support a security >>>>> # manager. >>>>> TOMCAT5_SECURITY=no >>>>> >>>>> # Timeout in seconds for the shutdown procedure (default: 30). The Java >>>>> # processes will be killed if tomcat5.5 has not stopped until then. >>>>> #TOMCAT5_SHUTDOWN=30 >>>>> >> >> >> --------------------------------------------------------------------- >> 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 >> >> > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- 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