Tomcat, Apache and virtual hosts
Hi. I have seen your HOWTO and have some questions. My situation is a bit more complex. Let's say I would like to achieve a general situation: HOST1 Tomcat { VirtualHost www.vhost1.com { Context "Addres book" { deployed under it's own directory with path "/addr_book" } } } HOST2 Apache { VirtualHost www.vhost1.com { WebAppDeploy { I would like to deploy that Tomcat's Context here } } } Well, needless to say, I'm having problems with this setup. Rught now HOST1 = HOST2, but even situation where it isn't so, breaks. I'm getting warp errors on Tomcat's side saying that www.vhost1.com name is not unique. So, my question is: does WARP work with virtual hosts on Tomcat? All (successful) examples I've seen use Host name="localhost" could that be my problem? What I would like to achieve are two things: GOAL 1 - I would like to have a *real* virtual hosting server, where I will create a user account, create dirs inside it: ./bin ./data ./sql ./public_html ./cgi-bin ./webapps Then create (if needed) PostgreSQL database for that user and virtual hosts both in Tomcat and Apache, based in "public_html" and "webapps" respectively. That way, a user will have the whole virtual environment and it will be "packable" - if I decide to move the user to anotehr server, all I have to do is transfer the entire home and establish new virtual hosts in DNS, Apache and Tomcat (on the new server machine). GOAL 2 - Another thing I wanted is to be able to separate DB, Tomcat and Apache. I have several machines I can populate with these and they are not identical. The way I see it, DB should be on a machine with good disks and a lot of RAM (I got AlphaServer 4100 :-)), Tomcat on a fast CPU+mem (any decent Linux, Solaris or an unused Alpha will do) and Apache should have good disks and network (again any Linux will do). Can this be done? Since listening on ports above 1024 doesn't require root priviledges, I could adopt your solution, but then the owner of virtual host would be responsible for starting up Tomcat and that is not something that looks good to me. Again, even that can be automatized. From your point of view, is it better to run all virtual hosts of Tomcat withing one JVM (one process, myriads of threads) or to have one JVM per virtual hosts (n processes, each one with it's complement of threads)? Nix.
Architectural question for tomcat-apache running Virtual Hosts
I sent this question over the weekend, but don't think anyone saw it. I have an apache-tomcat configuration running on Linux servers. Does anyone have any experience or know if there is a limit to how many virtual hosts youshould set up on one instance of tomcat? What is the most traffic or connection limit before I should either use another instance of tomcat or use an entirely new server? How can I track the status of everything to see when we are getting too busy? Is there a good software I can use? Maybe even some basic Linux commands on Linux I can use to keep track of things? I am pretty new to these types of issues, if anyone can provide some insight or tell me where to look to do a little research on this topic, I would greatly appreciate it! Thanks in advance... Brandon Cruz
RE: Architectural question for tomcat-apache running Virtual Hosts
Hi, At the company we work at, we work on a linux box, where everyone has running it's own environment of apache and tomcat. We run about 20 tomcats, started sperately from the same tomcat distrubution, but with a different TOMCAT_HOME set. They are all running on different ports though and I don't know if that is something you want. We have regurlaly 60 people shopping at the same time in 1 shop (with a hugh load on images) and everything still runs smoothly... Mvgr, Martin -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: Architectural question for tomcat-apache running Virtual Hosts I sent this question over the weekend, but don't think anyone saw it. I have an apache-tomcat configuration running on Linux servers. Does anyone have any experience or know if there is a limit to how many virtual hosts you should set up on one instance of tomcat? What is the most traffic or connection limit before I should either use another instance of tomcat or use an entirely new server? How can I track the status of everything to see when we are getting too busy? Is there a good software I can use? Maybe even some basic Linux commands on Linux I can use to keep track of things? I am pretty new to these types of issues, if anyone can provide some insight or tell me where to look to do a little research on this topic, I would greatly appreciate it! Thanks in advance... Brandon Cruz
RE: Architectural question for tomcat-apache running Virtual Hosts
You can try using a testing tool, like Loadrunner, to stress your application and see what the results are, and get quantifiable values - not gee it seems a bit slower today Basically it starts up a bunch of threads that appear to be users of your application and they follow a set of instructions, like playing a recorded macro. -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 23 May 2001 5:25 AM To: [EMAIL PROTECTED] Subject: RE: Architectural question for tomcat-apache running Virtual Hosts Hi, At the company we work at, we work on a linux box, where everyone has running it's own environment of apache and tomcat. We run about 20 tomcats, started sperately from the same tomcat distrubution, but with a different TOMCAT_HOME set. They are all running on different ports though and I don't know if that is something you want. We have regurlaly 60 people shopping at the same time in 1 shop (with a hugh load on images) and everything still runs smoothly... Mvgr, Martin -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: Architectural question for tomcat-apache running Virtual Hosts I sent this question over the weekend, but don't think anyone saw it. I have an apache-tomcat configuration running on Linux servers. Does anyone have any experience or know if there is a limit to how many virtual hosts you should set up on one instance of tomcat? What is the most traffic or connection limit before I should either use another instance of tomcat or use an entirely new server? How can I track the status of everything to see when we are getting too busy? Is there a good software I can use? Maybe even some basic Linux commands on Linux I can use to keep track of things? I am pretty new to these types of issues, if anyone can provide some insight or tell me where to look to do a little research on this topic, I would greatly appreciate it! Thanks in advance... Brandon Cruz
Architectural question for tomcat-apache running Virtual Hosts
I have an apache-tomcat configuration running on Linux servers. Does anyone have any experience or know if there is a limit to how many virtual hosts youshould set up on one instance of tomcat? What is the most traffic or connection limit before I should either use another instance of tomcat or use an entirely new server? How can I track the status of everything to see when we are getting too busy? Is there a good software I can use? Maybe even some basic Linux commands on Linux I can use to keep track of things? I am pretty new to these types of issues, if anyone can provide some insight or tell me where to look to do a little research on this topic, I would greatly appreciate it! Thanks in advance... Brandon Cruz