Virtual hosts on Tomcat 3.2
Hi all, new subscriber here. I'm running Tomcat stand-alone. I upgraded to 3.2 last night for the multiple host support. Several questions Can I have separate logfiles for each host? Can separate hosts share a context? (just curious). Can sessions be shared between hosts? Can database connections be pooled across hosts? What problems will I run into if one host's path is a subdirectory of another's? Thanks, and please point me in the right direction if these Q's have been answered already. Chris = --------- Chris Freyer | 4-BR/2-BA Home For Sale in Software Engineer | Jacksonville, FL. Visit [EMAIL PROTECTED] | http://www.freyer.homeip.net __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Using tomcat stand-alone
Has anyone attempted to use Tomcat as a stand-alone server? I have, on a light-duty site where load isn't an issue. The only problem I had was with SYN flooding, caused by broken connections on the client side. Too many broken connections in a row causes port 80 (originally 8080) to go offline. The site is running on a Linux machine, so I enabled SYN protection in my firewall and the problem disappeared. For what its worth...I use include files for the header and footer of my JSP-based site. To test Tomcat's ability to process JSP's, I instantiated a Date object at the beginning of the header and the end of the footer, and output the difference (in ms) at the bottom of the HTML output. Most pages are taking 1 - 20 ms to execute. This means I could easily serve thousands of requests per minute. TTYL-- Chris Freyer Encore Development [EMAIL PROTECTED] (904) 596-8847 "Try not to become a person of success, but rather a person of value." --Albert Einstein, 1921 Nobel Laureate.
RE: Tomcat Sudden Death
Not sure if my previous message made it to the list or no, so I'll repost I experienced a port shutdown on Tomcat 3.2B6 when I held my finger down on the refresh key in IE. Apparently the number of aborted connections was greater than Tomcat could handle. Port 8080 stopped working, but 8007 stayed up. I enabled SYN flooding protection in my Linux firewall and the problem went away. Not sure if this is your problem, but its worth a look. Chris -Original Message- From: Ramesh Kumar . T [mailto:[EMAIL PROTECTED]] Sent: Friday, November 10, 2000 10:03 AM To: [EMAIL PROTECTED] Subject: Tomcat Sudden Death Hi , Tomcat (V3.1) suddenly dies out after 3 days . Tomcat was running in NT4.0 with JRE 1.2.2 There was no trace of why it occured. Does anyone know why it happens ?? Is there any fix for this ?? reply asap Thanks Ramesh
RE: Help! Tomcat 3.2 BETA 6 crashes with only 20 simulated users
I experienced a port shutdown on Tomcat 3.2B6 when I held my finger down on the refresh key in IE. Apparently the number of aborted connections generated by the browser was greater than Tomcat could handle. Port 8080 shutdown, while 8007 stayed up. I enabled SYN flooding protection in my Linux firewall and the problem went away. Not sure if this is your problem or not, but its worth a look. Chris -Original Message- From: jblum [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 12:46 PM To: [EMAIL PROTECTED] Subject: RE: Help! Tomcat 3.2 BETA 6 crashes with only 20 simulated users I have some additional useful info about our problem below. We ran the same test as below except we eliminated Apache and mod_jk totally from the equation by using port 8080 in the URL to connect directly with Tomcat. And after a few hours Tomcat stopped responding with no errors in the logs. The Tomcat processes still stayed around. Any help on this would be very appreciated. Thanks Jim Blum > -Original Message- > From: jblum [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 07, 2000 3:54 PM > To: [EMAIL PROTECTED] > Cc: Jim Blum > Subject: Help! Tomcat 3.2 BETA 6 crashes with only 20 simulated users > > > I am using Tomcat version 3.2 Beta 6 on a Solaris Ultra Enterprise 2 SUN4U > box running SUNOS 5.7 with 1 gigabyte of ram and 2 processors > with plenty of > disk space and 70 megabytes of swap space. > > When we run Seque's silkperformer version 4.02 webtesting on a Windows PC > with 20 simultaneous users (simulated browsers) hitting the same > URL on the > Tomcat server SUN box, (the test waits for a response and then repeats the > URL) Tomcat no longer responds. Nothing else is running on the SUN box > except for apache version 1.3 which is passing the URL to tomcat > via mod_jk. > I am using JSP and 2 custom tags which I wrote myself. > > There are 4 or 5 tomcat processes running after Tomcat stops responding to > the URL with an Apache HTTP/1.1" 500 620 response error. > > The only change I have made is I have added the following line to the > tomcat.sh file: > TOMCAT_OPTS="-Xmx96m" to set the memory size for JVM to use. > > I am running java version "1.2.1" > Solaris VM (build Solaris_JDK_1.2.1_04, native threads, sunwjit). > > There are no apparent errors in the Apache log files except for the > HTTP/1.1" 500 620 errors. > > In looking at the mod_jk log file, I find the following error: > > [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service > [jk_connect.c (108)]: Into jk_open_socket > [jk_connect.c (115)]: jk_open_socket, try to connect socket = 8 > [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 > [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1 > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 > [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done > > I can't tell whether this error is happening because tomcat has > already quit > responding or whether there is some of out of sockets resource problem. > > Any help on this problem would be appreciated, as we obviously can't use > Tomcat until this problem is resolved. > > Thanks > Jim Blum > Talk City Inc. > {ë¿~} >
RE: forward to an absolute URL
The tag is for redirecting a request to another jsp/servlet/html page within the same context. In other words---on the same server. I'm sure somebody will correct me if I'm wrong about the scope of "context". It sounds like you want to make the browser go to another machine, which is a client-side action. For this you just output an HTML page containing meta tags or javascript. Chris -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 11:51 AM To: [EMAIL PROTECTED] Subject: forward to an absolute URL Hi, I understand that I can forward a request to an other page with . My example works with relative URL but how can I forward to a page such as "http://www.netscape.com"? -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
RE: servlets and the refer link
I'm not aware of any call to get the most recent page from a browser's cache. It isn't sent as part of a normal HTTP request. You can get it using javascript though--create an HTML or JSP page that contains a hidden form. Place a JavaSript function in the page that runs in the OnLoad event. Make it detect the browser and use the correct object model to grab the most recent entry in the history list and put it in the form. Then submit the form to your server. Fair warning though--people don't like it when developers mess with their privacy. Be careful. Chris -Original Message-From: Betty Chang [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 08, 2000 11:07 PMTo: [EMAIL PROTECTED]Subject: servlets and the refer link Hi all -- which call do I make to obtain the "refer link" when my servlet is accessed via a doGet()? I want to obtain the last URL that user visited before getting to my servlet. Is that possible? Thanks Betty