RE: Tomcat JK2 Connector/IIS Slowdown
OK, I did not try the test under ssl. I'll let you know what happens. Thanks, Rob -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Sunday, December 12, 2004 10:29 PM To: 'Tomcat Users List' Subject: SV: Tomcat JK2 Connector/IIS Slowdown Try some buffertstream. On these browser that have this fault can be very quick when it comes to HTTPS (https have a different packagestructure). /Peter -Ursprungligt meddelande- Från: Robert Walther [mailto:[EMAIL PROTECTED] Skickat: den 13 december 2004 11:25 Till: [EMAIL PROTECTED] Ämne: FW: Tomcat JK2 Connector/IIS Slowdown For those of you who saw my original posting of this issue, you may remember that my IIS6/Tomcat 5.028 server was very slow at downloading files from an online cart to a Windows 2000, IE6 browser. But the same IIS6/Tomcat server would download files very quickly to all Netscape / Mozilla and Safari browsers. Also, I should mention, my Linux/Tomcat server did not have any speed issues with downloading files to any of the browsers, including IE6. Well, after collecting and analyzing many network packet captures, it turns out the slowness is due to the fact that Microsoft has interpreted an RFC regarding how to respond to TCP packets, differently than Netscape / Mozilla and Safari. This causes some IE6 browsers to respond very poorly to in some situations, So, ultimately it is a client-side / browser issue. They did give me a suggestion on how to fix it on the client side, but they did not know of anything that could be done to IIS or Tomcat to speed-up the file downloads. Here is their response. start quote CASE_ID_NUM: SRX041018608346 MESSAGE: ** The message for you follows Good Afternoon Rob, Thank you for using Microsoft Support and Microsoft Internet Products. I am confirming the closing of your case concerning the delay we were seeing when downloading a 1MB file to some clients. We confirmed this can be corrected by adding the TcpAckFrequency registry key described in article 328890 New registry entry for controlling the TCP Acknowledgment (ACK) behavior http://support.microsoft.com/?id=328890 http://support.microsoft.com/?id=328890 . We set TcpAckFrequency to a value of 1, rebooted the XP client machine and when we tested again all worked fine. If you have Windows 2000 clients that experience the issue, the parameter is called TCPDelAckTicks and you can set the value to 0. For the 2000 platform, please refer to article 311833 The TcpDelAckTicks Registry Value Has No Effects on Ack Timeouts http://support.microsoft.com/?id=311833 http://support.microsoft.com/?id=311833 . There is also a white paper you may want to review located at http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technolog ies/networking/tcpip03.mspx#XSLTsection129121120120 http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technolo gies/networking/tcpip03.mspx . Lastly, the RFC which discusses the delayed ack can be located at http://www.faqs.org/rfcs/rfc1122.html http://www.faqs.org/rfcs/rfc1122.html specifically, you may want to review section 4.2.3.2. This section states the following which seems to be relevant to what we were experiencing: A TCP SHOULD implement a delayed ACK, but an ACK should not be excessively delayed; in particular, the delay MUST be less than 0.5 seconds, and in a stream of full-sized segments there SHOULD be an ACK for at least every second segment. Notice the keyword should which leaves some room for interpretation. Thanks again for calling Microsoft and have a great week! end quote I do not believe that Netscape and Mozilla respond with a delayed ACK when the stream of data is not padded to a full-sized segment. Also, I think that IIS6 does not pad packets but Apache does. Thus, because IIS6 + Tomcat together send out non-full-sized packets, the IE6 browser will delay the ACK until multiple partial packets are received. This delay causes the slowness. IF Apache + Tomcat packets ARE full sized there is no delayed ACK. It was distressing that Microsoft did not indicate a fix on the server side. I was hoping in light of this information, it could be fixed by padding packets coming out of Tomcat through the jk connector. Well, I will continue to research this and any feedback or additional insight would be appreciated, Also, I may be able to coordinate Microsoft to help us fix this issue if any one wishes to help me investigate the jk / Tomcat Source code. One thing I did not investigate, are other java methods for downloading files. It is possible that other java methods would be faster than the one we used for our online cart. FYI to all, Rob Walther Senior System Architect InterchangeDigital, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
FW: Tomcat JK2 Connector/IIS Slowdown
For those of you who saw my original posting of this issue, you may remember that my IIS6/Tomcat 5.028 server was very slow at downloading files from an online cart to a Windows 2000, IE6 browser. But the same IIS6/Tomcat server would download files very quickly to all Netscape / Mozilla and Safari browsers. Also, I should mention, my Linux/Tomcat server did not have any speed issues with downloading files to any of the browsers, including IE6. Well, after collecting and analyzing many network packet captures, it turns out the slowness is due to the fact that Microsoft has interpreted an RFC regarding how to respond to TCP packets, differently than Netscape / Mozilla and Safari. This causes some IE6 browsers to respond very poorly to in some situations, So, ultimately it is a client-side / browser issue. They did give me a suggestion on how to fix it on the client side, but they did not know of anything that could be done to IIS or Tomcat to speed-up the file downloads. Here is their response. start quote CASE_ID_NUM: SRX041018608346 MESSAGE: ** The message for you follows Good Afternoon Rob, Thank you for using Microsoft Support and Microsoft Internet Products. I am confirming the closing of your case concerning the delay we were seeing when downloading a 1MB file to some clients. We confirmed this can be corrected by adding the TcpAckFrequency registry key described in article 328890 New registry entry for controlling the TCP Acknowledgment (ACK) behavior http://support.microsoft.com/?id=328890 http://support.microsoft.com/?id=328890 . We set TcpAckFrequency to a value of 1, rebooted the XP client machine and when we tested again all worked fine. If you have Windows 2000 clients that experience the issue, the parameter is called TCPDelAckTicks and you can set the value to 0. For the 2000 platform, please refer to article 311833 The TcpDelAckTicks Registry Value Has No Effects on Ack Timeouts http://support.microsoft.com/?id=311833 http://support.microsoft.com/?id=311833 . There is also a white paper you may want to review located at http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technolog ies/networking/tcpip03.mspx#XSLTsection129121120120 http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technolo gies/networking/tcpip03.mspx . Lastly, the RFC which discusses the delayed ack can be located at http://www.faqs.org/rfcs/rfc1122.html http://www.faqs.org/rfcs/rfc1122.html specifically, you may want to review section 4.2.3.2. This section states the following which seems to be relevant to what we were experiencing: A TCP SHOULD implement a delayed ACK, but an ACK should not be excessively delayed; in particular, the delay MUST be less than 0.5 seconds, and in a stream of full-sized segments there SHOULD be an ACK for at least every second segment. Notice the keyword should which leaves some room for interpretation. Thanks again for calling Microsoft and have a great week! end quote I do not believe that Netscape and Mozilla respond with a delayed ACK when the stream of data is not padded to a full-sized segment. Also, I think that IIS6 does not pad packets but Apache does. Thus, because IIS6 + Tomcat together send out non-full-sized packets, the IE6 browser will delay the ACK until multiple partial packets are received. This delay causes the slowness. IF Apache + Tomcat packets ARE full sized there is no delayed ACK. It was distressing that Microsoft did not indicate a fix on the server side. I was hoping in light of this information, it could be fixed by padding packets coming out of Tomcat through the jk connector. Well, I will continue to research this and any feedback or additional insight would be appreciated, Also, I may be able to coordinate Microsoft to help us fix this issue if any one wishes to help me investigate the jk / Tomcat Source code. One thing I did not investigate, are other java methods for downloading files. It is possible that other java methods would be faster than the one we used for our online cart. FYI to all, Rob Walther Senior System Architect InterchangeDigital, Inc.
Does temp clean itself up?
Hey Folks, This may be a stupid question, but is the %CATALINA_HOME%\temp directory, really a temp directory in that it will clean itself out after a certain amount of time. If yes, how often does it perform clean-up and can this be configured. I just want to make sure that when I install Tomcat 5.0.28 on a Windows 2003 server with a small amount of hard drive space, that the %CATALINA_HOME\temp will clean itself up periodically so it won't fill-up my disk space. Thanks, RW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat JK2 Connector/IIS Slowdown
Brett, I have a similar problem. But what is interesting is that it only seem slow when I test using a Windows 2000 pro box using IE 6 against a Windows 2003 Server. Try using an XP pro box to test the same functionality. Also, here are diagrams that explain the situation I am having. I have submitted the issue to Microsoft and have one of their engineers on the case. I will keep everyone posted on what they discover. (please view this email in plain text for diagrams to display correctly below) File Download from ONE is slow, ALL others are FAST Windows 2003 Server:Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | SLOW| | | IIS6|- | IE6 | | JK2 | FROM CART | | |---| |---| Windows 2003 Server:Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | FAST| ANY OTHER | | IIS6|- | BROWSER | | JK2 | FROM CART| | |---| |---| Windows 2003 Server:Windows XP and Mac OSX |---| |---| | Tomcat 5.0.28 | FAST| IE 6 | | IIS6|- | or Safari | | JK2 | FROM CART| | |---| |---| Windows 2003 Server:ALL recent OS's |---| |---| | Tomcat 5.0.28 | FAST| All recent| | (running on |- | browsers | | port 8080 standalone) | FROM CART| | |---| |---| RedHat LinuxALL recent OS's |---| |---| | Tomcat 5.0.28 | FAST| All recent| | Apache 2.0.x|- | browsers | | JK2 | FROM CART| | |---| |---| Downloading a 1.3M file from a website cart to a Windows 2000 Pro desktop running latest IE 6 is slow and takes 15 seconds Downloading the same 1.3M file to a Windows XP box running IE 6, a Windows Pro box running Mozilla, and a Mac OSX running safari takes approx 1 second Spoke with Microsoft, we put a 1M file in a virtual directory on IIS. It downloaded in approx 1 second to Windows Pro / IE6. When I take IIS/mod_jk out of the picture, and go directly to Tomcat on 8080 the download is fast to All OS's and Browsers. Also, Apache has no problem downloading the file fast to All OS / browser combinations, including Windows 2000 / IE6!!! So does anyone know why the download is slow between IIS 6 and Windows 2000 Pro / IE6 and fast to all other clients. Is there something I can do to my IIS server to make the download go faster. Two other facts that are important... 1. the file being downloaded from the cart is on a remote file server and is being published through IIS via a UNC path from a shared folder. This is true for all scenarios shown above. And, 2. We are required to run IIS 6 in IIS 5 isolation mode due to the isapi_redirector2.dll can not handle IIS 6 native mode under large loads. I did try to do the download running IIS 6 in native mode, but the download was still slow. Seems to be a weird buffer restriction when IIS 6 and IE6 on Windows 2000 talk to each other. Confounded. Any suggestions -Original Message- From: Brett Parsons [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 1:45 PM To: [EMAIL PROTECTED] Subject: Tomcat JK2 Connector/IIS Slowdown Hi Everyone, I'm having some JSP performance problems using the JK2 Connector between Tomcat 5 and IIS6 in Windows Server 2003. If I hit my site as mySite:8080, everything works fine. However, if i just hit mySite, thus going through the JK2 connector, the performance of the JSP pages greatly decreases (load times are about 4-5 times greater). Even stranger is that this slowdown occurs only on some computers and not others. I have already tried setting the enableLookups=false attribute in the server.xml file, but this does not have any effect. Can someone recommend other steps I can follow to improve the performance of my JSP pages when going through the JK2 connector? Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OFF-TOPIC] Validated Environment (FDA)
We have been using Tomcat 4 and Tomcat 5 for years in our software product that we install into the data centers of major pharmaceutical companies. It has worked with great success! -Original Message- From: Kaiser, Paul [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 8:50 AM To: 'Tomcat Users List' Subject: RE: [OFF-TOPIC] Validated Environment (FDA) I haven't seen the paperwork but my understanding is that our web infrastructure is validated. Environments include Tomcat 4 and 5 among other things. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 10:25 AM To: Tomcat Users List Subject: [OFF-TOPIC] Validated Environment (FDA) Hi, Is anyone running Tomcat in a validated environment? As in validated for Biotech/pharma, CFR Part 11, GxP operations. If so, I'm interested in hearing from you, please send a note my way. No details needed, just that you've done it. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS slow and fast
File Download from ONE is slow, ALL other configs are FAST Windows 2003 Server:Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | SLOW| | | IIS6|- | IE6 | | JK2 | FROM CART | | |---| |---| Windows 2003 Server:Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | FAST| ANY OTHER | | IIS6|- | BROWSER | | JK2 | FROM CART| | |---| |---| Windows 2003 Server:Windows XP and Mac OSX |---| |---| | Tomcat 5.0.28 | FAST| IE 6 | | IIS6|- | or Safari | | JK2 | FROM CART| | |---| |---| Linux RedHat ES 3.0:ALL Client OS's |---| |---| | Tomcat 5.0.28 | FAST|ANY Browser| | | Apache |- | | | JK | FROM CART| | |---| |---| Downloading a file from our website's cart to a Windows 2000 Pro desktop running latest IE 6 is slow and takes 15 seconds Downloading the same file to a Windows XP box running IE 6, a Windows Pro box running Mozilla, and a Mac OSX running safari takes approx 1 second. Linux / Apache is fast to all clients. Spoke with Microsoft, we put a 1M file in a virtual directory on IIS. It downloaded in approx 1 second to Windows Pro / IE6. So they say not our problem talk to the Tomcat / mod_jk users. But, When I take IIS/mod_jk out of the picture, and go directly to Tomcat on 8080 the download is fast on the Windows Pro / IE6. I still think it's a MS issue anyone know why the download is slow between IIS 6 and Windows 2000 Pro / IE6 and fast to all other clients. Confounded. Any suggestions Thanks!! Rob Walther Senior System Architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS slow and fast
Im using XP Professional. But unfortunatley most of our clients use Windows 2000. The work-around we are suggesting is to have them use Mozilla or Netscape, but most of them use IE and their IT departments wont allow us to modify any buffers or configs on the IE client machines. So, I need to fix this from the server side if possible. It may be the Java File Download class that we are using. I will check with the developers and discover what they use for dispatching / downloading the files. Also, thanks for the DNS suggestion. I had not thought about that. I will run a sniffer and see what's going on with that, although the bytes do start moving almost immediately, just slower to W2kpro/IE6. Thanks, Rob -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 5:26 PM To: Tomcat Users List Subject: Re: IIS slow and fast If this isn't it what version of XP are you testing with? Doug - Original Message - From: Filip Hanik (lists) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 6:17 PM Subject: RE: IIS slow and fast rough guess, but never hurts to check: could it be that IE6 on Win2000 does some funky DNS check that it gets stuck on? I would do a print statement on the server when it receives the request, maybe it receives the request after 14.5 seconds and the actual request only takes 0.5, then it would be DNS or some other routing issue that is going on. Filip -Original Message- From: Robert Walther [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 5:11 PM To: [EMAIL PROTECTED] Subject: IIS slow and fast File Download from ONE is slow, ALL other configs are FAST Windows 2003 Server: Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | SLOW | | | IIS6 |- | IE6 | | JK2 | FROM CART | | |---| |---| Windows 2003 Server: Windows 2000 Professional |---| |---| | Tomcat 5.0.28 | FAST | ANY OTHER | | IIS6 |- | BROWSER | | JK2 | FROM CART | | |---| |---| Windows 2003 Server: Windows XP and Mac OSX |---| |---| | Tomcat 5.0.28 | FAST | IE 6 | | IIS6 |- | or Safari | | JK2 | FROM CART | | |---| |---| Linux RedHat ES 3.0: ALL Client OS's |---| |---| | Tomcat 5.0.28 | FAST |ANY Browser| | | Apache |- | | | JK | FROM CART | | |---| |---| Downloading a file from our website's cart to a Windows 2000 Pro desktop running latest IE 6 is slow and takes 15 seconds Downloading the same file to a Windows XP box running IE 6, a Windows Pro box running Mozilla, and a Mac OSX running safari takes approx 1 second. Linux / Apache is fast to all clients. Spoke with Microsoft, we put a 1M file in a virtual directory on IIS. It downloaded in approx 1 second to Windows Pro / IE6. So they say not our problem talk to the Tomcat / mod_jk users. But, When I take IIS/mod_jk out of the picture, and go directly to Tomcat on 8080 the download is fast on the Windows Pro / IE6. I still think it's a MS issue anyone know why the download is slow between IIS 6 and Windows 2000 Pro / IE6 and fast to all other clients. Confounded. Any suggestions Thanks!! Rob Walther Senior System Architect - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple processor usage
I am not confident that Tomcat 4.0 and J2SDK 1.4 are fully utilizing my dual processor, Linux Server, on which I have 2.4.9-3smp running. Anyone know if Tomcat 4 and J2SDK are multi-processor ready and is there a way to test or prove it? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re(2): Multiple Tomcat 3.2.4 JVMs Document
Dear Dan, A few weeks ago you commented on my Multiple Tomcat JVM's posting. Thank you for you comments. i have had several similar comments to yours about my use of mod_rewrite to redirect URL's to their approporiate JkMounted contexts. If you remember, my httpd.conf had the following VirtualHost 192.168.xxx.xxx:80 DocumentRoot /contexts/site1/webapps/site1contextname/ ServerName site1.domain.com JkMount /* ajp13_site1 JkMount /servlet/* ajp13_site1 JkMount /site1contextname/*.jspajp13_site1 RewriteEngine On RewriteRule ^/$ /site1contextname/index.jsp [NC,R] /VirtualHost The rewrite rules only worked if I put them after the JkMount's. Ultimatley this set-up has worked. When I type in http://site1.domain.com/ I get automatically redirected to the correct /site1contextname/index.jsp I know you were using mod_webapp. I am unfamilier with mod_webapp. Does it work with or instead of mod_jk and how might it be better? Also i am using Tomcat 3.2.4. Does mod_webapp work with this too? Lastly, if you do have a config file for mod_webapp i would greatly appreciate an apportunity to view it. Thanks for you time, Overall I am just trying to find the fastest way to redirect my clients to the correct context without forcing them to type in the context after the URL. Rob -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Multiple Tomcat 3.2.4 Instances
Thank you to those who have commented on the attached document. Before I revise it fully, I have two questions to pose to the group. First, there was real distaste for my use of mod_rewrite in Apache to redirect base URLs to their appropriate VirtualHosts ajp worker. My goal was to redirect a client who simply put in http://www.site1.com/ to http://www.site1.com/site1contextname/index.jsp In Apache I used VirtualHost 192.168.1.100:80 DocumentRoot /contexts/site1/webapps/site1contextname ServerName site1.yourdomain.com ServerAdmin email of server admin JkMount /* ajp13_site1 JkMount /servlet/* ajp13_site1 JkMount /site1contextname/*.jsp ajp13_site1 RewriteEngine On RewriteRule ^/$ /site1contextname/index.jsp [NC,R] /VirtualHost some people recommended I use mod_webapp while other recommended that I use DirctoryIndex, but I am still unclear what is the best and fastest method to do the redirect with mod_jk/Tomcat 3.2.4. (ONE interesting note was that Rewrite would only work if I put it after the JkMount Directives. When i put it before the JkMount's the incoming URL would be sent to the index.html file in /$TOMCAT_HOME/webapps/ROOT. I belive this may have something to do with web.xml but am not sure.) My second question pertains to setting up a separate directory for each Tomcat instance. I copied the entire contents of $TOMCAT_HOME into a separate directory that I set-up for each new site. ex. mkdir /context mkdir /contexts/site1 mkdir /contexts/site2 cp -R /$TOMCAT_HOME /contexts/site1 cp -R /$TOMCAT_HOME /contexts/site2 I am aware that i can put all my site's contexts into the webapps directory of /$TOMCAT_HOME, but I do have the space on my server to keep the sites in their own directories and was worried that a single directory structure would cause problems when I add lots of sites to this server. Any thoughts? As i get more information I hope to modify the attached document and resubmit it. Thanks again for your time and comments. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Multiple Tomcat 3.2.4 JVMs Document
Hello All, I have been looking through the email archives to get instruction on how to set-up multiple instances of Tomcat on a single machine. I found lots of good emails but no single source for what I wanted to accomplish. With the information I gathered, I was able to get a working system, where I can start and stop Tomcat independently of other Tomcat instances. In the process, I also put together a document of the procedure I used. This document follows below. If possible, I would really appreciate any feedback. The system described below works, but I'm still not convinced it is the best configuration. I hope, in any event this document may help others as well. PLEASE NOTE, this document is a draft version and does not offer any gaurantees to anyone if they choose to use it for building their own sites. I hope to include comments into this document as time goes by and keep updating it for everyone. Thanks in advance for any comments and I hope this Open Source Community can benefit from it. Document Follows: Our Environment: HardwareSoftware System: Interserv90 OS: TurboLinux Server 7.0 Processor: PIII 450Mhz Kernel: 2.4.9 Ram:256MWeb Server: Apache 1.3.22-2 SWAP: 520MJavajdk 1.3.1_02 JServer Tomcat 3.2.4 Connector mod_jk.so (ajp12 + ajp13) Prerequisites: · You must have already installed both jdk 1.3.1_02 and tomcat 3.2.4. · JAVA_HOME should be set to the directory in which jdk 1.3.1_02 is installed. In this example the java rpm installed java into /usr/java and then we: ln JAVA_HOME=/java; export JAVA_HOME · TOMCAT_HOME should be set to the directory in which tomcat-3.2.4 is installed. In this example we installed tomcat into /usr/local/src and then: ln TOMCAT_HOME=/tomcat; export TOMCAT_HOME · Set JAVA_HOME and TOMCAT_HOME in /etc/profile, so they reset on each reboot. · Get the appropriate mod_jk from. (either mod_jk-eapi or mod_jk-noeapi) http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/linux/i386/ rename it to mod_jk.so place it in apache libexec In this example we downloaded mod_jk-eapi to /root mkdir /etc/httpd/libexec mv /root/mod_jk-eapi /etc/httpd/libexec/mod_jk.so Note, If you downloaded the wrong mod_jk, apache will tell you upon its next startup. There are only two to choose from, simply go back and get the other one to use. Note: Although, not entirely necessary, this document instructs that a separate directory be set-up for each JVM in order to better separate the functionality of each JVM. For this example, the individual JVM directories have been placed under a new directory called /contexts. Although we will have a separate directory for each JVM under /contexts, we still only have one TOMCAT_HOME. You do not need to set a TOMCAT_HOME for each JVM. Procedure: (Two new and INDEPENDENT JVM example below. Instructions that include site# apply to both sites) 1. Make /contexts and create a new directory for each site within /contexts. mkdir /contexts cd /contexts mkdir site1 mkdir site2 2. Copy the contents of your original Tomcat Installation into each site directory. cp -R /$TOMCAT_HOME /contexts/site1 cp -R /$TOMCAT_HOME /contexts/site2 3. You should now have the following directories files in each site directory: ls -p /contexts/site# bin/doc/lib/logs/ src/ work/ conf/ KEYSLICENSE RELEASE-NOTES webapps/ 4. set-up your ajp workers that will eventually be used by apache to redirect requests to Tomcat. Using a text editor, modify the /$TOMCAT_HOME/conf/workers.properties file. Note: this is the only workers.properties file that you have to modify. Ignore the workers.properties files in the conf directories below /contexts/site#. In this example, we made the following changes to: /$TOMCAT_HOME/conf/workers.properties a. set workers.java_home=/java b. set workers.tomcat_home=/tomcat c. comment out ps=\ and uncomment ps=/ #ps=\ ps=/ d. set-up two new workers for each JVM. There is no harm in leaving the default workers (ajp12 ajp13) in here, but we will not be using them in this example. worker.list=ajp12, ajp13, ajp12_site1, ajp12_site1, ajp13_site2, ajp13_site3 default workers new workers 4.Continued. e. Now, add the following four lines for each new worker (again, just ignore the default workers, they are already
Multiple JVMs (DOCUMENT ATTACHED)
Hello all, I decided to attach the document instead Thanks again for any feedback! MULTIP~1.DOC Description: MS-Word document -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Multiple Tomcat 3.2.4 JVMs Document
Please ignore this email string and see: Multiple JVMs (DOCUMENT ATTACHED) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]