Tomcat auf MS Cluster?
Hello, we're planning to run Tomcat Apache 5.0.28 on a MS Server 2008 R2 64Bit Ent. Failover Cluster. Does anyone has productive experience on that? Does it work, How good does it work, .? Things to be aware of? (If required, Tomcat 6.* is possible but we'd prefer Tomcat 5.0.28 to start this project because we've most experience and know how with that one. Updating Tomcat later on is no big deal) Thank you for any inputs! // Stefan
AW: Logger / Context
Hello, thank you for your reply but I do not manage to get my desired result. We have several axis*** servlets installed in /webapps of Tomcat 6.0*. (Let's call it axis1 to axis100 for this explanation.) In Tomcat 5.0* we had different contexts with loggers defined in server.xml, thus the stdout was redirected to the files configured in this loggers. This configuration is not proposed and also not supported in Tomcat 6. == We have tried a lot of different things but I never managed to redirect my stdout from localhost.Date.log to a localhost_axis1.Date.log file. Does anyone has a hint for me, where to configure that or how? Thanks in advance STefan -Ursprüngliche Nachricht- Von: Pid * [mailto:p...@pidster.com] Gesendet: Montag, 31. Mai 2010 16:13 An: Tomcat Users List Betreff: Re: Logger / Context On 31 May 2010, at 12:29, Stefan Rainer s.rai...@teamaxess.com wrote: Hello, we've been using context + logger for redirecting stdout-logs from different servlets to different folders in tomcat 5.0.*: Context docBase=axis path=/axis reloadable=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/axis/ prefix=StdOut_axis_ suffix=.log timestamp=true/ /Context After upgrading to tomcat 6.*, this log redirects does not work anymore. Has anyone a hint or a link to some information how this could be done in Tomcat 6? Configuration details have changed since 5.0, please read the docs for Context, Host (and DataSource if applicable). The Logger element is no longer used. The AccessLogValve is now used for request logging. You must configure your own logging for in-app logs, e.g. Log4j. p thanks, stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: AW: Logger / Context
Hello, thank you, i managed to get exactly what I wanted with the gloabal logging.properties! BUT ANOTHER QUESTION: I would like to addionally compress (zip) old logs and delete them after (e.g.) 30 days. Is there any existing automatism in tonmcat / java logging? (Using Tomcat 6 on Windows Server machines) Thank you very much for your efforts! Regards, STefan -Ursprüngliche Nachricht- Von: Felix Schumacher [mailto:felix.schumac...@internetallee.de] Gesendet: Dienstag, 1. Juni 2010 10:16 An: Stefan Rainer Betreff: Re: AW: Logger / Context Am Dienstag, den 01.06.2010, 10:08 +0200 schrieb Stefan Rainer: Hello, thank you for your reply but I do not manage to get my desired result. We have several axis*** servlets installed in /webapps of Tomcat 6.0*. (Let's call it axis1 to axis100 for this explanation.) In Tomcat 5.0* we had different contexts with loggers defined in server.xml, thus the stdout was redirected to the files configured in this loggers. This configuration is not proposed and also not supported in Tomcat 6. swallowOutput should work to redirect stdout from your servlets into the standard tomcat logger. But that has changed. Read http://tomcat.apache.org/tomcat-6.0-doc/logging.html for configuring it. There are basically two ways to accomplish it. 1. create or modify a logging.properties inside your WEB-INF/classes dir 2. modify the global logging.properties inside $CATALINA_BASE/conf Bye Felix == We have tried a lot of different things but I never managed to redirect my stdout from localhost.Date.log to a localhost_axis1.Date.log file. Does anyone has a hint for me, where to configure that or how? Thanks in advance STefan -Ursprüngliche Nachricht- Von: Pid * [mailto:p...@pidster.com] Gesendet: Montag, 31. Mai 2010 16:13 An: Tomcat Users List Betreff: Re: Logger / Context On 31 May 2010, at 12:29, Stefan Rainer s.rai...@teamaxess.com wrote: Hello, we've been using context + logger for redirecting stdout-logs from different servlets to different folders in tomcat 5.0.*: Context docBase=axis path=/axis reloadable=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/axis/ prefix=StdOut_axis_ suffix=.log timestamp=true/ /Context After upgrading to tomcat 6.*, this log redirects does not work anymore. Has anyone a hint or a link to some information how this could be done in Tomcat 6? Configuration details have changed since 5.0, please read the docs for Context, Host (and DataSource if applicable). The Logger element is no longer used. The AccessLogValve is now used for request logging. You must configure your own logging for in-app logs, e.g. Log4j. p thanks, stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Logger / Context
Hello, we've been using context + logger for redirecting stdout-logs from different servlets to different folders in tomcat 5.0.*: Context docBase=axis path=/axis reloadable=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/axis/ prefix=StdOut_axis_ suffix=.log timestamp=true/ /Context After upgrading to tomcat 6.*, this log redirects does not work anymore. Has anyone a hint or a link to some information how this could be done in Tomcat 6? thanks, stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Logger / Context
Hello, we've been using context + logger for redirecting stdout-logs from different servlets to different folders in tomcat 5.0.*: Context docBase=axis path=/axis reloadable=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/axis/ prefix=StdOut_axis_ suffix=.log timestamp=true/ /Context After upgrading to tomcat 6.*, this log redirects does not work anymore. Has anyone a hint or a link to some information how this could be done in Tomcat 6? thanks, stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28?
Hello, if we follow the hint to use 1.6 JDK instead of 1.5 JDK, do we get performance improvements also with appliactions compiled for 1.5 ? ? ? This is an interesting question to keep compatibility between different servers, which we can not update to 1.6 at the same time and therefore it would be nice to use the 1.5 applications until all servers run 1.6 ... Thank you for your inputs !! -Ursprüngliche Nachricht- Von: Mark Thomas [mailto:ma...@apache.org] Gesendet: Freitag, 12. Februar 2010 16:45 An: Tomcat Users List Betreff: Re: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28? On 12/02/2010 13:51, Caldarale, Charles R wrote: From: Stefan Rainer [mailto:s.rai...@teamaxess.com] Subject: AW: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28? I would now like to optimize the thread configuration of our Tomcat There's not much point in trying to optimize an unsupported, six-year-old version of Tomcat. Your time would be better spent upgrading to a current level, which includes significant performance improvements. +1. Heck, just upgrading to a 1.6 JDK should give a noticeable improvement. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28?
Hello, tank you very much, we're running now the described architecture on 64 bit environment! I would now like to optimize the thread configuration of our Tomcat and therefore I would like to use the manager information like Current thread count, Current thread busy or error count: ... == Does anyone has a link / url /document where these parameters are explained in detail ? Regards, Stefan! -Ursprungliche Nachricht- Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Gesendet: Donnerstag, 11. Februar 2010 17:24 An: Tomcat Users List Betreff: RE: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28? From: Stefan Rainer [mailto:s.rai...@teamaxess.com] Subject: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28? BUT as far as I know, tomcat 5.0.28 is compiled for 32 bit. Tomcat is pure Java, so it's independent of architecture. If you're running Tomcat as a service on Windows, you will need to get the 64-bit version of the service wrapper (tomcat5.exe). Get it from here: http://svn.apache.org/repos/asf/tomcat/tc5.5.x/tags/TOMCAT_5_5_28/connectors /procrun/bin/amd64/ (The 5.5 tomcat5.exe will work on 5.0.) We'd like to avoid a Tomcat update at the moment! Don't wait too long - the version you're on is almost six years old and hasn't been supported for quite some time. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28?
Hello, if we decide to upgrade our Tomcat 5.0.28 to some more reason version, should we go to 5.5.* or 6.0.24 ?? Our most important requirement is high performance, memory consumption is not so important. Thank you! -Ursprungliche Nachricht- Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Gesendet: Freitag, 12. Februar 2010 14:52 An: Tomcat Users List Betreff: RE: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28? From: Stefan Rainer [mailto:s.rai...@teamaxess.com] Subject: AW: 64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28? I would now like to optimize the thread configuration of our Tomcat There's not much point in trying to optimize an unsupported, six-year-old version of Tomcat. Your time would be better spent upgrading to a current level, which includes significant performance improvements. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Denial of Service / MaxThreads
Hello, we are currently running a Tomcat 5.0.28 on Java 1.5.0.11 with a MaxThreads Configuration of 500 threads. This server is very sensitive to (kind of) denial of service attacks and we would like to improve stability in case of thousands of client requests. server.xml extract of connector: Connector port=16302 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / At the moment we are not able to modifiy something on network level and it seems that Tomcat never recovers if the maxThreads are exceeded one time ... Therefore the question, how could we modify Tomcat to improve stability? Regards, Stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
64bit Server + JDK 1.5 (64bit) + Tomcat 5.0.28?
Hello, we have to increase the number of maximum threads on our 64 bit server Windows 2003 server. At the moment we are running Tomcat 5.0.28 on a JDK 1.5 32 bit because of historical issues and we can serve about 500 threads without having memory problems. If we increase maxThreads size over 500, we get memory errors. (Heap Space is configured to 800 MB maximum) Now we are thinking about switching to the 64 bit JDK to avoid these memory problems. BUT as far as I know, tomcat 5.0.28 is compiled for 32 bit. So, do we get any advantage from replacing the 32 bit JVM against the 64bit? We'd like to avoid a Tomcat update at the moment! Thank you for inputs!! Stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: Service available for HTTPS only? (no HTTP)
Hello, thanks for answering. In my web.xml file I don't find any entry corresponding my service. It seems to be the default web.xml file provided by Axis 1.3. I did some researches on your keywords transport-guarantee and CONFIDENTIAL but I could not find something usefull. In my point of view, it will probably be the easiest way to install two Axis-servlets in the Tomcat. One for HTTP and one for HTTPS. Then I can deploy the services either for HTTP or for HTTPS. Does anyone know how I can configure my Axis servlet to only handle HTTPS requests? Is the difference between HTTP and HTTPS forwared from Tomcat to Axis? Does it know it? Regards Many Thanks in advance -Ursprungliche Nachricht- Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Gesendet: Dienstag, 30. Juni 2009 19:08 An: Tomcat Users List Betreff: RE: Service available for HTTPS only? (no HTTP) From: Stefan Rainer [mailto:s.rai...@teamaxess.com] Subject: Service available for HTTPS only? (no HTTP) The service XY can still be called via HTTP (without SSL). == Does anyone knows a trick to avoid calls via HTTP to this service? Read the servlet spec, the contents of which are intentionally *not* duplicated in the Tomcat docs. Specifically, set a transport-guarantee of CONFIDENTIAL in your webapp's WEB-INF/web.xml file. See the servlet spec for exact details. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Service available for HTTPS only? (no HTTP)
Hello! Situation: At the moment we are working on following environment and not able to make any updates with the next time: Win2000 Workstation Tomcat 5.0.28 Axis 1.3 JDK 1.5_11 Until today we had only one HTTP connector configured in Tomcat to provide some (Axis) SOAP Services. All of them work fine! Target Solution We need to use HTTPS (SSL) for one of these services instead of HTTP. We configured a second connector in the Tomcat und followed this instruction: http://www.torsten-horn.de/techdocs/ssl.htm The service XY is now available via HTTPS and it works fine! Problem: The service XY can still be called via HTTP (without SSL). == Does anyone knows a trick to avoid calls via HTTP to this service? We can not remove the HTTP connector because some other services on this server have to be available with HTTP. Many thanks in advance, Stefan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
IOException while loading persisted sessions / java.lang.OutOfMemoryError: Java heap space
Hello, we are running a Tomcat 5.0.28 on W2k Server with 2 GB RAM and JVM 1.5.0_11-b03 which is mainly used as application server for (Axis-based) SOAP Services. From time to time our Tomcat blows up to use almost the whole available RAM and finally it crashes. In the logfile, we find the following: - IOException while loading persisted sessions: java.io.EOFException java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.init(Unknown Source) at org.apache.catalina.util.CustomObjectInputStream.init(CustomObjectInputStr eam.java:56) [] - Exception loading sessions from persistent storage java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) at java.io.ObjectInputStream.readStreamHeader(Unknown Source) at java.io.ObjectInputStream.init(Unknown Source) [] After that a restart of Tomcat is not possible and the following lines can be found in stdout.log: SEVERE: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError: Java heap space Exception in thread http-16302-Processor151 java.lang.OutOfMemoryError: Java heap space 28.11.2008 20:08:47 org.apache.coyote.http11.Http11Processor process SEVERE: Error processing request java.lang.OutOfMemoryError: Java heap space Only a reboot of the whole server fixes the problem and tomcat works again as exptected. I have read in some forum, that we could clean the ${catalina.home}/work/Catalina/localhost/ directory to enable a tomcat restart without server restart. We haven't been able to try that yet, but that fixes only the symptomatic not the problem. Does anyone have an idea/experience where the problem comes from? Something to do with memory / session management? Extract from configuration / status, if needed: Free memory: 10.42 MB Total memory: 63.56 MB Max memory: 63.56 MB Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current thread count: 84 Current thread busy: 13 Max processing time: 876219 ms Processing time: 153801 s Request count: 283471 Error count: 182 Bytes received: 552.95 MB Bytes sent: 549.65 MB Many thanks in advance, Stefan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: IOException while loading persisted sessions / java.lang.OutOfMemoryError: Java heap space
Hello Andre, thank you very much for your comments. We've modified the java heap memory configuration and will observe the system. Is there any possibiliy in Tomcat 5.0.28 to turn off session-persistence? I would like to avoid the creation of [catalina-home]\work\ . We don't use persistant sessions in our applications. ?? Thanks, Stefan -Ursprüngliche Nachricht- Von: André Warnier [mailto:[EMAIL PROTECTED] Gesendet: Montag, 01. Dezember 2008 11:47 An: Tomcat Users List Betreff: Re: IOException while loading persisted sessions / java.lang.OutOfMemoryError: Java heap space Sorry, I was so shocked by the last info about 64 MB, that I missed what you wrote about the physical machine... Stefan Rainer wrote: Hello, we are running a Tomcat 5.0.28 on W2k Server with 2 GB RAM and JVM 1.5.0_11-b03 which is mainly used as application server for (Axis-based) SOAP Services. So, the machine itself has enough memory, it's just that the way Tomcat is started, the JVM under which it runs does not receive more than 64 MB of Heap space to run, which is really low for a server. The fix is probably simple ; you need to increase how much heap memory Java can play with. Since you are running this under Windows, I presume it runs as a service, and probably in your Tomcat/bin directory you have 2 files : tomcat5.exe and tomcat5w.exe. tomcat5w.exe is a GUI application, which allows you to set the parameters under which the JVM of Tomcat is started. Double-click on it, select the Java tab. At the bottom of that tab, there are 2 input boxes : Initial Memory Pool and Maximum Memory Pool. Enter 256 in each of them, and click OK. Then restart your Tomcat service and see if you still get the same problem. These parameters are the equivalent of specifying the -Xms256M and -Xmx256M on the java command-line that starts Tomcat. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory consumption of Tomcat?
Hello, analyzing some memory problems I am wondering what's about the memory consumption for tomcat.exe shown in the windows task manager? - Java Heap size is configured as default (64MB) - tomcat uses 150 MB according to windows task manager (win 2000, tomcat running as service) - Addionally I have a java process using about 15 MB RAM What's up with the 150 MB RAM for tomcat.exe? Is there any documentation available on that? Many thanks, Regards, Stefan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Memory consumption of Tomcat?
Hello Andre, thx for your explanations and the hint with the jconsole tool. I am already monitoring with it ... @Chuck: Thank you for your commt. It would be important to be able to plan the memory consumption of an application in productive environment. Therefore I am trying to analyze the consumption in the testing environment as detailed as possible to make a vague assumption of the mem-requirements in productive environment. Regards, Steafn -Ursprüngliche Nachricht- Von: André Warnier [mailto:[EMAIL PROTECTED] Gesendet: Montag, 01. Dezember 2008 16:32 An: Tomcat Users List Betreff: Re: Memory consumption of Tomcat? Stefan Rainer wrote: Hello, analyzing some memory problems I am wondering what's about the memory consumption for tomcat.exe shown in the windows task manager? - Java Heap size is configured as default (64MB) - tomcat uses 150 MB according to windows task manager (win 2000, tomcat running as service) - Addionally I have a java process using about 15 MB RAM What's up with the 150 MB RAM for tomcat.exe? Is there any documentation available on that? I am sure that there is plenty of documentation on that, starting with what you will find in Google. But don't expect anything simple. Tomcat is a Java application. Java uses a lot of memory. That's a fact of life, better get used to it. The heap memory that you configured earlier, is only part of the memory used by Java and Java applications. Also, depending on the machine and the OS, I am never quite sure whether 128M means bytes or words.. Think of it this way : Java is a Virtual Machine, running under your OS. It insulates the Java applications from the underlying OS and hardware. That is why Java applications are multi-platform : they carry their own platform with them. The price you pay for that is memory. Another thing : under Windows and with the standard installation as a Service, don't get fooled by the name tomcat.exe. That is only a wrapper program to make it run as a Windows Service. Underneath, it really starts the Java Virtual Machine (java), and the JVM then starts the application (Tomcat). - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.* Docuemntation available?
hello, i am looking for a detailed manual on the configuration parameters of tomcat 5.0. I can only find one for 5.5 does anyone has a link/document for me? // Stefan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]