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

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

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

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

[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,

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

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: 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: 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 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: 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: [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: 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: 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: 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: 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 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: 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 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: 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-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-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-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: Encrypt Tomcat 4.1 log and log4j.properties log with MD5

2007-06-20 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/06/2007, at 12:53 PM, Johnny Kewl wrote: Why? No, do it some other way, I think this will get horribly complex. On windows I think near impossible, short of placing a symmetrical alg in the source. What about normal protection, in essence

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 3:25 PM, Prashant Thakkar wrote: I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 4:45 PM, Prashant Thakkar wrote: Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250.

Re: Windows or Linux as Tomcat server?

2007-06-18 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Linux with a 2.6 kernel should perform better. I would be a little worried placing a Windows Server at a service provider without some sort of firewall/ packet filter protecting from the big bad Internet. But as you are asking this question,

Re: Problem with JVM, and Tomcat tuning

2007-06-15 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/06/2007, at 4:36 PM, Peter Crowther wrote: From: Hassan Schroeder [mailto:[EMAIL PROTECTED] On 6/15/07, Jacob Bunk Nielsen [EMAIL PROTECTED] wrote: I experience random crashes of the JVM on a daily basis. It simply fails with segmentation

[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

[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

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

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 + 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

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

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,

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

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; Sorry,

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

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)

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

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

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 following

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

2007-03-07 Thread Andrew Miehs
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, the separate mod_jks

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

2007-03-07 Thread Andrew Miehs
are 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 have

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

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

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

  1   2   >