Re: Tomcat's scalability

2006-06-19 Thread Andrew Miehs
Biernatowski Bartosz J wrote: I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon. My monitoring data: Why are you 90% sure?! Your SQL server is running on a seperate machine? or the same machine?

Re: Tomcat's scalability

2006-06-19 Thread Andrew Miehs
Ooops - forgot to add the rest Andrew Miehs wrote: Could be anything - the database could be the indexes in the database, could be deadlocks, could be a badly programmed application, could be high packet loss on the ethernet interfaces, could even be tomcat - As for the 90% guess - At

Re: Tomcat's scalability

2006-06-21 Thread Andrew Miehs
Now that we are moving to the theoretical discussion, you will probably want to have a look at http://www.kegel.com/c10k.html Regards Andrew On 21/06/2006, at 4:56 PM, Mladen Adamovic wrote: I spoke recently with guy from Microsoft (project manager from server division). He said that hea

Re: looking for memory profiler or dump analyzer for production use

2006-06-21 Thread Andrew Miehs
The monitoring component works for the first hour after the VM is started in the free version. In the commercial version, the monitoring information is availble the whole time - as for pricing - no idea.. There as an article about JRocket in one of the last IX magazines (DE) Andrew Leon Rosen

Re: Tomcat's scalability

2006-06-21 Thread Andrew Miehs
h posses a different set of challenges than a static FTP server. Alex. On 6/21/06, Andrew Miehs <[EMAIL PROTECTED]> wrote: Now that we are moving to the theoretical discussion, you will probably want to have a look at http://www.keg

Stateless Tomcat Application

2006-06-28 Thread Andrew Miehs
Dear List, I have an simple application that I would like to have cached by a squid server. My question is, is it possible to disable the Tomcat generating JSESSIONIDs, as these requests are all stateless. Thanks in advance, Regards Andrew -

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 More stupid question... 1 - Why are you using perl when you have tomcat - can't you just use a jsp? 2 - why can't you use an tag? and have tomcat deliver the page... 3 - You are using tomcat aren't you? Confused Andrew On 11/07/2006, at 1

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
Hi Jennifer, Very strange! Tomcat and perl cgi! cool - didn't know it worked... Are you sure you are not using Apache with mod_jk, or mod_proxy? As for the perl. Where is the page that prints the HTML? why don't you just add print ''; Very confused Or could it be that you ar

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote: What this does is draw the box where the image should be. When I right click on it and look at the properties and it finds the right file. Just thought someone else would have ran int

Re: Simple question, but can't figure out answer

2006-07-11 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahhh... and in webapps/ROOT/ create a directory called WEB-INF (please note capitals) that should fix your problem... Regards Andrew On 11/07/2006, at 11:53 PM, Mead, Jennifer L - VSCM wrote: What this does is draw the box where the image s

Re: Simple question, but can't figure out answer

2006-07-12 Thread Andrew Miehs
On 12/07/2006, at 4:01 PM, Mead, Jennifer L - VSCM wrote: I already have that. I really don't understand but I bet it turns out to be something stupid (on my part). It is pretty frustrating but for now they get no images! Thanks for the reply. Jen Does http://server/images/myimage.gif wo

Re: Simple question, but can't figure out answer

