Re: Tomcat was shutdown by self

2008-05-06 Thread Ronny Sisworo
Chris, Tomcat version 5.5.20. No body to do that, but in log file of Tomcat, I can see process shutdown and no body login OS admin. Setting parameter Tomcat: not start and shutdown automatically. Regards, Ronny - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To:

Re: Tomcat problem on a multiple CPU system

2008-05-06 Thread Leon Rosenberg
just 2 cents, if your 8 IEs are running in one process, which is default to my knowledge, they are sharing the same urlhelper/toolkit which default to 4 max parallel connections. I suggest you write a small java programm that tests it for you (with commons-httpclient) or use jmeter or at least

Re: CPU usage quirk with multiple tomcat instances

2008-05-06 Thread Lists
Yes, same webapp load - i.e. they're both handling the same number of transactions per second. I guess the only advantage of multiple JVM's is reliability - if one instance goes down the other can still handle load on that machine. Also; I guess someone thought originally that 2 instances doing

Re: CPU usage quirk with multiple tomcat instances

2008-05-06 Thread Leon Rosenberg
Hello Dan, what also may happening is that you have unneeded or errorneous synchronisation somewhere in your code. Two instances : less code in same block and vm, effectively less synchronization. try to profile whether some use cases take longer on the single tomcat per machine. We once tried

Tomcat Production Configuration

2008-05-06 Thread Peter Stavrinides
Hi All My question concerns optimizing Tomcat. Our setup is roughly this: - Dual Quad Core with 8 gigs memory (4 gigs dedicated for Tomcat) - Single instance of Tomcat6 - Single web application (Java Servlet) - AJP connector A little about the application: The site is relatively low volume,

Re: Tomcat Production Configuration

2008-05-06 Thread Peter Stavrinides
Sorry I forgot to add: Connector port=8009 protocol=AJP/1.3 connectionTimeout=2 enableLookups=false redirectPort=8443 maxThreads=300/ We also run under SSL, which is taken care of by Apache. - Original Message - From: Peter Stavrinides [EMAIL PROTECTED]

JkMount Syntax for complete directory mounting

