Return-Path: Delivered-To: apmail-mina-users-archive@www.apache.org Received: (qmail 92039 invoked from network); 20 Sep 2010 17:00:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Sep 2010 17:00:30 -0000 Received: (qmail 92299 invoked by uid 500); 20 Sep 2010 17:00:30 -0000 Delivered-To: apmail-mina-users-archive@mina.apache.org Received: (qmail 92193 invoked by uid 500); 20 Sep 2010 17:00:29 -0000 Mailing-List: contact users-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@mina.apache.org Delivered-To: mailing list users@mina.apache.org Received: (qmail 92180 invoked by uid 99); 20 Sep 2010 17:00:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 17:00:29 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paliwalashish@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 17:00:21 +0000 Received: by wyb35 with SMTP id 35so6323032wyb.2 for ; Mon, 20 Sep 2010 10:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=c9pxYgQxdH8lZlUGeCe6rYhi//DkNYLxJoyYGIaDj0w=; b=i+XymcgVdExmacXLzt0RuljXJteb4XMjcE86QtKuWcmN1VN6NH99X4Voz9Q3012PjC LJQ2/U8IJjMwGtv280QEJ/tfYtiyMUF5RdlYubSimdziQDOchzDxeryZtQ4a6QmXH29b DwBrHBrgETI9dhOg3EYJRZp5IUE4N36zbZcEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=hJ0OJtvenuvxaNJ/7EU/BvgoH46sWgnbn3Z4qjz+JQXMGEhVzgiogxOZ7OTsrSmQoh rFl1KO7EoB9jeyAzM7IhwMYhemfKNwZ6CjuuS3rPpBAUTKpaW94Wm9YDq+JliwRW12XW 1J1hqdcYXBhu1ndbrYAU4KAwetN1uGJ8RL3EA= MIME-Version: 1.0 Received: by 10.216.30.21 with SMTP id j21mr4590309wea.37.1285002001474; Mon, 20 Sep 2010 10:00:01 -0700 (PDT) Received: by 10.216.154.199 with HTTP; Mon, 20 Sep 2010 10:00:01 -0700 (PDT) In-Reply-To: References: <4C9764C6.9050208@gmail.com> <4C976A55.5070608@apache.org> Date: Mon, 20 Sep 2010 22:30:01 +0530 Message-ID: Subject: Re: MINA performance on Centos/Tomcat From: Ashish To: users@mina.apache.org Cc: elecharny@apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Sep 20, 2010 at 10:18 PM, Kumar Abhishek wrote: > Thanks for the kind reply. A quick update on why I didn't go for doing this > in Servlets is the smpp server needs to be continuously binded to smsc, this > calls for background thread execution in tomcat which I didn't think to be a > good idea. Also, poor console based monitoring of smsc binded process if > tomcat is the front-end ;) > Also, you are very right about separation of concerns thing, that was the > very idea behind this architecture, to move the http g/w around and possibly > replicate as well on demand :) > Any inputs on what tomcat settings can be played around with? You could use context listeners for starting/stopping Threads, not necessary in servlets. Add JMX support and you should be good for monitoring. Touch tomcat setting only if its an hurting ur app. Best is look what's eating up CPU? 1. Something is eating the CPU, find out what it is 2. For Tomcat, tune Threads in server.xml, removed unused context and other stuff. If possible use tcnative to give an extra dose of power. At this moment leave it untouched. Might come in handy later on. 3. Keep ur eye open to GC Well these are all wild guesses. First thing is to get info out of your system and analyze what's going on. This is ALL I can help without Thread dumps. thanks ashish