2006-07-12 Thread Andrew Miehs
al Message----- From: Andrew Miehs [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 7:08 AM To: Tomcat Users List Subject: Re: Simple question, but can't figure out answer On 12/07/2006, at 4:01 PM, Mead, Jennifer L - VSCM wrote: I already have that. I really don't understand but I bet

Re: FW: Intermittant images using https on tomcat

2006-07-21 Thread Andrew Miehs
Rob wrote: Hi Barry, It's only IE that has the problem. I've checked the URLs and they're fine. Sometimes the images appear and other times they don't, like there's a timeout problem in the https connector or something like that. Images under http work fine - haven't see any broken images yet.

Re: Problem with next error during login: Number of simultaneous users reached

2006-07-25 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html This is per default installed with Tomcat 5.0 You will need to add a role to tomcat/conf/users.xml Regards Andrew On 25/07/2006, at 2:51 PM, Jan Line wrote: Thanks Leon for the pointer

Re: Problem with next error during login: Number of simultaneous users reached

2006-07-25 Thread Andrew Miehs
I do not really understand what you are trying to do here... But you may get more information from http:///manager/status As for 'maxUsers' in web.xml - no idea what that command does - never seen it before. Regards Andrew On 25/07/2006, at 4:03 PM, Jan Line wrote: Andrew, I have r

Re: Tomcat Upgrade

2006-07-28 Thread Andrew Miehs
On 28/07/2006, at 6:55 PM, [EMAIL PROTECTED] wrote: Anyone know of website which has a step by step procedure to upgrade? What exactly is your problem with upgrading? The 'webapp' or the installation of tomcat 5? I would just install a new version of tomcat, with the JVM that you want,

Re: Tomcat Upgrade

2006-07-31 Thread Andrew Miehs
Hi Ibrahim, What do you mean you don't want to do a parallel installation?! How do you want to check if it works?! Install TC 5.5 and java 1.4+compat libs or JVM 1.5 on the test machine, copy the stuff across, and start it and see what happens. You do have a test system? don't you?! Worried..

Re: difference between thread and session

2006-08-14 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear anonymous You may want to invest a few dollars and buy yourself this book... http://www.oreilly.com/catalog/headservletsjsp/ Regards Andrew On 14/08/2006, at 2:40 PM, Tomcat wrote: Hello what is the difference between thread and session

Re: do I need Apache httpd?

2006-08-20 Thread Andrew Miehs
No you do not need Apache, unless your static content is MUCH greater than your dynamic content - And even then, with a low volume site, it really doesnt make any difference Regards Andrew Nolan Johnson wrote: I've got a webapp that's entirely dynamic. That is, all of the content is produ

Re: multiple virtual hosts and ssl certificates

2006-08-25 Thread Andrew Miehs
You can only have 1 ssl certificate per IP address Andrew On 25/08/2006, at 11:09 AM, teknokrat wrote: I am trying to set up tomcat with multiple virtual hosts, each with their own SSL certificate. Is this possible? Do I add each certificate to the main keystore as per one host? -

Re: multiple virtual hosts and ssl certificates

2006-08-25 Thread Andrew Miehs
Peter is correct - I was just being a bit lazy in my answer... The ssl connection is setup BEFORE any 'hostname' information is passed over the link, and therefore the server would not know 'which' virtual hostname's ssl certificate to use. Therefore - 1 certificate per IP Address/ Port co

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What is this supposed to become? Do you want 10,000 domains on the tomcat? or do you want 10,000 webapps? The JVM will die if you do this with 10,000 webapps Andrew On 26/08/2006, at 11:36 AM, Mladen Turk wrote: KEGan wrote: Hi, I am wondering

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
Ok - Theoretically it may work... Who do you know that has a machine with Terabytes of memory? And is using it for web hosting?! The JVM will spend all its time doing context switching and garbage collection... Andrew On 26/08/2006, at 11:49 AM, Mladen Turk wrote: Andrew Miehs wrote

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you are only delivering static content, then use Apache or Lighttpd http://www.lighttpd.net/ This is NOT what tomcat is designed for As for how much memory, no idea - but it cant be good Andrew On 26/08/2006, at 12:00 PM, KEGan wrote: T

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
Dear Mladen, Are we referring to 10,000 Virtual servers or 10,000 Connections? And the answer is yes to 1 connections. Yes I would use worker-mpm or better still an epoll based httpd daemon, like lighttpd or zeus. Regards Andrew On 26/08/2006, at 12:18 PM, Mladen Turk wrote: Andrew

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
Stupid question, Why don't you implement the 'virtual' hosts inside the one 'webapp'? And not create 10,000 web apps? That the App itself deals with the virtual hosts (by reading the host header), and not tomcat? Andrew On 26/08/2006, at 12:30 PM, KEGan wrote: I tried to use only Tomcat s

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
ebapps, are the same, so I would look at only having 1 web app, and dealing with the 'virtual hosting' inside my webapp. Andrew On 26/08/2006, at 12:47 PM, Mladen Turk wrote: Andrew Miehs wrote: Are we referring to 10,000 Virtual servers or 10,000 Connections? And the answ

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Andrew Miehs
Why do you need c? Works with perl and shell scripts... You could even use java if you wanted Andrew On 30/08/2006, at 10:36 AM, Bruno M Luque wrote: I would use Nagios, its worth the effort of dealing with C, you dont have that meny choices!, cheers ---

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Andrew Miehs
From http://tomcat.apache.org/tomcat-5.5-doc/apr.html When APR is enabled, the HTTP connector will use sendfile for hadling large static files (all such files will be sent ansychronously using high performance kernel level calls), and will use a socket poller for keepalive, increasing scalabil

Re: Low performance with Tomcat APR

2006-09-05 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Which kernel are you using? 2.6 or 2.4? Andrew On 05/09/2006, at 3:34 PM, José Manuel Molina Pascual wrote: Hello, I just installed Tomcat APR on a SUSE 9 and found that the performance has fallen dramatically (I fact, performance with APR it's ha

Re: max memory..

2006-09-05 Thread Andrew Miehs
I discovered no difference in performance between running 1 tomcat, or 4 tomcats on the one machine - same performance. The machine was a 4x Opteron 870 with 8GB RAM, running Java 1.5.6 32bit. Andrew Boris Unckel wrote: Hello, >> can I move to 2048mb without any problem ? Leon Rosenberg wro

Re: moving to linux

2006-09-11 Thread Andrew Miehs
Hi Rodrigo, How long is a piece of string? The 'Brand' of linux only really makes a difference for administration purposes. Performance will be about the same on all, depending mainly on which version of the kernel you are running. Should you decide to go Linux, I would look at something w

Re: System requirements

2006-09-19 Thread Andrew Miehs
Hi Nicolas, Tomcat works best with large hardware. I have found that using a Sun Enterprise 15K with 1 processor per online user gives me the best performance. Regards Andrew PS: Maybe you should give us slightly more detailed information about your requirements if you want someone to b

Re: threads, performance, and exceptions

2006-10-01 Thread Andrew Miehs
You may want to try turning off keepalives in your tomcat. (I assume you are only using tomcat, and not proxying through mod_jk and apache/ IIS). In your connector settings have a look at 'maxKeepAliveRequests="1"' If you really have that many threads, you will probably be best of using Li

Re: Max Memory Reading

2006-10-13 Thread Andrew Miehs
Nope - the 32Bit JVM can only deal with about 1.5GB Ram Andrew On 13/10/2006, at 2:51 PM, Alan Flisch wrote: I thought you were safe up to 4000m (in practice a little lower) for the 32 bit VM. Regards, Alan - To start

Re: suppress tomcat version numbers

2005-11-23 Thread Andrew Miehs
Hi Charles, This seems to be a new option for TC 5.5. Do you know of anything similar for 5.0? Thanks Andrew On Nov 22, 2005, at 4:52 PM, Caldarale, Charles R wrote: From: Kiarna Boyd [mailto:[EMAIL PROTECTED] Subject: suppress tomcat version numbers Hi I'm trying to suppress the version

Using Tomcat as a reverse proxy

2006-05-03 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear List, I have an application where I need to use tomcat as a reverse proxy for certain URLs. Yes - I know normally it is the other way around, but not in this case. Is there a reverse proxy solution already out there for tomcat? or do I ne

Re: Using Tomcat as a reverse proxy

2006-05-03 Thread Andrew Miehs
Dear Chris, I am well aware of this - which is why I said it is NORMALLY the other way around. In our case though, our static content - images, etc are handled by stand alone image servers - ie: image.mydomain.com and our dynamic content comes from www.mydomain.com. I have the issue that

Re: Using Tomcat as a reverse proxy

2006-05-03 Thread Andrew Miehs
://www.javaworld.com/javaworld/jw-02-2005/jw-0228-pippo_p.html Last year at google summer camp http://j2ep.sourceforge.net/ But Apache mod_proxy has very much good perfomance and configure options :-) Regards Peter Am 03.05.2006 um 17:08 schrieb Andrew Miehs: -BEGIN PGP SIGNED MESSAGE- Hash

Re: Allow web access to /WEB-INF?

2006-05-04 Thread Andrew Miehs
Do you have an Apache up front as a reverse proxy? If so, you could make a separate mapping there... Andrew On 03/05/2006, at 6:12 PM, Dong, Roland wrote: Is there a way to have web access to /WEB-INF? I want to have this capability to access a directory under /WEB-INF by URL. Is there a wa

Re: Tomcat on a Memory Stick

2006-05-26 Thread Andrew Miehs
I am not sure I understand the problem? Are you running on Windoz or a UNIX(tm) based system? Why do you not define JAVA_HOME and CATALINA_HOME in the startup scripts? How do they start TOMCAT in your scenario - why don't you just do a 'pwd' and base the other variables relative to that? I

Re: Tomcat on a Memory Stick

2006-05-26 Thread Andrew Miehs
I have to write a .bat file and set the environment variables inside. And start this .bat File by the autorun.inf. But how has this script looks like to set the environment variables? Does someone has any idea, cause I'm not very familiar in writing such scripts? Thanks for your help

Re: Changing the Tomcat 5.0 Directory installed in FreeBSD

2006-05-31 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I missed the start of this thread... - - And the whole path is readable? ie: ls -l / ls -l /nextdir ls -l /nextdir/nextdir ? Andrew On 31/05/2006, at 10:38 AM, ks.foong wrote: No problems. Hoping maybe others can give a hand on this...:-) Foon

Re: Changing the Tomcat 5.0 Directory installed in FreeBSD

2006-05-31 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 echo $JAVA_HOME what does this return? cd /Project/Tomcat ./bin/startup.sh But no idea what is installed where on FreeBSD Why don't you just pull the package from Apache directly? Especially if you are not installing in the FreeBSD paths?

Re: Tomcat as a standalone webserver. Why not?

2006-06-01 Thread Andrew Miehs
If you are running a big site with multiple servers, you do NOT want to run Apache in front of your Tomcats - All that you do is increase latency, and half your performance. The HTTP connector in TC 5.x is more than adequate to deal with heavy traffic loads. To be honest, I try not to use A

Re: Urgent...

2006-06-06 Thread Andrew Miehs
In both tomcat/conf directories do a grep 'port=' server.xml Regards Andrew On 06/06/2006, at 4:25 PM, Christian Jean wrote: JDK 1.5 (AMD 64-bit) had been installed for several months already with JAVA_HOME configured correctly. Jeach! On 6/6/06, Bob Hall <[EMAIL PROTECTED]> wrote:

Re: Urgent...

2006-06-06 Thread Andrew Miehs
Thanks, Jeach! On 6/6/06, Andrew Miehs <[EMAIL PROTECTED]> wrote: In both tomcat/conf directories do a grep 'port=' server.xml Regards Andrew On 06/06/2006, at 4:25 PM, Christian Jean wrote: > JDK 1.5 (AMD 64-bit) had been installed for several months already > w

Re: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Andrew Miehs
@Mark, as Peter wrote, have a look in /etc/hosts. It probably looks like 127.0.0.1 localhost 192.168.0.2 testmachine.domain.com testmachine You should change this to 127.0.0.1 localhost testmachine 192.168.0.2 testmachine.domain.com Just be careful if you are using Solar

Re: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Andrew Miehs
The configuration in the connector is so that java know on which interface to 'BIND' to on the machine. Do a netstat -anp |grep LISTEN on your machine. This shows which interface which processes are bound to. The only process (generally speaking) that can connect to 127.0.0.1 is

Re: Multiple paths to one application

2006-11-02 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doesn't this only work if your application replaces the 'ROOT' application? Andrew On 02/11/2006, at 9:56 AM, Stephan Schöffel wrote: if you map them to one app in your web.xml you can have different paths link to one app. like: MyS

Re: AW: Multiple paths to one application

2006-11-02 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I hope that this is not really the reason why you want two paths to the application? Tomcat has user authentication built in!? Why not use it?! Otherwise, some smart user is going to have the idea of connecting directly to your tomcat instance.

Re: Thread pool per webapp?

2006-11-04 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As a quick hack If you only want to partition between 2 webapps you could always use the nasty method of using 2 tomcats. The other alternative would be to configure a second HTTP connector, and then use one for the one webapp, and the othe

Re: Thread pool per webapp?

2006-11-04 Thread Andrew Miehs
Why not, as i asked before, just start two tomcats? - not pretty but it works... ie: Tomcat1 (webapp1) - Port 8080 Tomcat2 (webapp2) - Port 8081 - Then setup tomcat1 with 70 threads, and tomcat2 with 30 threads Cheers Andrew On 04/11/2006, at 9:56 PM, David Smith wrote: Quoting the o

Re: Can't start tomcat on Debian Linux

2006-11-10 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You will want to do yourself a favour and download JDK 1.5 from sun (do not use the Debian Java Stuff)... Install it (unpack it and copy it to) in /usr/local/java then in your .profile JAVA_HOME=/usr/local/java export JAVA_HOME PATH=$JAVA_

Re: Tomcat Out Of Memory

2006-11-15 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Which kernel are you running? If you are running 2.4 I could imagine that it could be an out of process/ thread limit. Java used to report - out of memory - even for out of processes/ threads problems I think 2.4 had a default limit of 256 Proces

Re: Is jsp designed for use by large websites

2006-11-30 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear List, JSP is designed to be used for Websites. Depending what you do with it, changes where it can be used for a Large Web Site. As for the questions. 1a. Who cares if JSP is not supported by web hosting companies - Large web sites have t

Re: tomcat w/o commercial crap

2006-12-05 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is this a troll? You will need some copy of Java to use Tomcat - either the JVM from Sun, IBM or Blackdown (which I think is based on Sun's) As for ?! commercial = crap ?! Glad to see you are using a free non- commercial machine to write these m

Re: tomcat w/o commercial crap

2006-12-05 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Do yourself a favour and do NOT use Tomcat and Java from your linux distribution. Download Tomcat from Apache.org Download Java from http://java.sun.com/javase/downloads/index.jsp Either the JDK, or JRE Install them both in /usr/local ln -s /us

Re: tomcat w/o commercial crap

2006-12-05 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This however is a Gentoo packaging problem and not a user problem. If you want to get tomcat working as quickly as possible - download it directly from apache.org and IGNORE the gentoo packages. If you want it to work properly as a gentoo package

Re: Basic Auth without modification to web.xml?

2006-12-23 Thread Andrew Miehs
Hi Andreas, Why not just pack an Apache Httpd out front, and use access rules? Regards, Andrew On 23/12/2006, at 1:22 PM, Andreas Schildbach wrote: Hi everyone, Is it possible with Tomcat to "hide" an application behind a Basic Authentication (or something similar), without modifying the we

Re: web application - student need help

2007-01-08 Thread Andrew Miehs
| | i remember when websites like friendster.com came out, it was really | slow. | | now it is much faster, do you guys know where does a student learn | | about how to handle high traffic web applications? is there any | | classes? http://www.kegel.com/c10k.html is a good place to start

Re: Securing Tomcat Article for Review

2007-01-09 Thread Andrew Miehs
On 09/01/2007, at 5:20 PM, Christopher Schultz wrote: Leon Rosenberg wrote: Also by using apache in front of tomcat you rather loose[sic] security than gain it. At least this is my personal opinion :-) Would you care to defend that argument? Security in layers is typically an advantage. O

Re: Securing Tomcat Article for Review

2007-01-10 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/01/2007, at 11:50 AM, Mikolaj Rydzewski wrote: Leon Rosenberg wrote: Sure, I could write my own filters and pass the static content through them first, but that'd slow down the whole app (tested). Could you explain this a little more? Ho

Re: Command line reloading of a webapp?

2007-01-17 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 curl http://localhost:8080/manager/reload?path=/examples ? Andrew On 17/01/2007, at 11:01 PM, Boemio, Neil (FGIC) wrote: I know I can reload a webapp using: http://localhost:8080/manager/reload?path=/examples But is there a way to do this from a

Re: Performance tuning parameters

2007-02-15 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear J' What do you mean you are hitting connection limits?! Are you getting errors? What are you seeing that makes you think that is slow? Is there a database involved in this application? I assume you are running linux on your server, with a 2.

Re: Performance tuning parameters

2007-02-16 Thread Andrew Miehs
ive memory allocation or cpu on the box. Thanks, J On 2/15/07, Andrew Miehs <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear J' What do you mean you are hitting connection limits?! Are you getting errors? What are you seeing that makes you think that is slow

Re: Apache and Tomcat

2008-06-25 Thread Andrew Miehs
On 25/06/2008, at 17:43, "Steve Ochani" <[EMAIL PROTECTED]> wrote: I know this may sound naïve but is it possible to have tomcat and apache running off the same port - 8080. No, TCP only allows one port per service. You can let apache httpd use 8080, move tomcat to something else and

Re: Restart TC with cron/sh

2008-07-07 Thread Andrew Miehs
On 07/07/2008, at 4:11 PM, Piller Sébastien wrote: Yes, we're running Linux. I'm not sure what's my distrib. I'm using our dedicated hosting, administrated via ssh. When I need to start tomcat, I just use the startup.sh script (the one in /bin/). Same to shutdown: use shutdown.sh. It's po

Re: Performance tuning parameters

2007-02-18 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi JR, Based on your description of the problem, as you have looked at everything else, MaxThreads is the only option you have left us with. Further below however you let slip that mod_jk is also involved. Why? This is a really great way to kill per

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This will work if you are only using 1 Apache HTTPD server Regards Andrew On 07/03/2007, at 11:27 AM, Sriram Narayanan wrote: I'd posted sometime ago seeking help for a particular requirement. Rainer Jung replied to my post. The thread is here h

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/03/2007, at 12:58 PM, Sriram Narayanan wrote: On 3/7/07, Andrew Miehs <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This will work if you are only using 1 Apache HTTPD server Are you referring to the fol

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
tween the two web servers?" Cheers Andrew On 07/03/2007, at 4:24 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: This will work if you are only using 1 Apache HTTPD server Really? It looks like it would work to me. Sure, th

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
e the only real ways of dealing with this. Cheers Andrew On 07/03/2007, at 6:26 PM, Christopher Schultz wrote: Andrew Miehs wrote: Balancing the 2 Tomcats behind one Apache (with sticky sessions) works. Now you add a second Apache HTTPD. How do you choose which one of these gets used? You now

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/03/2007, at 7:47 PM, Leon Rosenberg wrote: On 3/7/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: Perhaps round-robin DNS? That's how I would do it, unless I wanted to buy a real load balancer like a BigIP. Ok, round-robin dns will work

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/03/2007, at 1:28 AM, Christopher Schultz wrote: Either a real load balancer (like a BigIP) or some form of Linux HA are the only real ways of dealing with this. I totally agree. A single BigIP is a single point of failure, though. R-R DNS

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/03/2007, at 11:22 AM, Roman Medina-Heigl Hernandez wrote: Hello, Server version: Apache Tomcat/5.5.17 Server number: 5.5.17.0 OS Version: 2.4.34-grsec-rslabs-k7 JVM Version:1.4.2_10-b03 PS: A 2nd issue (not related to chroot) tha

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Roman, To be honest I don't really understand your concerns with 2.6, but if you really want to be running anything that uses threads, use a 2.6 kernel. If the Java Tomcat App that you are running is just a frontend to something else, and not rea

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/03/2007, at 2:31 PM, Christopher Schultz wrote: The reading I've done so far on this subject leads me to believe that most people don't know what they heck they're talking about. Some claim that 32-bit OSs can't use more than 4GB RAM (they

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/03/2007, at 3:11 PM, David Delbecq wrote: This has changed. An new architecture was brought in CPU (at pentium II time?) that allowed OS to do a 4G/4G mapping in 32 bits mode. Since you don't access kernel space from user mode directly, yo

Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
On 14/03/2007, at 3:17 PM, Peter Crowther wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] There is no real advantage in multi-instancing. A minor advantage is that if you allocate one webapp per container, if one webapp fails it only takes down its own container. Well-coded webapps "sh

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
On 14/03/2007, at 3:21 PM, Peter Crowther wrote: Let's be clear about the distinction between "OS" and "process managed by OS": - The OS as a whole can manage > 4 Gbytes of physical memory using PAE; - On some OSs (Linux, perhaps?), a user process cannot be allocated > 4 Gbytes of RAM; S

Re: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/03/2007, at 3:52 PM, Caldarale, Charles R wrote: The user space is the amount of RAM you as a process can allocate for this single process. No - RAM has nothing to do with the split. Process memory is the amount of virtual space allocated

Re: Tomcat + Cisco CSS Load-balancer configuration

2007-03-20 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Why not just use source IP address based persistence? The CSS11501 is not very fast, and it will have a lot of work ripping apart the layer 7 parts of the http requests. If you do not have a lot of traffic, source based persistence should be adequat

Re: Custom error page on Tomcat 6

2007-03-20 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/03/2007, at 5:28 PM, Hoa Doan wrote: How do I set up a custom error page in Tomcat 6? Hoa, Stupid question... Have you tried entering "Custom error page on Tomcat" into Google? Grrr Andrew -BEGIN PGP SIGNATURE- Version: GnuPG v1.

Tomcat 5.5 and secure="true"

2007-03-29 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear List, After reading all the comments regarding mod_proxy_ajp, I am currently looking at migrating to mod_proxy_http. The application uses "isSecure" to check whether the request is an HTTPS connection or not. Therefore, I have created 2

Re: Tomcat 5.5 and secure="true"

2007-03-30 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear Filip, Thanks for the info! This was what I was planning on doing with Tomcat 5.5. I have now gone back to use mod_proxy_ajp. (I can not migrate to Tomcat 6.0 for political reasons)... Regards Andrew On 29/03/2007, at 9:54 PM, Filip Hanik

[OT] Re: is tomcat a competitor of ruby on rails? Or why did davidson praise it so highly - can you compare them?

2007-04-02 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ruby on Rails is a framework. If you do things the way Rails expects you to do things, its quite nice for doing frontends to databases. Just don't expect a performance wonder. No, you don't need to switch, but its definitely another tool worth

[OT] Re: Java on Multi/Dual Core

2007-05-23 Thread Andrew Miehs
On 23/05/2007, at 11:08 AM, Kurt Spescha wrote: I apologize for this question, maybe the wrong place to put it to. But someone who is using Tomcat soon or later will be confronted with the performance problem with java and multi/dual core machines. Multi/dual core is trendy, customers want t

Re: Load balancer (apache or hardware)

2007-09-25 Thread Andrew Miehs
On 25/09/2007, at 3:05 PM, Dave wrote: I am in the process of setting up a cluster of a number of JBoss. Should I use Apache or hardware load balancer in the front? Please advise. I am concerned about about Security and Performance. How much money do you want to spend? I personally prefe

Re: Tomcat crash @ midnight - but why?

2007-09-27 Thread Andrew Miehs
Are you using Log4j in your application? It has the option to do daily (midnight) rotates on log files... Oh - and you may want to have a serious talk with the cleaning lady, not that she unplugs the server for the vacuum cleaner.. ^^ Cheers Andrew On 26/09/2007, at 6:11 PM, Christopher Schul

Re: Tomcat causing high CPU load

2007-11-06 Thread Andrew Miehs
Hi Bob, Kill -3 Will produce a stack trace in catalina.out This problem is VERY most probably your code, and not tomcat, but a stacktrace should show this. ps auxwh will also give you an indication, its probably just 1 thread pushing you to such a high load. As for "walking" through the cod

Re: Tomcat - threads / throughput limits?

2007-11-08 Thread Andrew Miehs
On 08/11/2007, at 4:51 PM, Jim Cox wrote: On Nov 8, 2007 10:41 AM, <[EMAIL PROTECTED]> wrote: In resolving our current bottleneck i used JProfiler to see what the tomcat applications were doing and when under high load there are a lot of threads which are blocked on this: org.apache.tomcat

Re: [OT] Tomcat causing high CPU load

2007-11-08 Thread Andrew Miehs
On 08/11/2007, at 6:29 PM, Bob Riaz wrote: Thanks. StringBuilder seems to be the most popular suggestion! I'm going to implement this and report on any changes I see in Tomcat's behavior. I'm also looking at other possiblities, such as Tomcat's I/O activities causing thrashing if I/O is exc

Re: Apache/Tomcat/mod_jk over WAN

2007-11-13 Thread Andrew Miehs
On 13/11/2007, at 6:47 AM, nirmala wrote: hi I have one question I want to installation procedure for the apache tomcat5.5 version in windows XP Cick, then click, then click, then click. Andrew smime.p7s Description: S/MIME cryptographic signature

Re: multiple tomcat processes running on linux

2007-11-15 Thread Andrew Miehs
On 15/11/2007, at 4:31 PM, Palat, Anil wrote: -Tomcat 5.0.16 -Red Hat Enterprise Linux AS release 3 (Taroon Update 4) 2.4.21 32.0.1.ELsmp (32-bit) When I give ps -ef | grep tomcat, it shows multiple processes running & all of them grabbing majority of the available memory You are running o

Re: [OT] Release Management and Deployment

2007-11-16 Thread Andrew Miehs
On 16/11/2007, at 4:09 PM, Martin Gainty wrote: 2 options-Tried and true Ant which is rock solid reliable, easily configurable and a user-friendly user-list where a resource will respond in 24 hoursmore information available athttp://ant.apache.org/Maven..complex environment with heavy rel

[OT] Release Management and Deployment

2007-11-16 Thread Andrew Miehs
Dear Tomcat users, I was wondering if there are any out of the box release management and deployment solutions available for Tomcat. It is not a problem to create scripts/ web pages to do all of this, but is there a better solution out there, so that people with command line allergy can a

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Andrew Miehs
On 06/12/2007, at 5:12 PM, Peter Crowther wrote: From: Sean Carnes [mailto:[EMAIL PROTECTED] The back-end servers seem to be responding in a timely fashion right now. We have performance data from the time period and nothing seems abnormal. I unfortunately missed the first part of this threa

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-06 Thread Andrew Miehs
Do you also have performance data for the front end machines? What OS are you running? Would definitely recommending installing sar (or sysstat package) if you are running linux. If Linux, which kernel? If it really is heap, have a look at: http://hausheer.osola.com/docs/5 for a simple desc

Re: Tomcat 4.1.31 crashing with memory errors, crashing with no errors and shutting down cleanly without manual intervention

2007-12-07 Thread Andrew Miehs
On 06/12/2007, at 10:34 PM, Sean Carnes wrote: The highest that we could set the heap was to 1200. I tried higher and it would not start. It also seemed somewhat unstable above 1024 which was the previous setting, slowness updating the client and other things. The company that develops the

  1   2   >