Tomcat-Question: Inefficient searching for jsp-files?
Hello, i am using Tomcat 5.5.23. When i request a simple jsp-file my file-monitor shows me, that tomcat is searching from root. This is a problem for website with a lot of traffic. A screenshot is attached to this mail. The Context-Entry looks like Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / Thanks for suggestions, Thomas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat-Question: Inefficient searching for jsp-files?
On 5/21/07, Thomas Hoffmann (Speed4Trade) [EMAIL PROTECTED] wrote: Hello, i am using Tomcat 5.5.23. When i request a simple jsp-file my file-monitor shows me, that tomcat is searching from root. This is a problem for website with a lot of traffic. A screenshot is attached to this mail. All attachments are filtered out automatically. Please post the URL of the screen shot and/or other relevant information such as log file contents etc. The Context-Entry looks like Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / Thanks for suggestions, Thomas -Regards Rashmi - 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: Tomcat-Question: Inefficient searching for jsp-files?
Hi, my contect-configuratation looks like: Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot d:\inetpub\wwwroot\tyres4trade d:\inetpub\wwwroot\tyres4trade\test.jsp d:\inetpub\wwwroot\tyres4trade\localhost\test.jsp (not found) tomcat-root\tomcat 5.5\work\org\apache\jsp\test_jsp.class i ask myself why does tomcat start to search from d:\ instead of docBase? -Ursprüngliche Nachricht- Von: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Mai 2007 19:56 An: Tomcat Users List Betreff: Re: Tomcat-Question: Inefficient searching for jsp-files? On 5/21/07, Thomas Hoffmann (Speed4Trade) [EMAIL PROTECTED] wrote: Hello, i am using Tomcat 5.5.23. When i request a simple jsp-file my file-monitor shows me, that tomcat is searching from root. This is a problem for website with a lot of traffic. A screenshot is attached to this mail. All attachments are filtered out automatically. Please post the URL of the screen shot and/or other relevant information such as log file contents etc. The Context-Entry looks like Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / Thanks for suggestions, Thomas -Regards Rashmi - 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]
RE: Tomcat-Question: Inefficient searching for jsp-files?
your docBase shouldn't include the absolute path should it? Just the relative path? Besides, that looks totally configured for running files on IIS' server, not (thru) Tomcat's servlet engine. -Original Message- From: Thomas Hoffmann (Speed4Trade) [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 1:09 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: AW: Tomcat-Question: Inefficient searching for jsp-files? Hi, my contect-configuratation looks like: Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot d:\inetpub\wwwroot\tyres4trade d:\inetpub\wwwroot\tyres4trade\test.jsp d:\inetpub\wwwroot\tyres4trade\localhost\test.jsp (not found) tomcat-root\tomcat 5.5\work\org\apache\jsp\test_jsp.class i ask myself why does tomcat start to search from d:\ instead of docBase? -Ursprüngliche Nachricht- Von: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Mai 2007 19:56 An: Tomcat Users List Betreff: Re: Tomcat-Question: Inefficient searching for jsp-files? On 5/21/07, Thomas Hoffmann (Speed4Trade) [EMAIL PROTECTED] wrote: Hello, i am using Tomcat 5.5.23. When i request a simple jsp-file my file-monitor shows me, that tomcat is searching from root. This is a problem for website with a lot of traffic. A screenshot is attached to this mail. All attachments are filtered out automatically. Please post the URL of the screen shot and/or other relevant information such as log file contents etc. The Context-Entry looks like Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / Thanks for suggestions, Thomas -Regards Rashmi - 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] - 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: Tomcat-Question: Inefficient searching for jsp-files?
Hi, Tomcat is running with iis, thats right. Tomcat is installed on c:\Programme\ websites are under d:\inetpub thats why i cant use relative paths. -Ursprüngliche Nachricht- Von: Propes, Barry L [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Mai 2007 20:56 An: Tomcat Users List Betreff: RE: Tomcat-Question: Inefficient searching for jsp-files? your docBase shouldn't include the absolute path should it? Just the relative path? Besides, that looks totally configured for running files on IIS' server, not (thru) Tomcat's servlet engine. -Original Message- From: Thomas Hoffmann (Speed4Trade) [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 1:09 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: AW: Tomcat-Question: Inefficient searching for jsp-files? Hi, my contect-configuratation looks like: Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot d:\inetpub\wwwroot\tyres4trade d:\inetpub\wwwroot\tyres4trade\test.jsp d:\inetpub\wwwroot\tyres4trade\localhost\test.jsp (not found) tomcat-root\tomcat 5.5\work\org\apache\jsp\test_jsp.class i ask myself why does tomcat start to search from d:\ instead of docBase? -Ursprüngliche Nachricht- Von: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Mai 2007 19:56 An: Tomcat Users List Betreff: Re: Tomcat-Question: Inefficient searching for jsp-files? On 5/21/07, Thomas Hoffmann (Speed4Trade) [EMAIL PROTECTED] wrote: Hello, i am using Tomcat 5.5.23. When i request a simple jsp-file my file-monitor shows me, that tomcat is searching from root. This is a problem for website with a lot of traffic. A screenshot is attached to this mail. All attachments are filtered out automatically. Please post the URL of the screen shot and/or other relevant information such as log file contents etc. The Context-Entry looks like Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / Thanks for suggestions, Thomas -Regards Rashmi - 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] - 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]
Re: Tomcat-Question: Inefficient searching for jsp-files?
Thomas-- I see this thread from http://forum.java.sun.com/thread.jspa?threadID=571322messageID=2827943 here's what sonny says to do...keep in mind this is a TOMCAT group and not IIS group You could use the free installer, it seems to work for some people. heres the link... http://www.shiftomat.com/opensource/ - OR -- If you choose not to use the installer... Assuming IIS and tomcat is up and running. 1. download the connector: (Zip file) http://apache.roweboat.net/jakarta/tomcat-connectors/jk2/binaries/win32/ 2. Unzip the folder: you will see three folders: bin, conf, and doc 3. Move the two files in the bin directory ( install4iis.js and isapi_redirector2.dll ) TO the bin folder of the tomcat installation. 4. You may need to download this : http://www.microsoft.com/downloads/details.aspx?FamilyID=c717d943-7e4b-4622-86e b-95a22b832caadisplaylang=en from microsoft, or you may not have to. try typing cscript in you command line, and see if it recognizes it. ( if the link doesn't work for some reason: search google for scripten.exe ) 5. you can modify the workers file thats in the conf folder or use the one I have. These uri mapping are telling IIS to send these to tomcat. ( you will have to modify the uri to match your applications, and tomcat installation location). Save it as workers.properties in the conf directory of the tomcat installation. [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=C:\Tomcat\logs\jk2.shm size=1048576 # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 group=lb [uri:/jsp-examples/*] info=JSP examples, map requests for all JSP pages to Tomcat. #context=/jsp-examples [uri:/servlets-examples/*] info=Servlet examples, map requests for all servlets to Tomcat. #context=/servlets-examples [uri:/MySite/*] info=Test Site [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: 6. Open command prompt and go to the bin directory (cd to it) of the tomcat installation (where you put the two files). Your command prompt should look something like.. C:\Tomcat\bin 7. Type cscript install4iis.js This Installs the vitural directory and adds registery enteries. You can look at the vitural directory it added by opening your iis admin tool. 8. Thas all. You will have to restart IIS and tomcat. Sometimes its a good idea to know how things are actually done, because when you need to change something you know exactly where to go and how to do. ;) Thanks Sonny! HTH Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Thomas Hoffmann (Speed4Trade) [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Monday, May 21, 2007 3:07 PM Subject: AW: Tomcat-Question: Inefficient searching for jsp-files? Hi, Tomcat is running with iis, thats right. Tomcat is installed on c:\Programme\ websites are under d:\inetpub thats why i cant use relative paths. -Ursprüngliche Nachricht- Von: Propes, Barry L [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Mai 2007 20:56 An: Tomcat Users List Betreff: RE: Tomcat-Question: Inefficient searching for jsp-files? your docBase shouldn't include the absolute path should it? Just the relative path? Besides, that looks totally configured for running files on IIS' server, not (thru) Tomcat's servlet engine. -Original Message- From: Thomas Hoffmann (Speed4Trade) [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 1:09 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: AW: Tomcat-Question: Inefficient searching for jsp-files? Hi, my contect-configuratation looks like: Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot d:\inetpub\wwwroot\tyres4trade d:\inetpub\wwwroot\tyres4trade\test.jsp d:\inetpub\wwwroot\tyres4trade\localhost\test.jsp (not found) tomcat-root\tomcat 5.5\work\org\apache\jsp
Re: AW: Tomcat-Question: Inefficient searching for jsp-files?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Hoffmann (Speed4Trade) wrote: when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot d:\inetpub\wwwroot\tyres4trade d:\inetpub\wwwroot\tyres4trade\test.jsp d:\inetpub\wwwroot\tyres4trade\localhost\test.jsp (not found) tomcat-root\tomcat 5.5\work\org\apache\jsp\test_jsp.class i ask myself why does tomcat start to search from d:\ instead of docBase? Have you tried observing any other programs when they load files? How about a non-Tomcat Java process that attempts to load a file with a specific path. It's possible that Tomcat is reading the directories to make sure they exist, so it can give you a good error message (if they don't). If you re-request the same file, does it re-check? What if you request a file that /does/ exist, and then re-request it? Does it re-check from the root? This is probably a question for the developer list. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGUhkM9CaO5/Lv0PARAi6vAJ9610+CKsRnVKIkWwxK1+M8NzL76ACffGk3 anQncmWDSPnmK3Ta14v4oHo= =0hEG -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Tomcat-Question: Inefficient searching for jsp-files?
I don't think tomcat(explicitly) is doing this. It could be any of the following: 1) When the file is found a full path check is done to prevent sneaky people from trying ../../ tricks - so I you might see the JVM and how it implments File.getAbsolutePath) on a file 2) It could be IIS doing the checks and not tomcat 3) It could be the IIS jk plugin - but I'm not sure about that possibility. 4) ??? My vote is for #1 -Tim Thomas Hoffmann (Speed4Trade) wrote: Hi, my contect-configuratation looks like: Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot d:\inetpub\wwwroot\tyres4trade d:\inetpub\wwwroot\tyres4trade\test.jsp d:\inetpub\wwwroot\tyres4trade\localhost\test.jsp (not found) tomcat-root\tomcat 5.5\work\org\apache\jsp\test_jsp.class i ask myself why does tomcat start to search from d:\ instead of docBase? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]