Re: Best practices for deployment on cluster environment

2010-08-26 Thread Paolo Santarsiero
Hi, I think the best way is to share a central repository (local or net mounted) for webapps and create for each one and for each tomcat the right context with the right path. regards On 26 August 2010 16:03, André Warnier a...@ice-sa.com wrote: Luca Gervasi wrote: On Wed, 2010-08-25 at 10:50

Tomcat clustering: LVS or AJP ?

2010-06-09 Thread Paolo Santarsiero
I created an infrastructure with two balanced servers for Apache Web Server, and four servers at a lower level for Tomcat. The Tomcat are coupled to web server via mod_jk and they use the Tomcat's hearthbeat clustering system. Now my suggestion is to include all services (Apache HTTP, Tomcat, etc.

Re: Avoiding random JMX port on tomcat

2010-05-12 Thread Paolo Santarsiero
I think the only possibility in order to fix RMI server port behind a firewalled system is to use JMX Remote Lifecycle Listener in server.xml and add catalina-jmx-remote.jar in lib folder. I used it for remote jvm monitoring and now works fine. You can read procedure here

Re: mod_jk Apache2--Tomcat6

2010-04-29 Thread Paolo Santarsiero
JkUnMount /*.html Where is the worker or load balancer? Should be something like this: JkUnMount /*.html worker1 On 29 April 2010 17:23, g f gfo...@gmail.com wrote: Hello all, I am not entirely sure this is the correct list to post mod_jk questions however the link from mod_jk did point to

Re: Newbie: Tomcat Can't Find My App

2010-03-23 Thread Paolo Santarsiero
Change Context path=/application in Context path=/sp00 On 23 March 2010 17:46, Reuven Koblick groovyro...@gmail.com wrote: If anyone can give me a pointer, it would be much appreciated. This is very frustrating. I cannot get this app to run. No servlet in this app will run. Tomcat6 is

worker redirect problems

2010-02-08 Thread Paolo Santarsiero
Hi, in my cluster I have many tomcat enable and two tomcat in sleeping, all in load balancing. The sleepers start only when one or more active tomcat go down, managing thier sessions. In order to do this I use worker.tomcatActive.redirect=tomcatSleeper for active tomcat and

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-13 Thread Paolo Santarsiero
In order to monitor java memory at chrash time you can add to JAVA_OPTS these directives -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/your/tomcat/folder/memorydump.hprof In this way, if tomcat goes in out of memory, you have an image of memory (memorydump.hprof) that you can analyze by an

Re: Max heap size

2010-01-08 Thread Paolo Santarsiero
Well, it depends on the jvm memory usage. I use for my system this JAVA_HOME jvm parameters in catalina.sh: -Xms64m -Xmx512m -XX:MaxPermSize=200m It is not certain that this configuration is good for your system. I set 200Mb for max permgen size because the objects in permgen on average occupy

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Paolo Santarsiero
2009/12/15 Ingo Gambin igam...@brilliant.de Hi, I am new to Tomcat and JEE, but a new job means to learn new things. So right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows

remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
Hello, I'm tryng to monitor my JVM and so Tomcat HeapMemory usage by remote access using VisualVM. I configured all, but my client always display an error message ( Cannoct connect using service:jmx:rmi:///jndi/rmi://xxx.xxx.xxx.xxx.:8080:jmxrmi). I added in catalina.sh this Java options: elif [

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
PM, Paolo Santarsiero wrote: Hello, I'm tryng to monitor my JVM and so Tomcat HeapMemory usage by remote access using VisualVM. I configured all, but my client always display an error message ( Cannoct connect using service:jmx:rmi:///jndi/rmi://xxx.xxx.xxx.xxx.:8080:jmxrmi). I added

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
I use 8080 port because it's sure open on server (I used it for tomcat direct access). 2009/12/14 Pid p...@pidster.com On 14/12/2009 10:04, Paolo Santarsiero wrote: Thanks for answer, but don't solve. I executed jconsole in debug mode and the eception stack is this: Firewall settings

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
thanks for all answer, but problem doesn't solve. I tested at last JConsole in debug mode and this is the exception stack: java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net.ConnectException: Connection timed out: connect at

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
Many thanks Chuck, I think this can solve my problem. How can I integrate this Listener in my production Tom? 2009/12/14 Caldarale, Charles R chuck.caldar...@unisys.com From: Paolo Santarsiero [mailto:paolo.santarsi...@gmail.com] Subject: Re: remote monitoring JVM by VisualVM I use 8080

Re: Manage log files in a cluster

2009-12-02 Thread Paolo Santarsiero
thanks, this can be a good start point. 2009/12/1 Neil Aggarwal n...@jammconsulting.com I want to manage the log's files on a centralized basis Does this help? http://linux.die.net/man/1/mergelog Neil -- Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net Host your tomcat app

Re: Manage log files in a cluster

2009-12-02 Thread Paolo Santarsiero
On Wed, Dec 2, 2009 at 3:09 AM, Paolo Santarsiero paolo.santarsi...@gmail.com wrote: thanks, this can be a good start point. 2009/12/1 Neil Aggarwal n...@jammconsulting.com I want to manage the log's files on a centralized basis Does this help? http://linux.die.net/man/1

Manage log files in a cluster

2009-12-01 Thread Paolo Santarsiero
Hi, I have a cluster with many tomcat and I want to manage the log's files on a centralized basis in order to collect, display, analyze and manage all files of logs from a single client. Do you know a system that allows me to do? Many thanks.

cluster deployment by context descriptors

2009-11-20 Thread Paolo Santarsiero
Hi all, I have a cluster with Apache2.2 and three Tomcat 6 instances in load balance and sticky sessions on three different servers. I use another server like webapps repository, so my tomcat's go to applications by context descriptors. But I don't want all three tom go on all apllications, so I

Re: cluster deployment by context descriptors

2009-11-20 Thread Paolo Santarsiero
So I must configure vhost under apache for a specific webapp and then create context descriptor for specific tomcats under default host (ex. under tom1 and tom2 and not under tom3). Or must I create vhost under specific tomcats too? 2009/11/20 Pid p...@pidster.com On 20/11/2009 09:22, Paolo

Nagios3 and Tomcat6 configuration under Apache2.2

2009-11-09 Thread Paolo Santarsiero
Hi, I have a Tomcat6 cluster under Apache2.2. I'd like to monitor the system and so I want to use nagios3 but I don't know how configure VirtualHosts for Tomcat and Nagios under Apache ( I use Ubuntu so I have /etc/apache2/ports.conf and /etc/apache2/sites-enabled/000-default). I hope you can

Share libraries for Context Descriptors

2009-10-30 Thread Paolo Santarsiero
Hi, I have a cluster with three tomcat6's instances. My tomcats access applications on a common repository server, so I use Context descriptors in order to point the applications. Differents apps often use same libraries, and I'd like to share libraries at Context Descriptor level (in

Autodeploy on cluster

2009-10-13 Thread Paolo Santarsiero
I have a Tomcat6 cluster. Im looking for a solution to put a webapp folder in a node and automatically deploy the application, or the changes, to other cluster's nodes. I used FarmWarDeployer, but it isn't my ideal solution. Have some idea? Thanks

Is ready the cluster deployer object?

2009-10-06 Thread Paolo Santarsiero
Hi, I need to deploy many applications on a Tomcat's cluster, so I'm looking for an easy solution to do it. I had read about deployer element in cluster; the idea here is that if you have a cluster of Tomcat nodes that are communicating together, the administrator may deploy distributable webapps

Sharing webapps folder in tomcat cluster

2009-10-05 Thread Paolo Santarsiero
I have a load balancing cluster with two tomcat6 and one apache2.2. I use replication sessions and all work fine. Now I'd like to use a common webapps folder on third machine where to put my applications and I'd like tomcat's instances go all there to deploy and use application. I don't know if

Re: Sharing webapps folder in tomcat cluster

2009-10-05 Thread Paolo Santarsiero
, replication sessions doesn't works. What do you think? 2009/10/5 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo, No need to post twice: your messages are getting through. On 10/5/2009 9:06 AM, Paolo Santarsiero wrote: Now I'd like to use

replication session with sharing webapps level

2009-10-02 Thread Paolo Santarsiero
I clustered three tomcat and 1 apache server. I implemented replication session by memory manager. I'd like to create a storage level on another machine and put in the web application. So the 3 tomcat must use it like a common webapps folder. I tested it and load balancing works, but when a