tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Tomcat: one user per application
Date Mon, 10 Jun 2013 11:55:20 GMT
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


Mime
View raw message