RE: Log rotation HOWTO
You may use cronolog from http://cronolog.org/. And, modify the catalina.sh as following in the start part. elif [ $1 = start ] ; then shift if [ $1 = -security ] ; then echo Using Security Manager shift $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start|/usr/local/sbin/cronolog /usr/local/tomcat/logs/catalina.out.%Y-%m-%d /dev/null 21 if [ ! -z $CATALINA_PID ]; then echo $! $CATALINA_PID fi else $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start|/usr/local/sbin/cronolog /usr/local/tomcat/logs/catalina.out.%Y-%m-%d /dev/null 21 if [ ! -z $CATALINA_PID ]; then echo $! $CATALINA_PID fi fi Kenneth Kwan -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 10:04 PM To: [EMAIL PROTECTED] Subject: Log rotation HOWTO I haven't been able to find a clear answer to this anywhere online, hopefully you fine folks can help... I need a way to rotate my stdout log in Tomcat 5.0.18. It could be dalily or weekly (monthly might be OK too). Is thre any way to do this? I assume so, so how? Thanks in advance all! _ Get fast, reliable Internet access with MSN 9 Dial-up - now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache http / mod_rewrite / mod_jk
Instead of directly redirect to mod_jk, can you just use mod_write to insert a directory prefix which can trigger mod_jk? Kenneth -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 3:28 AM To: Tomcat Users List Subject: Apache http / mod_rewrite / mod_jk All, The archives show this questions being asked all the time, but with no useful responses. Please let me know if this is a known unresolved or unresolvable issue. All solutions posted anywhere for jsessionid makes Apache go beaindead apparently use a mod_rewrite incantation similar to the following: IfModule mod_rewrite.c RewriteEngine on # Force URLs with a jsessionid to go to Tomcat. Necessary because # Apache doesn't recognise that the semi-colon is special. RewriteRule ^(/.*;jsessionid=.*)$ $1 [T=jserv-servlet] /IfModule While I'm sure this worked out great the people using mod_jserv back in 1997, it does not work for mod_jk. For one thing, it does not even let you specify which worker to use :( Back in the day, Craig responded by pointing to a Tomcat FAQ entry which no longer exists, but presumably had something to do with Apache's mod_rewrite. On the other hand, a solution was posted (and confirmed by some readers) that the following works: JkMount /test/*;jsessionid=* ajp13 This seems very obvious, and there's a caveat about how it might not work on older versions of mod_jk. It apparently does not work for me. I'm using mod_jk (not mod_jk2), version 1.2.5 (current release) on Apache 2.0.48 as a dynamic module on Linux -- everything compiled myself with nothing out of the ordinary. Can anyone offer any advice? I've just been sucking it up and ignoring this problem for a while, now (years). Is there actually a solution out there for this? Am I just mistyping the JkMount configuration? Anyone, please help. Thanks, -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat 4.1.2x] Bug in Response Header Encoding ???
Title: [tomcat 4.1.2x] Bug in Response Header Encoding ??? Hi all Has anyone found after upgrading to 4.1.24 / 4.1.27, you cannot download file with filename contains non-iso characters, e.g. big5, etc. The problem seems in header encoding where the servlet engine always encode the headers(e.g. Content-Disposition: filename=xxx) in UTF-8 irrespective the ContentType setting. The problem does not found in 4.0.6 Can anyone help? Kenneth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2/Tomcat 4.1.24 hang with ..%5c.. pattern !!!
Title: Apache2/Tomcat 4.1.24 hang with ..%5c.. pattern !!! Just found if ..%5c.. is contained in request url, apache2/tomcat will hang for processing and never return. Also found Error flushing... in mod_jk.log, e.g. http://yourserver/examples/..%5c../any.jsp However, the problem does not occur in Apache2/Tomcat 4.0.6 and Tomcat 4.1.24 Alone Anyone found similar problem? Kenneth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can anyone give me an idea of the maximum hit rate for Tomcat on a PC
With simple JSP, a few hundreds per second on RH7.0, single PII400, tomcat 3.x, Apache 1.3.9, 128M RAM. Please test and advise your finding on 1GHz CPU -Original Message- From: Simon Crase [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 1:50 PM To: 'Tomcat Users List' Subject: Can anyone give me an idea of the maximum hit rate for Tomcat on a PC I'm trying to get a feel for the maximum number of pages I can expect Tomcat to serve per second on a reasonable PC - say 1G RAM and a 1 processor speed around 1GHz. I know the correct answer is it depends, but I'd appreciate any feedback on whether I should be looking at tens of hits, hundreds or whatever for a best case - very simple pages without any database access, as it will be a few days before I get to make any measurements. Regards, Simon Simon A. Crase Invetech Pty Ltd Private Bag 44 495 Blackburn Road Mount Waverley Vic 3149 Phone: 61 3 9211 7933 Mobile: 0408 579 006 Fax:61 3 9211 7702 (facsimile) e-mail: [EMAIL PROTECTED] ___ IMPORTANT - This email and any attachments may be confidential. Any retransmissions, dissemination or other use of these materials by persons or entities other than the intended recipient is prohibited. If received in error, please contact us and delete all copies. Before opening or using attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. [Any representations or opinions expressed in this e.mail are those of the individual sender, and not necessarily those of Vision Systems Limited]. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Log4j initialization problem
Title: RE: Log4j initialization problem I found the same problem as well. It seems that for the same JVM (even with different webapps) all use the same(i.e. the last initialized) config file. Kenneth -Original Message- From: James Adams [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 4:25 AM To: [EMAIL PROTECTED] Subject: Re: Log4j initialization problem Hello, I have tried the ServletContextListener approach suggested below by Sriram (thanks !) and I am still having the same problem, i.e. I get the log file (specified in my log4j.properties file) created under whatever directory I am at when I issue the tomcat start command. It appears that the log file is being created and placed in the current working directory if I specify only the file name in the log4j.properties File entry. If I specify the full path, such as log4j.appender.A1.File=/var/tomcat/webapps/myapp/LogMessages.txt then it creates and places the file exactly where it the entry specifies. But I want to just specify the filename and have it created under the webapp's context directory, that way I won't have to remember to change the log4j.properties entry whenever the webapp is moved to another context directory or installed on another machine which might have a different webapps directory path. So is there a way to get the log file to be created and placed under its webapp's context directory ? Also would it be more appropriate to post this topic/thread to the log4j user group ([EMAIL PROTECTED]) ? Thanks in advance for any suggestions or clues. -James Hello, I don't have access to my computer right now, but here's roughly what I do to use log4J within my Servlet 2.3 API compliant webapps. 1. Create a properties file called log4j.properties 2. Place this in WEB-INF folder. 3. Write a ContextListener and in the contectInitialized method, access the servlet context. Make sure you place this Listener implementation along with your other classes and that you add an entry for it in web.xml 4. Ask the servlet context to get the following resource as a stream e.g. InputStream is = servletContext.getResourceAsStream(/WEB-INF/log4j.properties); 5. Create a properties file that'll initialize with this property file. Properties properties = new Properties(); properites.load(is); is.close(); 6. Now pass this newly initialized properties object to the PropertyConfigurator... That's it. Sriram -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to obtain original request url?
Title: How to obtain original request url? I have configured my webapp with customized error page for 404 error. Does anyone know how can I obtain the original requested URL? Thanks Kenneth Kwan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: jkconf? Does it work in 4.0.1? Where's workers.properties?
Just copy the workers.properties from 3.x Kenneth -Original Message- From: Scott Merritt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:30 AM To: 'Tomcat Users List' Subject: RE: jkconf? Does it work in 4.0.1? Where's workers.properties? Is it possible to manually create these? I mean, where do I find out what goes in a workers.properties file? I have no clue without installing 3.3, and I'm guessing I'll have to do some tweaking on the files it generates. -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:09 AM To: 'Tomcat Users List' Subject: RE: jkconf? Does it work in 4.0.1? Where's workers.properties? Tomcat 4.x originally came with just mod_webapp as the connector, which doesn't require these extra files that mod_jk does. Integration of mod_jk support with Tomcat 4.x is still on going. Since Tomcat 3.x is quite different from Tomcat 4.x (compare server.xml files for example), is means that some of what you find in the Tomcat 3.3 documentation isn't going to apply to Tomcat 4.x. The jkconf option is a good example. This is a feature that applies only to Tomcat 3.3. None of the Tomcat 4.x releases does auto-config generation (mod_webapp didn't need it). I believe the next releases of Tomcat 4.x will contain some support for this. For the time being you have to create them manually, or if you feel like investing in the disk space, install a version Tomcat 3.3 to help generate them. Cheers, Larry -Original Message- From: Scott Merritt [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 6:50 PM To: 'Tomcat Users List' Subject: jkconf? Does it work in 4.0.1? Where's workers.properties? Hmm... My next question is, how come I can't find a workers.properties file? I'm using Tomcat 4.0.1 and trying to get it to autgen the config files... None of these generate anything: ./startup.sh jkconf ./catalina.sh jkconf Okay... So I figured I'd do it manually, but I don't see any workers.properties file to follow the simple example in the 3.3 mod_jk docs (http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html) Hmm... Now what? Confused. Does Tomcat 4 not do this conf writing anymore? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: [ajp13]bad read -103
Title: RE: [ajp13]bad read -103 It also exists in my Linux box RH 7.1 with Apache 1.3.2x and mod_jk Rgds -Original Message- From: Reto Badertscher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 6:23 PM To: Tomcat Users List Subject: AW: [ajp13]bad read -103 Hi, i'm using the same configuration and get the same messages. Don't know what it means, but the application works OK and there are no entries in my iis_redirect log. Perhaps somebody knows what causes the messages? Regards Reto -Ursprungliche Nachricht- Von: Andy Soedibjo [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 12. Dezember 2001 10:14 An: [EMAIL PROTECTED] Betreff: [ajp13]bad read -103 Hi all, I'm a new comer ... so please forgive me if there is any mistake in my sentences. ;-) I've tried to use tomcat 4.0.1 as a servlet engine with IIS 5.0 using isapi_redirect.dll. And, after doing some configurations, i can successfully configure the tomcat, and it works fine. But, in the tomcat's console, I see this error/warning message [ajp13]bad read -103. I've tried to follow Henri Gomez's instruction to use ajp.jar and tomcat-util.jar in http://jakarta.apache.org/~hgomez/ajp13-tc4.0/ but it still give the same message. Anybody know this problem? This is my connector configuration : Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 connectionTimeout=0 / Thanks in advance. Regards, Andy. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0 and Poolman
Title: RE: Tomcat 4.0 and Poolman This also works on my TC4.0.1 Poolman 2.0.4 -Original Message- From: KL OOI [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 4:12 PM To: Tomcat Users List Subject: Re: Tomcat 4.0 and Poolman put all the Poolman related JAR files into TOMCAT_HOME/webapps/yourapps/WEB-INF/lib and poolman.xml into TOMCAT_HOME/webapps/yourapps/WEB-INF/classes this is work for me on TC 3.3 + Poolman 2.0.4 - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 22, 2001 3:57 PM Subject: Tomcat 4.0 and Poolman Hi Folks I have searched the archives and there is lots of messages saying people are having problems with Tomcat 4.0 and Poolman, but there is no follow up messages saying definitly that these two do not work together, or how things can be configured so they do work in harmony. Can someone please tell me if it is possible to get them working together. Cheers Tony -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2.3 and Linux JDK 1.3.1
Title: RE: Tomcat 3.2.3 and Linux JDK 1.3.1 try ulimit -s 2048 -Original Message- From: Michael Weissenbacher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 2:00 PM To: '[EMAIL PROTECTED]' Subject: RE: Tomcat 3.2.3 and Linux JDK 1.3.1 i've stopped using the sun jdk on linux and i am using the ibm jdk now because it has far better performance and i didn't expience any lockup problems with it. michael -Original Message- From: David Wall [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 10:59 PM To: Tomcat Users List Subject: Tomcat 3.2.3 and Linux JDK 1.3.1 Have people found any problems running Tomcat 3.2.3 on JDK 1.3.1? We found that Tomcat seemed to get locked up under JDK 1.3.1 on Linux, but when reverting back to 1.3.0, the problem does not appear. Does anybody have any experience or know what's happening? It sure would be a pain to discover that Tomcat won't run reliably under a released JDK. Thanks, David -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Ho to change default ContentType ?
By default, JSP compiler generates ¡§response.setContentType(¡§text/html; charset=ISO-8859-1¡¨) in every JSP page. I can change the type by manually inserting ¡§response.setContentType(¡§text/html; charset=xxx¡¨) in every JSP page. Is there any way to change the ¡§default¡¨ charset in ContentType such that there is no need to setContentType manually? Kenneth
RE: ===Session Question===
Anil Just on top of normal session validation, add 1 session attribute in servlet1 to indicate that this session is valid+ and remove this attribute in servlet2. So, after leaving serlvet2, the session is valid everywhere except servlet2. Kenneth Kwan -Original Message- From: anil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 11:04 AM To: [EMAIL PROTECTED] Subject:Re: ===Session Question=== Thanks for the idea Alin. But that will invalidate all the attributes in the session. I want to keep some. And some to keep only in the request context (what ever you call). request.getSession(true) - this will create new session if you do not have a session. I am not sure what will happen with request.getSession(false) if you already have a session, I guess you can't access any session variables in that servlet because it is kind of ignoring the session. (I am not an expert on this). anil Alin Simionoiu wrote: I was thinking at something more simple then this. When you pass an object between servlet1 and servlet2, you pass also the request object ( HttpServletRequest..) So, in servlet2 you can do HttpSession session = request.getSession(false);right?.. ( where request is the request object passed by servlet1).. After you serve you're client you can simple do a : session.invalidate(); and you're session that was passed from Servlet1 is no more a valid one. Alin
RE: setContentType / File download
Please help, we encounter similar problem but with IE5.5 only (no problem with all Netscapes, and IE5.01 and below versions). Seems MS has changed something in IE5.5 Kenneth -Original Message- From: Gerd Trautner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 4:08 PM To: tomcat-user Subject:setContentType / File download Hi tomcat-user, i have some troubles using the setContentType method. I want to generate a CSV file of my database data and send it to the browser. the browser should then say "save file as filenam.csv" ... what i do is: response.setContentType("application/msexcel;name=\"TUInventory.csv\"\nConte nt-Disposition: attachment;filename=TUInventory.csv;"); this works for netscape browsers, but ie wants to save index.html. any tips? Gerd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet preLoad difference between IBM JDK Sun JDK
Recently I have tried IBM JDK1.3 to run my tomcat and everything seems ok. However, when I wanted to pre-load a servlet from a package, I found that the behavior of IBM¡¦s JDK Sun¡¦s JDK are different where IBM¡¦s only works with package.class while Sun¡¦s is package/class. Can anyone advise which is correct? *** Cut from my web.xml *** 1) Using Sun¡¦s JDK servlet servlet-name MyInit /servlet-name servlet-class Pkg/MyInit --diff in here /servlet-class load-on-startup 1 /load-on-startup /servlet 2) Using IBM¡¦s JDK servlet servlet-name MyInit /servlet-name servlet-class Pkg.MyInit --diff in here /servlet-class load-on-startup 1 /load-on-startup /servlet Thanks Kenneth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Servlet preLoad difference between IBM JDK Sun JDK
Recently I have tried IBM JDK1.3 to run my tomcat and everything seems ok. However, when I wanted to pre-load a servlet from a package, I found that the behavior of IBM¡¦s JDK Sun¡¦s JDK are different where IBM¡¦s only works with package.class while Sun¡¦s is package/class. Can anyone advise which is correct? *** Cut from my web.xml *** 1) Using Sun¡¦s JDK servlet servlet-name MyInit /servlet-name servlet-class Pkg/MyInit --diff in here /servlet-class load-on-startup 1 /load-on-startup /servlet 2) Using IBM¡¦s JDK servlet servlet-name MyInit /servlet-name servlet-class Pkg.MyInit --diff in here /servlet-class load-on-startup 1 /load-on-startup /servlet Thanks Kenneth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: performance
I have also tested IBM¡¦s JDK 1.3 and my test case had many CPU intense jobs (processor loading was 90%). I found that IBM¡¦s JDK only took 13sec to complete all the jobs while SUN¡¦s required 20 sec to complete. FYI Kenneth -Original Message- From: Todd Carmichael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 4:12 AM To: '[EMAIL PROTECTED]' Subject:RE: performance IBM does have a 1.3 for Intel and it is quite fast (faster than sun's hotspot in my tests). (You need to register with IBM to get in. http://www6.software.ibm.com/dl/wspt/priv/wspt-h?S_PKG=pretechww -Original Message- From: John Golubenko [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 7:59 AM To: [EMAIL PROTECTED] Subject: Re: performance It's true. Original Message On 2/2/01, 5:45:09 PM, "Geoff Lane" [EMAIL PROTECTED] wrote regarding Re: performance: I think it's only for Linux (and AIX) - good reason to switch. :) More info is available at: http://www.alphaworks.ibm.com/tech Todd Carmichael wrote: Running Windows 2000 Advanced Server with Sun JDK 1.3 and hotspot. Anyone know where can I find the IBM JDK 1.3 for Windows platforms? -Original Message- From: Steve Ruby [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: Re: performance With tomcat 3.2.1 and IBM JDK1.3 on linux running a PII 400Mhz with 192Megs (physical) I was able toget 650 requests/sec running apache ab like this -n 1 -c 100 against the RequestInfo example servlet. with no un-returned requests. Which JVM/OS where you running in the tests below? Todd Carmichael wrote: My tests, using Microsofts Web Application Stress (WAS) Tool, had the following results for a simple servlet that all it did was display a single html table: Weblogic: 490 requests/sec Tomcat: 540 requests/sec Resin: 850 requests/sec - produced numerous socket errors (Connection reset by peer). The other servlet engines did not do this. This was on a Pentium III 600 Mhz with a heap of 128mb. I had 4 WAS (HTTP) clients engaged in the tests. Each client had 50 threads hitting the Web server The real question being asked is Tomcat suitable for production environments. This is something I really would like to get a feel for from other developers experiences. I am very interested in using Tomcat for production and the performance seems reasonable enough for me. I am curious about monitoring tools and security issues with open source; that is what our IT department will hammer us on. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 7:56 AM To: [EMAIL PROTECTED] Subject: RE: performance Tomcat does indeed "catch up" if I stop the jmeter client, accessing the application through a browser is much more responsive, but still a little slower than I would hope. The same test with resin does not show any noticeable degradation in performance. In fact I upped the ante with resin. I started 2 more jmeter clients (configured the same), and still noticed no significant drop in performance when accessing the site through a browser. A few connections were refused, but that is to be expected, with the current configuration. You may ask, why not just use resin and stop whining :) ... in short while resin does perform it has some problems in how it implements the servlet spec that make me leery of deploying a production app on it. Once again, any insight would be appreciated. p.s. Randy, Thanks for the info, I will check into the things that you mentioned. With regards to the fingers, they are hard to come by, but I heard amazon.com is opening a new branch and offering extremely discounted server fingers .. you may want to check there :) Thanks, Bob
RE: Multipart and mod_jk
Seems ajp13¡¦s problem as I can use the O¡¦Reilly package in JRun and mod_jserv w/o any prob Kenneth Kwan -Original Message- From: AC [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 3:53 PM To: [EMAIL PROTECTED] Subject:RE: Multipart and mod_jk Is this a bug on ajp13 or on O'Reilly package?? andrea At 09.48 12/12/2000 +0800, you wrote: Use mod_jk with AJP12 (not AJP13) will work Kenneth Kwan -Original Message- From: AC [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:49 AM To: [EMAIL PROTECTED] Subject:Multipart and mod_jk I've got a servlet that use the O'Reilly package to manage multipart request. If I use mod_jserv everything works fine. Once I use mod_jk the same servlet fails!!! Any solutions?? andrea
RE: Multipart and mod_jk
Use mod_jk with AJP12 (not AJP13) will work Kenneth Kwan -Original Message- From: AC [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:49 AM To: [EMAIL PROTECTED] Subject:Multipart and mod_jk I've got a servlet that use the O'Reilly package to manage multipart request. If I use mod_jserv everything works fine. Once I use mod_jk the same servlet fails!!! Any solutions?? andrea
RE: APXS mod_jk.so
Check for Perl installed or not, apxs requires Perl to run Kenneth Kwan -Original Message- From: bdh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 05, 2000 9:00 AM To: [EMAIL PROTECTED] Subject:APXS mod_jk.so To Whom Can Help... I am currently trying to setup tomcat to work with apache. I followed instructions but recieved an error that talks about jk_module and how mod_jk.so is garbled and may not be a DSO type file upon start up of TOMCAT. Can anyone help? I believe to correct this I must use the "APXS" program to modify the mod_jk.so file (or is there a better version I can download, where?). I actually tried this to use APXS... however I was unable to perform this task. I followed the command lines in the mod_jk.so documentation however my RedHat Linux op system was unable to find or execute the file even though I can see it in the directory. Can anyone help me? THANKS IN ADVANCE. BDH
RE: don't know how to compile the servlet program
Seems you have missed the servlet.jar Kenneth Kwan -Original Message- From: simon [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 10:50 AM To: [EMAIL PROTECTED] Subject: don't know how to compile the servlet program Hi I can run jsp file in Tomcat server 3.1 but not servlet. Could you tell me how to compile a servlet file to get its class file? My autoexec.bat is like this: {..} SET TOMCAT_HOME=D:\JSPTOOL\TOMCAT SET JAVA_HOME=D:\JAVATOOL\JDK1.3 SET PATH=D:\JAVATOOL\JDK1.3\BIN;D:\JAVATOOL\JDK1.3\LIB\CLASSES.ZIP; SET CLASSPATH=D:\XML4J-3_1_0\XML4J.JAR;D:\LOTUSXSL_1_0_1\LOTUSXSL.JAR;D:\LOTUSXS L_1_0_1\XALAN.JAR;D:\LOTUSXSL_1_0_1\XERCES.JAR Thanks in advance Simon