2008-05-06 Thread Stephanie Wullbieter
Hello, if I want the whole apache directory tree /servlet/ and all the files and directories within to be routed to Tomcat worker1, what of the following is correct in mod_jk.conf? JkMount /servlet/ worker1 JkMount /servlet worker1 JkMount /servlet/* worker1 JkMount /servlet worker1

How to use a custom formater for org.apache.juli.FileHandler

2008-05-06 Thread Zlatan Kadragić
I have changed logging.properties file in conf directory so that i have different log files for different web apps. This is what i have changed/added to that file: handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler,

How to add tomcat messages and System.out to log

2008-05-06 Thread Michal Singer
Hi. I am using tomcat 6 log4j configuration. I can't see the tomcat source files log messages in the log. and also i can't see the System.out in the log. I tried using: swallowOutput=true in the context file I also configured in the log4j.properties: log4j.logger.org.apache=DEBUG, FILE

Re: JkMount Syntax for complete directory mounting

2008-05-06 Thread Mladen Turk
Stephanie Wullbieter wrote: if I want the whole apache directory tree /servlet/ and all the files and directories within to be routed to Tomcat worker1, what of the following is correct in mod_jk.conf? JkMount /servlet worker1 JkMount /servlet/* worker1 (both together) Both You can even

Tomcat Service Stops in XP

2008-05-06 Thread Marcos
Hi people I have installed tomcat 5.5 in many pc with windows xp and never had a problem.. but now i have one that when i start tomcat the server stops but it self in few seconds... i tried to start with right click in icon on taskbar - start and going to xp services - Apache Tomcat - Run..

RE: Tomcat Service Stops in XP

2008-05-06 Thread Peter Crowther
From: Marcos [mailto:[EMAIL PROTECTED] I have installed tomcat 5.5 in many pc with windows xp and never had a problem.. but now i have one that when i start tomcat the server stops but it self in few seconds... i tried to start with right click in icon on taskbar - start and going to xp

Installing tomcat on multiple cpu X_86 64 bit machine

2008-05-06 Thread sur_1805
i m very new to tomcat. Now i have to install the tomcat 5.5 and jdk 1.5 on a multiple cpu( 4 dual core processors) 64 bit machine. i m confused with first step. how i tune the tomcat and do load balancing such that tomcat servlet make use of all the 4 processors when i perform multiple request.

RE: Installing tomcat on multiple cpu X_86 64 bit machine

2008-05-06 Thread Peter Crowther
From: sur_1805 [mailto:[EMAIL PROTECTED] i m very new to tomcat. Now i have to install the tomcat 5.5 and jdk 1.5 on a multiple cpu( 4 dual core processors) 64 bit machine. i m confused with first step. how i tune the tomcat and do load balancing such that tomcat servlet make use of all the

RE: JAAS authenticated user fails authorization check

2008-05-06 Thread Robin Coe
Problem is, the GenericPrincipal class is in the Catalina jar, which is available to Tomcat as a native library but for me to make use of it, I'd have to include it in my web-app lib. I was hoping to be container-agnostic and avoid any proprietary libraries, which is why I used JNDI and JAAS.

Hide Users password when using JMX

2008-05-06 Thread Gunnar.Bostrom
Hi, I'm using JMX to monitor Tomcat 5.5.25 and it works fine. But I don't like that password of Users are revealed. Is it possible to configure Tomcat/JMX so that passwords are not shown? Regards Gunnar - To start a new topic,

RE: Installing tomcat on multiple cpu X_86 64 bit machine

2008-05-06 Thread sur_1805
Peter Crowther wrote: From: sur_1805 [mailto:[EMAIL PROTECTED] i m very new to tomcat. Now i have to install the tomcat 5.5 and jdk 1.5 on a multiple cpu( 4 dual core processors) 64 bit machine. i m confused with first step. how i tune the tomcat and do load balancing such that tomcat

Re: Hide Users password when using JMX

2008-05-06 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Hi, I'm using JMX to monitor Tomcat 5.5.25 and it works fine. But I don't like that password of Users are revealed. Is it possible to configure Tomcat/JMX so that passwords are not shown? Use digested passwords. Mark

Re: TOMCAT CLUSTERING HOWTO

2008-05-06 Thread karthikn
Hi How to test TOMCAT CLUSTERING with out Load balancer As Per the Tomcat 5.5.23 Cluster HowTo Documents I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM. but not able to SAMPLE TEST the clustering Am i on doing some thing wrong in here.? Please Some body

RE: Hide Users password when using JMX

2008-05-06 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Hide Users password when using JMX But I don't like that password of Users are revealed. To quote from the Tomcat doc: MemoryRealm is a simple demonstration implementation of the Tomcat 6 Realm interface. It is not designed for

RE: Installing tomcat on multiple cpu X_86 64 bit machine

2008-05-06 Thread Peter Crowther
From: sur_1805 [mailto:[EMAIL PROTECTED] i m using linux(RHEL 5) with 16 GB RAM. OK. Is it possible to split the JVM off into multiple processes for the hundreds of threads we end up running? Sort-of, but think: why would you want to? Modern Linuxes can handle hundreds of threads per

Re: Hide Users password when using JMX

2008-05-06 Thread Gunnar.Bostrom
Hi, Thanks for answering. All regular users are in a database with passwords MD5 encoded, but not handled by Tomcat. The concern I have is the users tomcat and manager that must be in the tomcat-users.xml file or don't they? Regards Gunnar -Ursprungligt meddelande- Från:

Re: Hide Users password when using JMX

2008-05-06 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Hi, Thanks for answering. All regular users are in a database with passwords MD5 encoded, but not handled by Tomcat. The concern I have is the users tomcat and manager that must be in the tomcat-users.xml file or don't they? Nope. You can use any realm with any

RE: url-pattern not working with AxisServlet

2008-05-06 Thread Kurt Kavanaugh
That would be a correct. :) Perhaps an interesting annotation in the Axis 2 documentation as I am sure we are not the only ones using the connector. Straight forward once detected, but with all the setup that goes on introducting a new SOAP stack to a legacy development environment in can be

Re: JAAS authenticated user fails authorization check

2008-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, Robin Coe wrote: | Problem is, the GenericPrincipal class is in the Catalina jar, which | is available to Tomcat as a native library but for me to make use of | it, I'd have to include it in my web-app lib. Actually, no. GenericPrincipal as

Re: url-pattern not working with AxisServlet

2008-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kurt, Kurt Kavanaugh wrote: | That would be a correct. :) Perhaps an interesting annotation in the | Axis 2 documentation as I am sure we are not the only ones using the | connector. | | Straight forward once detected, but with all the setup that

Re: Tomcat was shutdown by self

2008-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronny, Ronny Sisworo wrote: | No body to do that, but in log file of Tomcat, I can see process | shutdown and no body login OS admin. So, what is in the log files? Does Tomcat emit standard shutdown log messages, or does the JVM crash? | Setting

Web server and tomcat - firewall

2008-05-06 Thread Andrew Hole
Hi all| Maybe you could help me to solve a problem with your experience. My company has implemented a solution of 3 layers (Apache web server, Tomcat Container and Database). There is a firewall between the web server and the tomcat. We get the following errors in mod_jk log: These errors

RE: JAAS authenticated user fails authorization check

2008-05-06 Thread Robin Coe
Chris, You are quite correct about the classpath contention. I should have been clear; to make use of the libraries in my IDE, I'd have to include the jar in my lib folder for development, not deploy the jar with the web-app. That, or use introspection to avoid the IDE compile problems and

RE: url-pattern not working with AxisServlet

2008-05-06 Thread Kurt Kavanaugh
Respectfully disagree Then why document Tomcat/Axis? Where is the line drawn? Axis has no business level requirements to run in a given container technology. Or do they? If a given set of elements, Apache,connector,Tomcat make up a common model of deployment why not facilitate? Anyway just an

RE: JAAS authenticated user fails authorization check

2008-05-06 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: JAAS authenticated user fails authorization check but I was under the impression that it is atypical to implement your own Principal object. Actually, it's pretty much required to implement your own, unless you're using

Re: Tomcat Production Configuration

2008-05-06 Thread Pid
Hi, I'm not sure if this will apply in your case, but I found that offloading the mail to a second (relatively low spec as it happens) local machine improved the mail output rate considerably - mailouts went in about 1/4 of the previous time. The local mail server was using CPU cycles and

Re: url-pattern not working with AxisServlet

2008-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kurt, Kurt Kavanaugh wrote: | Then why document Tomcat/Axis? Because Axis needs to be installed on a Java application server. Tomcat is a free one (and also under the Apache umbrella), so they go out of their way to tell you how to get it going.

Re: Web server and tomcat - firewall

2008-05-06 Thread Filip Hanik - Dev Lists
could be the extra space JkOptions + DisableReuse should be JkOptions +DisableReuse someone will correct me if I am wrong :) if you are not using disable reuse, one has to match up the max clients on the httpd side with the maxThreads on the tomcat side, so that you don't leave

RE: Installing tomcat on multiple cpu X_86 64 bit machine

2008-05-06 Thread sur_1805
thanks peter for your information, i m very new to this situation. now. can i install the tomcat5.5 and jdk1.5 on machine(4 processor with 64 bit on RHEL 5) without need to worry about load balancing and tuning at the time of installation? Peter Crowther wrote: From: sur_1805