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 C4578105C6 for ; Mon, 10 Jun 2013 11:55:59 +0000 (UTC) Received: (qmail 20469 invoked by uid 500); 10 Jun 2013 11:55:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20156 invoked by uid 500); 10 Jun 2013 11:55:55 -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 20147 invoked by uid 99); 10 Jun 2013 11:55:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jun 2013 11:55:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Mon, 10 Jun 2013 11:55:47 +0000 Received: from [192.168.245.216] (HSI-KBW-37-49-53-194.hsi14.kabel-badenwuerttemberg.de [37.49.53.194]) (Authenticated sender: andre.warnier@ice-sa.com) by tor.combios.es (Postfix) with ESMTPA id 4F49A3C26FD for ; Mon, 10 Jun 2013 13:55:51 +0200 (CEST) Message-ID: <51B5BEA8.8090105@ice-sa.com> Date: Mon, 10 Jun 2013 13:55:20 +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: Tomcat: one user per application References: <51B5B492.7080501@rktmb.org> In-Reply-To: <51B5B492.7080501@rktmb.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mihamina Rakotomandimby wrote: > Hi all, > > I have one Tomcat instance, wich has several applications (containers) > On my installation, when Tomcat is running, only "java" process owned by > "tomcat" is listed. > > When the "java" process gets 100% CPU, I would like to be able to > differenciate which application is it about. > > One solution, for me, is to be able to run one java process per war > under a (pre-created) system user. > I would like to keep only one Tomcat instance. > > Searching the Web, I did not find a real explicit solution. Is it > possible? Would you have a link describing how to? > Hi. No, there is no such possibility, because as you mention it yourself above, the process which runs at the OS level is actually "java", the single Java wirtual machine. This JVM process, from the OS point of view, runs under one OS-level user-id. Tomcat itself is a Java application which is run by (and inside) that single Java Virtual Machine. One level deeper still are the Tomcat web applications which run inside Tomcat. They are only - in a way - "subroutines" which are called by the Tomcat code, whenever Tomcat processes a HTTP request which happens to target one of these webapps. To be able to investigate what happens inside the JVM - and possibly more in detail what happens inside an application run by the JVM, you will need some kind of Java monitoring tool. There are many of these available, but I am rather unfamiliar with them, so I'll leave the recommendation about which one would be best for you, to others on this list. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org