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

Re: Tomcat causing high CPU load

2007-11-06 Thread Andrew Miehs
Hi Bob, Kill -3 TOMCAT PID 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

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:

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

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

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

[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

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

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

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

Re: Enhancing Tomcat Speed

2007-12-22 Thread Andrew Miehs
On 22/12/2007, at 3:45 PM, Pid wrote: Richard Reyes wrote: Hi All, Please send suggestions on how to improve the tomcat performance. Do you mean that you want to improve Tomcat's performance, or the web application(s) you are deploying on Tomcat? I think he wants us to do his

Re: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Andrew Miehs
On 02/01/2008, at 3:43 PM, Gregor Schneider wrote: The official Apache-solution is imho - get the sources at http://ftp.hosting-studio.de/pub/linux/apache/tomcat/tomcat-6/v6.0.14/src/apache-tomcat-6.0.14-src.zip - compile it on your 64bit-platform using a 64bit-JDK using the provided

Re: Tomcat with 8 GB memory

2007-07-26 Thread Andrew Miehs
On 26/07/2007, at 10:57 AM, Joe Nathan wrote: I would discourage to use such machine! 8GB means you are using 64 bit machine which will be much slower than 32 bit machines. Big memory is useful ONLY if you have applications that can benefit big memory such as database systems. In Java, if

Re: Tomcat with 8 GB memory

2007-07-27 Thread Andrew Miehs
On 27/07/2007, at 12:19 PM, Joe Nathan wrote: Christopher Schultz-2 wrote: Joe Nathan wrote: I would discourage to use such machine! 8GB means you are using 64 bit machine which will be much slower than 32 bit machines. Huh? Why would a 64-bit machine run slower than a 32-bit machine?

Re: Tomcat with 8 GB memory

2007-07-29 Thread Andrew Miehs
On 29/07/2007, at 9:08 PM, David Smith wrote: ...but people advice that 64bit are 20 - 30% slower than the 32bit ... Could these people offer any evidence to this? Cite any benchmarks? I would like to see the evidence of this before believing it to be true. We did test with out

Re: Tomcat with 8 GB memory

2007-07-30 Thread Andrew Miehs
On 30/07/2007, at 8:02 AM, Peter Stavrinides wrote: Apologies Ron this was supposed to be directed at Andrew Miehs! Peter Stavrinides wrote: From your comments Ron you obviously didn't understand a thing I wrote, because you have just repeated me! Dear Peter, Obviously! :-) On 29/07

Re: Tomcat with 8 GB memory

2007-07-31 Thread Andrew Miehs
On 31/07/2007, at 2:04 PM, Mohan2005 wrote: so now we have to identify if our application is 64bit compatible or 32bit compatible. If your application is only JAVA, then no porting is required. Andrew - To start a new

Re: Recovery from OutOfMemoryError?

2007-07-31 Thread Andrew Miehs
On 31/07/2007, at 6:52 PM, Craig Berry wrote: Fixing the bug would be cool, but the bug is actually just too many users contending for the same heap space, so that's going to be tough. I'd thought of the log watcher, but that seems a rather blunt instrument; I was thinking there might be some

Re: Recovery from OutOfMemoryError?

2007-07-31 Thread Andrew Miehs
On 31/07/2007, at 7:19 PM, Caldarale, Charles R wrote: From: Craig Berry [mailto:[EMAIL PROTECTED] Subject: RE: Recovery from OutOfMemoryError? It depends on what the user chooses to do during the session. Again, try another point of view. It's what the webapps choose to do in response to

Re: Recovery from OutOfMemoryError?

2007-07-31 Thread Andrew Miehs
On 31/07/2007, at 7:39 PM, Marco wrote: Dear Craig, You are familiar with, even with enough systemmemory, JVM uses limited memory? I your application consumes much memory, you could change settings in the tomcat6.conf file: #JAVA_OPTS=-Xminf0.1 -Xmaxf0.3 JAVA_OPTS=-Xmx1024M -Xms512M mx

Re: Recovery from OutOfMemoryError?

2007-08-01 Thread Andrew Miehs
On 01/08/2007, at 3:44 PM, Christopher Schultz wrote: I'm guessing he's running a webapp, and that one of the request worker threads got an OOME. Most webapp requests are idempotent (or should be), and those that aren't are generally wrapped around database or other transactions. Assuming

Re: Recovery from OutOfMemoryError?

2007-08-01 Thread Andrew Miehs
On 01/08/2007, at 6:50 PM, Mark H. Wood wrote: Would you (or anyone) care to provide a link to where I can learn more about swatch? Everything I've turned up so far points to a wanna-be replacement for UTC called internet time promoted by a watchmaker. http://swatch.sourceforge.net/

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

Re: Please Need Help ...... :(

2008-03-24 Thread Andrew Miehs
On Mon, 2008-03-24 at 19:00 +0530, karthikn wrote: Problem Load on this single TOMCAT is building up the CPU for 100% ,as the subscribers are increasing. How many users are we talking about here?! That is a a LOT of users for the 5 or 6 requests before they are authenticated? How many

Re: Please Need Help ...... :(

2008-03-24 Thread Andrew Miehs
On 24/03/2008, at 3:09 PM, karthikn wrote: Hi Thx for the reply We need to Configure TOMCAT 's ROOT to APCHE2.x for Load balancing. mod_proxy_ajp Problem Load on this single TOMCAT is building up the CPU for 100% ,as the subscribers are increasing. Read other mail from me. Solution

Re: Please Need Help ...... :(

2008-03-24 Thread Andrew Miehs
On 24/03/2008, at 3:14 PM, karthikn wrote: How many users are we talking about here?! About 500+ users and increasing every month Total users online - ok - not a probelm How many authentications are you doing a second?! Since this is a WIFI / AAA application for Students locally on

Re: best option Load Balancing

2008-03-25 Thread Andrew Miehs
On 25/03/2008, at 6:47 AM, karthikn wrote: Users 500+ ( Traffic increasing day by day ) You mentioned these were WLAN users - This number is irrelevant for your performance info - what was much more important was the 25/ 30 logins per second. O/s Unix 11 JSDK =1.6 TOMCAT 5.5.23

[OT] Re: Top mail servers

2008-03-28 Thread Andrew Miehs
On 28/03/2008, at 8:47 PM, Srivastava, Abhay wrote: Thanks a lot Guys. So is Exim better than Sendmail in terms of robustness and faster service? It very much depends on what you want to do. I am a big postfix fan - exim is supposedly also great. qmail is also very good. But these are only

Re: [OT] Re: Top mail servers

2008-03-28 Thread Andrew Miehs
On 28/03/2008, at 10:40 PM, Srivastava, Abhay wrote: Hi Andrew, I dn't have experience with either of them. SO which one do you suggest should be a good selection to start with ? I prefer postfix - simple and fast and its what I know. My users don't be reading the mails right now. But,

Tomcat 5.5 and keep-alive and http connector

2008-04-02 Thread Andrew Miehs
Dear List, How does enabling keep-alives effect the number of threads required by tomcat? Assuming: maxKeepAliveRequest = -1 1000 online users - each with 2 connections Does this mean that I will have 2000 threads open - one per connection? ie: Is the the connection assigned a thread

Re: Tomcat 5.5 and keep-alive and http connector

2008-04-02 Thread Andrew Miehs
On 02/04/2008, at 5:51 PM, Caldarale, Charles R wrote: From: Andrew Miehs [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 and keep-alive and http connector The only thing I could find related to this was from the Tomcat 6.0 documentation on http://people.apache.org/~fhanik/http.html It appears

Re: Tomcat 5.5 and keep-alive and http connector

2008-04-03 Thread Andrew Miehs
On 02/04/2008, at 6:02 PM, Andrew Miehs wrote: On 02/04/2008, at 5:51 PM, Caldarale, Charles R wrote: It appears that the chart at the bottom of the above page answers your question, unless I'm misreading it. Since there is no NIO connector in 5.5, it looks like you'll need a very large

Re: Threads

2008-04-03 Thread Andrew Miehs
From: Stephen Caine [mailto:[EMAIL PROTECTED] I have a process that generates hundreds of threads. Running on Mac OS X 10.5.2 Server, the thread count tops out at approximately 2500. After which, the process is terminated. The heap size is set to 1 gigabyte. My question is how to increase the

Re: [OT] Threads

2008-04-03 Thread Andrew Miehs
On 03/04/2008, at 7:14 PM, Christopher Schultz wrote: Alan Chaney wrote: | Actually another question is what is it in your application that NEEDS | 2500 threads? Ooh! I know... it's a ray-tracer that goes ral fast if you give each output pixel its own thread. More threads = faster,

Compiling jni/native on Debian Etch

2008-04-22 Thread Andrew Miehs
Dear List, has anyone else tried to compile apr and the native tomcat libraries on etch? debian40-64:/usr/local/src/tomcat-native-1.1.12-src/jni/native# ./ configure --with-apr=/usr/local/apr --with-java-home=/usr/local/java I get loads of messages including ./configure: line 5472:

Re: R: How to close idle connections

2008-04-28 Thread Andrew Miehs
On 28/04/2008, at 4:59 PM, Alan Chaney wrote: David Smith wrote: No, I have at most 20 idle connections, that's goes right, but my boss want less idle connections to avoid to overload the database server. So there isn't way to close an idle connection to remove the relative process? If

Re: JMX Perform GC TOMCAT 5.5.23

2008-06-04 Thread Andrew Miehs
On 04/06/2008, at 4:15 PM, karthikn wrote: We notice Constantly JAVA is 100% CPU utilization. I am coming in late on this - what OS are u running? How are you seeing the 100% CPU utilization, with top? If you have a multiprocessor machine, you may find that top always shows 100% when

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

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

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

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...:-)

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

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 with JAVA_HOME configured

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

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: servlet

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

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

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

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

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

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

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

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

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 web

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.

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?

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

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

Re: Performance tuning parameters

2007-02-16 Thread Andrew Miehs
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? Is there a database

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

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

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

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

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

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 img tag? and have tomcat deliver the page... 3 - You are using tomcat aren't you? Confused Andrew On 11/07/2006,

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 'img src='.$IMAGE_DIRECTORY.$image.''; Very

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

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

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

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

2006-07-12 Thread Andrew Miehs
? -Original 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

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

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

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://myserver/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,

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

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?!

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

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

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

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:

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

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

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

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

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

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

Re: threads, performance, and exceptions

2006-10-02 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

  1   2   >