Re: access symbolic link
So how do you point to content outside of a war? I have the same problem with 5.0.28 pointing to static content outside of a war. Even a symlink included in the war (and setting "followsymlinks="true" in the context) does not work. Ben Ricker On 8/18/05, Peter Miller <[EMAIL PROTECTED]> wrote: > Hi Sade, > > try > docBase="edoc" > > don't use the '/' in the docBase param > Regards, > Peter > > > Sade schrieb: > > >i am using apache tomcat 5.0.28. > >how to access symbolic link using the apache tomcat 5.0.28 web server? > >I have modified the context in server.xml as follow; still does not work > > > > >workDir="/edoc/work" > > >>verbosity="4" timestamp="true"/> > >>allowLinking="true"/> > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > Mit freundlichen Grüssen, > > Peter Miller > Brockhaus/Commission - EDV > Kreidlerstrasse 9 > 70806 Kornwestheim > Tel.: 07154 / 1327-95 > mobil: 0151 / 11 63 68 25 > www.brocom.de > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 64 Bit Machines and Tomcat
The one caveat I have seen is when you use third-party software that is compiled; chances are it was compiled with 32-bit system libraries and will not take advantage of the 64-bit data structure. If you can, spend the time compiling the third-paty software using 64-bit JDK. Ben Ricker On 8/16/05, Peter Crowther <[EMAIL PROTECTED]> wrote: > > From: J R [mailto:[EMAIL PROTECTED] > > Are there 64 bit counterparts? If not, would the 32 > > bit ones definitely work? > > Assuming you have a Java virtual machine that runs on your system, the > Tomcat Java classes will run unchanged. The 'virtual' in 'virtual > machine' means that compiled Java classes are insulated from the details > of the underlying machine - Tomcat runs unchanged on Windows, MacOS*, > and many flavours of UNIX. > > For further reading, check out 'application virtual machine' at > http://en.wikipedia.org/wiki/Virtual_machine and > http://en.wikipedia.org/wiki/Java_virtual_machine > > - Peter > > * Although Tomcat 5.5 is a bit awkward until Sun release a Java 1.5 > virtual machine for Mac. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat security
Yes. There is the catalina.policy file in the conf/ directory. See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/security-manager-howto.html for details. Ben Ricker On 8/9/05, Cengiz Yazgan <[EMAIL PROTECTED]> wrote: > Hi everybody > > I have a problem about tomcat security > > One of my friend wrote a single code and he can travel every folder on > server > > I wonder is there any config file for jakarta for disabiling access instead > of his folder > > Maybe you know on php there was a security settings on php.ini for > disabliling traveling > > Is there any config file like this? > > > > Best regards > > > > > > Cengiz YAZGAN > Sistem Mühendisi/System Engineer > DorukNet > Tel / Phone : +90 212 326 92 00 > Fax : +90 212 227 28 11 > E-mail : [EMAIL PROTECTED] > http://www.doruk.net.tr <http://www.doruk.net.tr/> > http://www.doruk.net.tr/english.html > > > > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug in "allowlinking" on AIX?
I am definitely having an issue getting "allowlinking=true" to work in a Tomcat 5.0.28, JDK 1.4 on AIX 5.2 install. I have tried multiple scenarios using the following tag: I can bring up the app but a request to "/help", which is a symlink in the war to a directory outside of the tomcat applications directory, throws 404s. I also tried this: I changed to appbase to go to a webapps which is empty so I knew the context was definitely loading the unpacked war which includes the symlink. I still get a 404. The ChangeNotes for the 5.0.28 version states explicitely: --- Symlinking static resources: --- By default, Unix symlinks will not work when used in a web application to link resources located outside the web application root directory. This behavior is optional, and the "allowLinking" flag may be used to disable the check. Does anyone have symlinks working on 5.0.28? -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot get symlinks in war to work in tomcat 5.0.28
I have an app that ahs to refernce http content outiside of the war. Since there are many references to the content using URI "/context_name_for_app/help/foo.html", I cannot map the content to another context. I also did not want to have the 100s of MBs in the war. I am running Tomcat 5.0.28 with JDK 1.4 on AIX 5L. I tried to do symlinks to the content from within the war and then access the help but I get a 404. So I added an explicit context to allow symlinks: I can get to the app but I cannot get the help symlink to come up. I put the symlink called "help" in the top level of the war file. I can cd into the link and it goes to the right directory. All of the files are readable to the world. Am I missing something? -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk or jk2??
You want to use mod_jk. JK2 has been deprecated and is no longer in active development. On 8/3/05, MC Moisei <[EMAIL PROTECTED]> wrote: > I thought the jk2 is newer... but I can be wrong... > > MC > > > >From: Luis Torres <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" > >To: Tomcat Users List > >Subject: mod_jk or jk2?? > >Date: Wed, 03 Aug 2005 13:47:42 -0500 > > > >Hello everyone, > > > >I see lots of posts saying that they are using or implementing jk2? For > >what I understand, that has been replaced by mod_jk... so which one is > >better or what is recommended?? > > > >I also have found better documentation related to jk2 so that adds to the > >puzzle. > > > >Regards, > > > >Luis > > > >- > >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] > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Context.xml does not seem to work
I have some content outside of the main app war file that I want to give user access to. I have the following in a conf/content.xml: I keep getting 404s on a file that I know exists on the filesytem in the path/to/content. I also tried to add this to the server.xml file but see the same behavior. I am using Tomcat 5.0.28 with IBM JDK 1.4.2 on AIX 5L. Any ideas? Something wrong with the syntax? -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting multiple docbases in Tomcat
I am using Tomcat 5.0.28 on AIX. I have a third-party app that has multiple directories strewn about the filesystem containing html and jsps that I want to load as part of the main app I load from webapps. I looked into adding context tags tp the server.xml but there are some reasons not to do this (classloaders getting created for each context tag being one of them). Is there an easy way to setup locations like in Apache in Tomcat? These are not wars but static content to display help and guides, etc. Thanks, Ben Ricker -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linking Tomcat to Apache
Check out http://jakarta.apache.org/tomcat/connectors-doc/ for infromation on how to configure mod_jk to server up specific sorts of URLs. Ben Ricker On 7/13/05, Ben Stuart <[EMAIL PROTECTED]> wrote: > I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9 > > I followed the instructions and I thought I had it all right! > > But I edited my httpd.cong file to support virtual hosts and pointed the > document root to the jsp and the servlet examples and apache serves those > pages to the web but the examples come through as html so its not using > tomcat > > Can anyone help? > > I will send you my files if that will help? > > -Ben > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Configure IIS/Tomcat to perform basic authentication
To answer your question, it would help to at least include the relevant OS and tomcat version information. In Tomcat, you can set a resource valvel that does the auth for you. Docs for 4.1: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html. Docs for 5.0: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html. You may be most interested in the Memory Realm if you want simple, file-based auth. Ben Ricker On 7/13/05, Ikonne, Ike <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have been trying to configure IIS/Tomcat to perform basic > authentication > and have not had any success yet, I would appreciate it if someone could > > give me some pointers on how to make this to work. > > Thanks, > > Ike > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
1.2.10 JK compile issue on AIX 5L
After 800 tries at getting APache compiled with the AIX C compiler xlc_r, I now need to compile mod_k. I downloaded the sources for connector 1.2.10. I am trying to compile it on AIX 5L with uname -a "AIX hostname 2 5 00C04A2E4C00". I am using AIX's cc_r compiler per instructions from http://people.apache.org/~trawick/tomcataix.html#mod_jk_gcc. I think the compile is in some sort of loop. Here is the output from truss that repeats over and over: statx("/usr/bin/ln", 0x2FF211B8, 76, 0) = 0 link("/tmp/sh3686418.1", "/tmp/sh3686418.3671") = 0 kfork() = 3850378 _sigaction(20, 0x, 0x2FF21210) = 0 _sigaction(20, 0x2FF21210, 0x2FF21220) = 0 kwaitpid(0x2FF21280, -1, 6, 0x, 0x) = 3850378 _sigaction(20, 0x, 0x2FF21210) = 0 _sigaction(20, 0x2FF21210, 0x2FF21220) = 0 statx("/usr/bin/sleep", 0x2FF20F18, 76, 0) = 0 It creates a link in /tmp, does that kfork stuff, and then sleeps until the next symlink. The numbers on the tmp file keep going up (i.e., the "3671" in the "/tmp/sh3686418.foo"). Here is the make it is hanging on: /bin/sh /sys_apps_01/apache/server20Cent/versions/server2.0.47/build/libtool --silent --mode=compile cc_r -I/sys_apps_01/apache/server20Cent/versions/server2.0.47/include -g -g -qHALT=E -DHAVE_APR -I/apps_01/webapps/apache_compile/httpd-2.0.47/srclib/apr/include -g -U__STR__ -D_THREAD_SAFE -D_USE_IRS -I /include -I /include/ -c jk_ajp12_worker.c My config was: "CC=cc_r" ./configure --with-apxs=/path/to/apache/bin/apxs" I also tried to use Gcc and it hung just the same as cc_r did. -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue compiling mod_jk 1.2.10 on AIX
After 800 tries at getting APache compiled with the AIX C compiler xlc_r, I now need to compile mod_k. I downloaded the sources for connector 1.2.10. I am trying to compile it on AIX 5L with uname -a "AIX hostname 2 5 00C04A2E4C00". I am using AIX's cc_r compiler per instructions from http://people.apache.org/~trawick/tomcataix.html#mod_jk_gcc. I think the compile is in some sort of loop. Here is the output from truss that repeats over and over: statx("/usr/bin/ln", 0x2FF211B8, 76, 0) = 0 link("/tmp/sh3686418.1", "/tmp/sh3686418.3671") = 0 kfork() = 3850378 _sigaction(20, 0x, 0x2FF21210) = 0 _sigaction(20, 0x2FF21210, 0x2FF21220) = 0 kwaitpid(0x2FF21280, -1, 6, 0x, 0x) = 3850378 _sigaction(20, 0x, 0x2FF21210) = 0 _sigaction(20, 0x2FF21210, 0x2FF21220) = 0 statx("/usr/bin/sleep", 0x2FF20F18, 76, 0) = 0 It creates a link in /tmp, does that kfork stuff, and then sleeps until the next symlink. The numbers on the tmp file keep going up (i.e., the "3671" in the "/tmp/sh3686418.foo"). Here is the make it is hanging on: /bin/sh /sys_apps_01/apache/server20Cent/versions/server2.0.47/build/libtool --silent --mode=compile cc_r -I/sys_apps_01/apache/server20Cent/versions/server2.0.47/include -g -g -qHALT=E -DHAVE_APR -I/apps_01/webapps/apache_compile/httpd-2.0.47/srclib/apr/include -g -U__STR__ -D_THREAD_SAFE -D_USE_IRS -I /include -I /include/ -c jk_ajp12_worker.c My config was: "CC=cc_r" ./configure --with-apxs=/path/to/apache/bin/apxs" I also tried to use Gcc and it hung just the same as cc_r did. Any ideas, Ben RIcker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preferred Platform for Tomcat5
Well, I cannot say anything about AIX. I have the suspicion that the issue is with the IBM JDK that is causing me headaches. Write once, run anywhere my arse! How did you know it was a Vice President who came up with the idea for the migration!? :) On Thu, 3 Feb 2005 16:08:56 -0800 (PST), John Najarian <[EMAIL PROTECTED]> wrote: > LOL! > > Ben, that was to funny. I was just talking with a useless VP at Fidelity > over the weekend and he was saying how stable & great AIX was. I laugh my > butt off thinking some neanderthal of technology can comment on things they > know nothing about like that. He hasn't done anything technical in years and > I don't know if he used Unix of any flavor. > > -Original Message- > From: Ben Ricker <[EMAIL PROTECTED]> > Sent: Feb 3, 2005 1:22 PM > To: Tomcat Users List , > Tomcat Users List , > Tomcat Users List > Subject: Re: Preferred Platform for Tomcat5 > > I have one word of advice: DON'T USE AIX! I am in the middle of a > (forced) migration from Solaris to AIX and it sucks ball peen hammers. > > The Solaris installs were running like a top for over a year. In > another incarnation, I have Tomcat running for 4 years with nary an > issue (just some issues with OOM errors when the DB started hanging on > bad SQL). > > Ben Ricker > > On Thu, 03 Feb 2005 13:44:20 -0600, Paul <[EMAIL PROTECTED]> wrote: > > I've usually used different distros of Linux. Mainly Slackware (8.x, > > 9.x & 10.x) for 32bit x86 machines and Fedora Core 3 x86_64 on the > > Opteron systems. I do stripped down installs, no X, no sound, etc.., > > basically installing only what the server needs. > > > > So far so good. The Slackware boxes have been running flawless for a > > few years and have been updated from Tomcat 3.x up to 4.x numerous times > > without problems. Actually for production I only have Tomcat 5 on the > > new FC3 machines, but I do have it on a Slackware development box and > > haven't had an issue. > > > > All boxes are blazingly fast, but our bottleneck is usually mysql, not > > tomcat. > > > > Slackware boxes > > P4 3.06G w/ HT & 1-2GB ram > > 2.4.2x kernels > > s/w raid 0, mysql 4.0.x, jdk1.4.2, tomcat 4.1.x > > 2-4 7.2K RPM PATA drives > > > > FC3 boxes > > Tyan S2882 boards w/ two 242 Opterons & 4-6GB RAM > > 3ware 9500S RAID controller (using raid5) > > 6+ 10K RPM SATA drives > > mysql 4.1.x & jdk1.5.x & tomcat 5.0.x > > > > Regards, > > > > -Paul > > > > > > Todd Reed wrote: > > > > >Excluding Windows, is there a particular platform that works better with > > >Tomcat5? What are members of this list using for a production > > >installation of Tomcat? > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > Ben Ricker > He's just this guy, you know? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preferred Platform for Tomcat5
I have one word of advice: DON'T USE AIX! I am in the middle of a (forced) migration from Solaris to AIX and it sucks ball peen hammers. The Solaris installs were running like a top for over a year. In another incarnation, I have Tomcat running for 4 years with nary an issue (just some issues with OOM errors when the DB started hanging on bad SQL). Ben Ricker On Thu, 03 Feb 2005 13:44:20 -0600, Paul <[EMAIL PROTECTED]> wrote: > I've usually used different distros of Linux. Mainly Slackware (8.x, > 9.x & 10.x) for 32bit x86 machines and Fedora Core 3 x86_64 on the > Opteron systems. I do stripped down installs, no X, no sound, etc.., > basically installing only what the server needs. > > So far so good. The Slackware boxes have been running flawless for a > few years and have been updated from Tomcat 3.x up to 4.x numerous times > without problems. Actually for production I only have Tomcat 5 on the > new FC3 machines, but I do have it on a Slackware development box and > haven't had an issue. > > All boxes are blazingly fast, but our bottleneck is usually mysql, not > tomcat. > > Slackware boxes > P4 3.06G w/ HT & 1-2GB ram > 2.4.2x kernels > s/w raid 0, mysql 4.0.x, jdk1.4.2, tomcat 4.1.x > 2-4 7.2K RPM PATA drives > > FC3 boxes > Tyan S2882 boards w/ two 242 Opterons & 4-6GB RAM > 3ware 9500S RAID controller (using raid5) > 6+ 10K RPM SATA drives > mysql 4.1.x & jdk1.5.x & tomcat 5.0.x > > Regards, > > -Paul > > > Todd Reed wrote: > > >Excluding Windows, is there a particular platform that works better with > >Tomcat5? What are members of this list using for a production > >installation of Tomcat? > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jdeveloper 3.2.3 -> Tomcat 5.5 migration: Inordinate delay in JSPs returning XML
Rule number one when working with Internet Exploder: try other browsers. I usually try Netscape, Mozilla and Firefox. If they work on those browsers, you are dealing with (imagine this): an IE bug. Thing is a piece of.if I have to deal with one more IE specific bug. Ben Ricker On Jan 13, 2005, at 10:49 PM, Rajeev Singh wrote: Updates - setting Internet Explorer to use HTTP 1.0 makes the problem go away. I still do not understand why this should happen and what can I do to have the 1.1 mass of clients work with this correctly. Any insights would be much appreciated. FYI - the header seen by the JSP page is: //inase of 1.1 Here are the header Header:accept*/*,Header: ---,Header:user-agentMozill a/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705),Header:host127.0.0.1:8080,Header:connectionKeep- Alive,Header:cooki eWTGBID=e1ujo01n //incase of 1.0 Header:accept*/*,Header:accept-languageen-us,Header:user- agentMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705),Header:hostlocalhost: 8080,Header:,Header:cooki eWTGBID=e2jl7opw; _tpc=_t%3D1105675240385%26_l%3D0 Rajeev Singh Intelliplanner Software Systems, Inc. 203-483-4279(O) 203-558-3224(C) www.intelliplanner.com , www.ipssi.com This mail contains proprietary and confidential materials. Please destroy if received in error and notify the sender -Original Message- From: Rajeev Singh [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 10:04 PM To: tomcat-user@jakarta.apache.org Subject: Jdeveloper 3.2.3 -> Tomcat 5.5 migration: Inordinate delay in JSPs returning XML I am going nuts trying to figure out why: An application created using Jdeveloper 3.2.3 (on Windows 2000). Some pages send XML as response. When using Jdev, JSP/Web-to-go server everything is fine. Now trying to migrate to TomCat 5.5. For pages that return XML, I am noticing a rather 'hang' like behaviour. As if client is waiting for something: Moreover when using telnet no such problem exists - the response comes boom. (Not sure how to look at header - I do not see any headers in the response in telnet) I put a time stamp at beginning and end of my processing. Elapsed time is 20ms. Page size < 500 b. All done locally. Browser (Internet Explorer) takes about 9s to display the XML. Page is buffered (32K, though doesn't help, autoflush on). I even tried with response.SetHeader (Connection, close) no luck. Similarly my (C++) client makes a bunch of call to such JSP pages returning XML. Each time the processing supposed to happen, happens in 20-100ms. But the client seems to be 'waiting': gaps between timestamp for next request spans more than 10-30s. The client uses Microsoft's IXMLHttpRequest (MSXML v3). Any ideas what could be happening? Also any reason for cookies not be written by Tomcat (the Jdev does write that) mucho gracias - 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]
Re: Shutdown port
For an extra bit of security,replace "SHUTDOWN" with some sort of long, random string and then lock down the server.xml to 640. Someone who gains, or already has access to the box can shut it down the other way. Ben Ricker On Jan 12, 2005, at 6:55 AM, Frank Parato wrote: Is there a way to remove the shutdown port on a server ? I tried pulling the "port=8005" option out, but it still listens on that port and I'm able to shut it down. - 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]
Re: Can't compile mod_jk 1.2.8
Basically, the idea is that if you want to serve static content along with dynamic (i.e., Tomcat webapp generated) content, you can server the dynamic through mod_jk/Tomcat and server the static from Apache. Apache tends to be more efficient and finely tunable from the straight http side. Additionally, if you want to cluster Tomcat's, the JK module is essential. So, if you only serve dynamic content and do not need clustering, let Tomcat servr the http connections. If you need to have Tomcat on another server (due to DMZ security, etc), use mod_proxy to pass all requests from Apache to the http connector of Tomcat. Finally, if you have static content and/or need clustering, go with mod_jk. Ben Ricker On Jan 10, 2005, at 5:54 PM, Troy Simpson wrote: Parsons... How would mod_proxy() work? How is it used? I have not used it. Thanks, Troy -- Troy Simpson Applications Analyst/Programmer, OCPDBA, MCSE, SCSA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 - 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]
Re: Where do I specify location of stdout and stderr?
We do this by finding the log entry in catalina.sh. It should be something like catalina.out. Change that to whatever you like. I moved it myself to fit how our other app servers work. Ben Ricker On Dec 29, 2004, at 12:39 AM, Stephen Charles Huey wrote: Ok, I just figured out that for the Windows box, we specified the location of the files that the stdout and stderr get routed into in the service install script. However, we're not using any service install script on Linux (should we be doing that?), so where can I specify that all the stdout and stderr should go into some particular log files instead of getting lost into thin air? We need those log files, particularly when we're troubleshooting! Thanks... - Original message - From: "Stephen Charles Huey" <[EMAIL PROTECTED]> To: "Tomcat User" Date: Tue, 28 Dec 2004 15:40:09 -0600 Subject: Where do I specify location of stdout and stderr? I'm trying to move my Tomcat directory from a Windows machine to a Linux box, and I've already modified the server.xml to take care of path differences, but I've noticed that stdout.log and stderr.log are no longer being generated in the logs directory (I can't find them!). Does anyone have any idea where this would normally be? I've also tried to WinGrep for them in my app code, but so far nothing... I see this in my server.xml, but this doesn't seem to be related to the stderr and stdout log files: Those log files mentioned above are being generated, but it doesn't really make sense that I would need to add a node here for the stdout and stderr ones if they're already being generated on the Windows box without being mentioned in server.xml... Thanks for any help... - 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]
Re: Apache + Tomcat + MOD_JK
On Wed, 2003-12-24 at 10:05, Hari Om wrote: > Hello, > > I am using Apache 2.0.47 and Tomcat 4.1.27 on SuSE 8.0 box on same machine. > I am trying to make use of MOD_JK.SO (jk connector)which I build it from > source. > I have 2 different Users to the system "httpd" and "jakarta" with respective > directories as /usr/local/httpd and /usr/local/jakarta > > /usr/local/httpd has httpd:httpd as owner and group > /usr/local/jakarta has jakarta:jakarta as owner and group > > I have following files: > FILENAME OWNERGROUP DIRECTORY > - > workers.properties jakarta jakarta/usr/local/jakarta/conf/jk/ This needs to be accessible by http. i have mine in the $APACHE_HOME/conf directory. > server.xml jakarta jakarta/usr/local/jakarta/conf/ > mod_jk.so httpd httpd /usr/local/httpd/modules/ This is Ok. > mod_jk.log jakarta jakarta/usr/local/jakarta/logs Needs to be in the $APACHE_HOME/logs directory, or a place that the httpd user can write to. Ben Ricker Wellinx, inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitoring Apache Traffic
Look at the browsers "Lock" icon. Sniffing the traffic seems like overkill to me. Ben Ricker Wellinx, Inc. On Thu, 2003-12-04 at 11:30, Asif Chowdhary wrote: > Hi, > > Is there any way to determine if the contents sent from the client to the server is > encrypted or not? I am not using a browser as a client. I am using a windows > application. > If I can see the contents then I will know if SSL is working. > Any tools that will sniff the line to display the contents. > > Thanks > Asif > > > > > - > 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]
RE: Best JVM for Tomcat
I was running Sun 1.4.3 on Linux Redhat 7.3 with the -server line and we had mucho stability problems. Removed the -server and the problems disappeared. May depend on the particular app running (the developers thought it was related to the swing code. Ben Ricker On Wed, 2003-12-03 at 12:40, Oscar Carrillo wrote: > Ok, I just checked and I have been using "-server" with no problems. So > that makes RH7.3 and RH9. > > Oscar > > On Wed, 3 Dec 2003, > Ryan Lissack wrote: > > > Hi, > > > > We use the -server option on all our live Linux machines and have not had > > any problems at all. > > > > JRE 1.4.1_03 on RedHat 9. > > > > Ryan. > > > > -Original Message- > > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > Sent: 03 December 2003 17:46 > > To: Tomcat Users List > > Subject: RE: Best JVM for Tomcat > > > > > > > > Howdy, > > I don't use -server on linux now, haven't tried it as I had problems > > with it on the Solaris platform. Perhaps someone else could shed more > > light... > > > > Yoav Shapira > > Millennium ChemInformatics > > > > > > >-Original Message- > > >From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > > >Sent: Wednesday, December 03, 2003 11:33 AM > > >To: Tomcat Users List > > >Subject: RE: Best JVM for Tomcat > > > > > >Does "-server" work now? What version of Linux distro did "-server" > > cause > > >problems, if any? > > > > > >Thanks, > > >Oscar > > > > > >On Wed, 3 Dec 2003, Shapira, Yoav wrote: > > > > > >> > > >> Howdy, > > >> I use Sun's latest on various platforms (Solaris 8, 9, SuSe, Intel) > > >> without a problem for both tomcat 4 and 5. The only caveat is the > > >> -server mode, which used to reduce stability. > > >> > > >> I knew there would be a jRockit response from Senor Cekvenich even > > >> before expanding this thread ;) > > >> > > >> Yoav Shapira > > >> Millennium ChemInformatics > > >> > > >> > > >> >-Original Message- > > >> >From: David Rees [mailto:[EMAIL PROTECTED] > > >> >Sent: Wednesday, December 03, 2003 7:09 AM > > >> >To: Tomcat Users List > > >> >Subject: Re: Best JVM for Tomcat > > >> > > > >> >On Wed, Dec 03, 2003 at 08:43:34AM -0300, Walter do Valle wrote: > > >> >> > > >> >> What is the best version of J2SDK to run Tomcat 4.1.29 over Linux? > > >> > > > >> >On Linux, I've been using the latest from Sun, 1.4.2_02 without any > > >> >issues. There may be others which are faster, but performance > > hasn't > > >> >been an issue for me. > > >> > > > >> >-Dave > > >> > > > >> > > >- > > >> >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> >For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > >> > > >> > > >> 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] > > >> > > > > > > > > >- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > 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] > > > > - > > 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]
Re: [OT] java 1.3 and Fedora
We had the same problem while installing Oracle on a Redhat 9 box. They had us add the LD_ASSUME_KERNEL to 2.4. HTH, Ben Ricker Wellinx, Inc. On Mon, 2003-11-17 at 15:54, Christopher Schultz wrote: > Mark, > > I am working on an old project using Sun JDK 1.3. I get an error > > message while using ant. The error is listed below: > > > > Error occurred during initialization of VM > > Unable to load native library: > > /usr/local/jdk1.3.1_08/jre/lib/i386/libjava.so: symbol __libc_wait, > > version GLIBC_2.0 not defined in file libc.so.6 with link time reference > > > > I have set the environment variable LD_ASSUME_KERNEL to 2.2.5. I even > > tried 2.4.1, as mentioned in an article I found online. Does anyone > > know how to get around this issue? > > Since Fedora is pretty new (like a week old), you might want to avoid it > for a while. It's possible that its glibc version is not complete or > something like that. > > Stick to RedHat standard or Debian or whatever your favorite distro is > for the time being. :) > > -chris > > > - > 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]
RE: Tomcat Settings and Performance
On Mon, 2003-11-17 at 06:21, Jonathan Holloway wrote: > I could cluster multiple copies of Tomcat on seperate machines with a simple load > balancer on the front end? I'd ratehr not go that route yet though and see if I can > get it so that single machine can handle up to 250 - 300 simultaneous requests. > > Is there any point in clustering instances of Tomcat on the same machine? For NIC failover, I setup two Tomcats on each server bound to each NIC. So, if one NIC goes, I only lose one instance and that box can still serve some connections (and not be totally out of the running). You might also want to run multiple, different contexts to keep apps clustered in separate Tomcats for reasons of wanting a certain App to always run while not being as worried about another App running (say a QA context?). Ben Ricker Wellinx, inc. > Many thanks, > Jon. > > > > > -- > > - Original Message - > > DATE: Fri, 14 Nov 2003 06:13:27 > From: Peter Lin <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Cc: > > >Jon, > > > >what are the specs of the machine? > > > >you mentioned 1GB of ram, but what is the OS? > > > >peter > > > > > > > > > >- > >Do you Yahoo!? > >Protect your identity with Yahoo! Mail AddressGuard > > > > Need a new email address that people can remember > Check out the new EudoraMail at > http://www.eudoramail.com > > - > 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]
RE: Java Upgrade Messed Up Tomcat
On Wed, 2003-10-29 at 11:53, Jeremy Whitlock wrote: > Here is the output to stderr.log: > > log4j:ERROR setFile(null,true) call failed. > java.io.FileNotFoundException: logs\openejb.log (The system cannot find > the path specified) U, this is pretty self-explanatory. Looks like you have a malformed path spec in a properties file. Note that there is no '\' in front of 'logs\openejb.log'. Ben Ricker Wellinx, inc. > at java.io.FileOutputStream.openAppend(Native Method) > at > java.io.FileOutputStream.(FileOutputStream.java:174) > at > java.io.FileOutputStream.(FileOutputStream.java:102) > at > org.apache.log4j.FileAppender.setFile(FileAppender.java:272) > at > org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:15 > 6) > at > org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151) > at > org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:248) > at > org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java > :124) > at > org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java > :88) > at > org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator > .java:640) > at > org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator > .java:598) > at > org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConf > igurator.java:523) > at > org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.j > ava:407) > at > org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.j > ava:431) > at > org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConver > ter.java:456) > at > org.apache.log4j.LogManager.(LogManager.java:145) > at > org.apache.log4j.Category.getInstance(Category.java:517) > at org.openejb.util.Logger.getInstance(Logger.java:109) > at org.openejb.OpenEJB.init(OpenEJB.java:150) > at org.openejb.OpenEJB.init(OpenEJB.java:130) > at > org.openejb.loader.EmbeddedLoader.load(EmbeddedLoader.java:71) > at > org.openejb.loader.EmbeddingLoader.load(EmbeddingLoader.java:84) > at > org.openejb.client.LocalInitialContextFactory.getInitialContext(LocalIni > tialContextFactory.java:65) > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) > at > javax.naming.InitialContext.init(InitialContext.java:219) > at > javax.naming.InitialContext.(InitialContext.java:195) > at > org.openejb.loader.LoaderServlet.init(LoaderServlet.java:82) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav > a:918) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j > ava:3279) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:3421 > ) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478) > at > org.apache.catalina.core.StandardHost.install(StandardHost.java:738) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300) > at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23 > 2) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu > pport.java:155) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:638) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) > at > org.apache.catalina.core.StandardService.start(StandardService.java:388) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:506) > at > org.apa
Re: Where does system.out go?
I usually get system.out and/or system.err in the catalina.log file. Ben Ricker Wellinx.com On Wed, 2003-10-08 at 15:36, Adam Hardy wrote: > Dude, you just hijacked my thread! Bad netiquette. Anyway, your > System.out.println statements will go to the console, i.e. the command > line window where you are running tomcat. If you have no command line > window, they will probably get caught in a system.out or system.err file > although I'm not sure where. > > HTH > Adam > > On 10/08/2003 10:13 PM Michael Remijan wrote: > > Hello, > > > > In a JSP page i'm doing some testing. I have System.out.println() > > statements in there temporarily. Anyone know where they go? I checked > > the Context's logger that they are not there. > > > > Mike > > > > > > - > > 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]
RE: mod_jk and Tomcat Lose Touch
On Tue, 2003-08-26 at 15:33, Fred Whipple wrote: > > In the settings you put in httpd.conf, you should have added a > > 'LogLevel' directive. If you did not, then you can! The line > > I have is: > > > > JkLogLevel error > > > > Change the 'error' to debug and restart Apache. > > This worked well, and yielded some errors: > > ** > [Tue Aug 26 16:25:19 2003] [jk_connect.c (203)]: jk_open_socket, connect() > failed errno = 111 > [Tue Aug 26 16:25:19 2003] [jk_ajp_common.c (626)]: Error connecting to > tomcat. Tomcat is probably not started or is listenning on the wrong port. > Failed errno = 111 Looks like there is a mismatch between the workers.properties and the server.xml (Tomcat's config file). The server.xml sets up Tomcat. More importantly, it sets up a Connector which opens a socket connection on a defined port (Look for the Connector' section in the Service section of the server.xml). This port is what mod_jk needs to know about in the workers.properties. Some snippets from my config: -Server.xml snippet- -End Server.xml snippet- -mod_jk's workers.properties file snippet- # # First tomcat server # worker.tomcat1.port=11009 worker.tomcat1.host=10.1.1.1 worker.tomcat1.type=ajp13 -End mod_jk's workers.properties file snippet- Check out both of these files and make sure the config is setup cporrectly. It looks like either the Connector is not configured or the workers.properties does not have the right info for the workers spawned by Apache. > All of these errors appeared at the same time I was trying to view a JSP on > a site that had "lost touch." I was doing a tail -f and the log file had > been quiet until I tried to view this JSP -- then all these popped-up at > about the same time. > > Immidiately I opened a telnet session to this particular Tomcat instance's > AJP 1.3 port, and verified it was responding. Also, *all* of the Tomcat > instances are on the same host as the Web server, so all the workers are > traveling over 127.0.0.1. Do you use multiple Apaches on the server? Since I would be speculating wildly, why not post the workers.properties file as well as the Connector tags in the server.xml on the Tomcats. Ben Ricker Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk load balancing with multiple apache servers
I have the exact same configuration but I do not do session replication because of the fact that our app was not written correctly (something about serializing variables and ours are not serialized; it will take a code audit and rewrite to accomplish it). Anyway, here is what you can do: http://www.theserverside.com/resources/article.jsp?l=Tomcat Tomcat 5, now in development, will have session replication across Tomcats (i.e., clustering) built-in. I will say that Mr. Moliere makes a good point: sending session data across the network unencrypted is a rather large security hole. But then again, the communication between mod_jk and Tomcat is by default unencrypted. Ben Ricker Wellinx, inc. On Tue, 2003-08-26 at 09:39, Peter Anning wrote: > Hi, > > I am trying to implement the following configuration: > > > +++ > Cisco Load Balancer > +++ > | > | (http) > | > +++ >Apache AApache B Apache Cluster Layer > mod_jk mod_jk > +++ > | > | (ajp13) > | > +++ > TomcatI.myhost.com TomcatII.myhost.comJBoss Cluster Layer > +++ > > > I can configure mod_jk in each of the Apache instances to > know about the two tomcat instances. So loadbalancing and > failover would work with one instance of apache. > > Is there any way to have the Apache ``cluster'' layer > know about other ``members'' in the layer and the > current servlet connection status? > > Rgds > Peter > > - > 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]
RE: mod_jk and Tomcat Lose Touch
On Mon, 2003-08-25 at 13:08, Fred Whipple wrote: > Ah, the symptoms, of course ;-) > > There actually aren't any errors AFAIK. Perhaps there's a more verbose > logging level? I couldn't find any obvious info on this in the manual. In the settings you put in httpd.conf, you should have added a 'LogLevel' directive. If you did not, then you can! The line I have is: JkLogLevel error Change the 'error' to debug and restart Apache. Ben Ricker Wellinx, Inc. > What actually happens is if I make a request to a JSP, for example, that > should normally be forwarded onto Tomcat, the request simply hangs forever. > Apache logs the request nothing in the Tomcat logs suggest to me it's > receiving the request. > > Thanks, > > -Fred > > > -Original Message- > > From: Ben Ricker [mailto:[EMAIL PROTECTED] > > Sent: Monday, August 25, 2003 1:09 PM > > To: [EMAIL PROTECTED] > > Subject: Re: mod_jk and Tomcat Lose Touch > > > > > > What kind of error are you getting that makes you thing they > > are "losing > > touch". Check the mod_jk log and see what kind of errors it > > is throwing > > and post an example. > > > > Ben Ricker > > Wellinx, Inc. > > > - > 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]
Re: mod_jk and Tomcat Lose Touch
What kind of error are you getting that makes you thing they are "losing touch". Check the mod_jk log and see what kind of errors it is throwing and post an example. Ben Ricker Wellinx, Inc. On Mon, 2003-08-25 at 10:54, Fred Whipple wrote: > Hi all, > > On one of our servers, we were running Red Hat Linux 7.3 with Apache > 1.3.X, mod_jk, Sun JDK 1.4.1, and many (~150) instances Tomcat of > various flavors. Everything worked perfectly until we upgraded to Red > Hat 9. Now, it seems like mod_jk and Tomcat are losing touch until the > Tomcat JVM is restarted. This happens after maybe a day or so using > both Apache 1.3.X and Apache 2.0.X. > > >From what we've observed, it seems to a problem specific to mod_jk. > This is because running Apache 1.3.X or 2.0.X under Red Hat 9 with the > old-skool mod_jserv and ~100 Tomcat instances does not cause a problem > at all. Also, running either Apache 2 or 1.3 on RH 9 with just a couple > JVM's does not cause a problem either. > > I've already tried re-compiling mod_jk on RH9, the same server that's > having the trouble to account for any library change issues. No dice > I'm afraid. > > Any ideas? > > Thanks! > > -Fred > > > - > 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]
Re: maxProcessors problem
On Mon, 2003-08-18 at 15:42, Mike Cherichetti (Renegade Internet) wrote: > java.lang.OutOfMemoryError: JVMCI015:OutOfMemoryError, cannot create anymore > threads due to memory or resource constraints There is the cheese right there. You need to WAY up your Java System memory heap using JAVA_OPTS. See this post on the archives: http://mikal.org/interests/java/tomcat/archive/view?mesg=53417. All the available options are in the Java docs. Ben Ricker > at java.lang.Thread.start(Native Method) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.(ThreadPool. > java:582) > at > org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:460) > at > org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:293) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:536) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > a:619) > at java.lang.Thread.run(Thread.java:568) > > Now, I know that the JVM has plenty of memory left that it can be allocated > and the system has plenty of free memory, so I'm not sure it's really a > memory issue. As I said, Tomcat still runs and the memory allocated to the > JVM increases, it just doesn't have nearly enough request processors created > at the point this error happens to deal with all of the traffic. I've tried > playing around with ulimit settings, but those didn't have any impact. I've > also tried the Sun JVM and it did the same thing. > > Has anyone run into this problem or something like it before? > > Any help would be greatly appreciated! > > Thanks, > Mike > > > > > - > 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]
Re: maxThreads
On Mon, 2003-08-18 at 12:50, Geralyn M Hollerman wrote: > Ben Ricker wrote: > > > Running against a database? Are you pooling the connections? We hit > > maxthreads when either the DB is messed up (i.e., someone locks a table) > > or before, when the programmers forgot to run socket_close() on the DB > > connection, thereby returning it to the pool. > > Why, yes I am going against a database - we could never get Tomcat > connection pooling working right with it, so we went with just internal > (Ingres db) connection pooling. I don't know a whole lot about that, as > that's not the primary app I work on - it's kind of been just "there", > if you know what I mean, but now that you mention it, I think someone > might be able to lock a table - I'll have to look into that. Forgive me > for showing my ignorance, but is socket_close() a Java routine? I don't > think I've seen that before - we probably call it something different. > Is it anything like invalidating a session? socket_close() is a Unix system call...just a bit of jargon on the admin side. I myself am not a programmer, so I do not know what the exact method in Java is. An easy way to figure out if it is database connections not being closed is to check the connections from the Tomcat server to the database (if you are admin) or, if you have the access, check the jdbc (or odbc) connections used on the database. There should not be more then 10; we run a DB pool of 10 to handle roughly 100k hits per day. We run an almost 100% dynamic site and those 10 connections handle the load admirably. If the number of DB connections grows, we know that either our load has grown all of a sudden or there is a DB issue. 98% of the time, it is a DB issue. We have gotten rid of the socket closure issue as the developers jobs were on the line after they audited the socket closures that caused a few production outages. HTH, Ben Ricker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maxThreads
Running against a database? Are you pooling the connections? We hit maxthreads when either the DB is messed up (i.e., someone locks a table) or before, when the programmers forgot to run socket_close() on the DB connection, thereby returning it to the pool. HTH, Ben Ricker On Mon, 2003-08-18 at 09:42, Geralyn M Hollerman wrote: > I am getting this message in my catalina.out file: "SEVERE: All threads > are busy, waiting. Please increase maxThreads or check the servlet > status500 500"; I have no idea why all threads would be busy and > waiting. > > In the standard distribution of Tomcat 4.1.24, the value of maxThreads > is 75; this number (in the element would cause Tomcat to > "shut down" after a couple of hours on my moderately busy server. It was > suggested to me that I raise this value, but all it appears to have done > is delay the inevitable stopping of Tomcat once all the threads were > busy and waiting; but I thought that Tomcat recycled threads, no? What > are the threads waiting for to tell them to stop waiting? How can I get > them to "move on"? > > Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Causing a dump with a signal?
I remember reading where oen can send a kill signal with Unix that will cause the JVM to do a thread dump before exiting. Does this sound familiar to anyone? Ben Ricker Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Load Balancing / Session Clustering - Tests
Well, load testing on the Apache end would be the way to go for scalability testing. You can monitor the network connections to the Tomcat instances (use of netstat does well here; grep for the number of connections to each port every N seconds or minutes, etc.). To test the session stuff, try shutting down instances as you are running through the app. Can you access each Tomcat instance individually? The best way is to use each Tomcat's web server and to access it on the port. Then, shut down that Tomcat and access another Tomcat by its port. If your session continues unaffected, you are good to go. If you have a REALLY good load tester that can capture page data (i.e., return codes and pages from the web server), you could randomly shutdown Tomcat instances while load testing to see how that affects the ouput. HTH, Ben Ricker Wellinx.com On Thu, 2003-07-10 at 09:52, Weissman, Alan wrote: > Hey everyone, > > I've set up a few Tomcat instances in a cluster and would like to test the > scalability of the cluster as well as make sure the session clustering is > working. Testing scalability is easy and I have load balncing software, but > whats the best way to make sure that sessions are clustering as expected? > > Thanks, > > Alan Weissman > Systems Engineer > Concord Financial Technologies > [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]
Re: Number of Processes
As far as I understand it, top and ps changed in Redhat due to the confusion of processes vs. threads. I am not positive that this is the case, but you might just look up the CHANGE docs for the package that supplies Redhat's ps and top (probably two different RPMs). Ben Ricker Wellinx.com On Mon, 2003-07-07 at 12:38, Shannon Scott wrote: > Thank You for helping, but I still think I am having a threading problem. > I read here: > http://marc.theaimsgroup.com/?l=tomcat-user&m=104378596024043&w=2 > that "On linux, the top command displays every java thread as a separate > line item." > > On my Linux Redhat 7.2 machine I get several listed with the top ( and ps ) > command, but on my redhat 8.0 machines I only get 1 listed with the top ( > and ps ) command. > Does anyone understand this behavior? > Thanks again. > Shannon > > - Original Message - > From: "Tim Funk" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, July 07, 2003 11:56 AM > Subject: Re: Number of Processes > > > > The JVM is one process. One process with many threads. minProcessors!=OS > > processes. > > > > minProcessors == number of concurrent workers at any given point in time > > > > -Tim > > > > Shannon Scott wrote: > > > Hello, > > > I have noticed that tomcat uses only one process on my new redhat 8.0 > machine. > > > ( ps -elf | grep tomcat ) > > > There is an interesting explanation here. > > > > > > http://marc.theaimsgroup.com/?l=tomcat-user&m=103762836306068&w=2 > > > > > > So I wrote a short test_process.jsp page ( below ) that I thought would > force another process, but I still only show one when I try to open the page > with multiple browsers. > > > Does anyone have a way to force another process to begin? > > > > > > Could something in my configuration not allow other processes? > > > I have set the minProcessors=5 in my server.xml Connector. > > > > > > Linux RedHat 8.0 > > > Apache 2.0.43 ( mod_jk ) > > > Tomcat 4.1.24 > > > > > > Any help is greatly appreciated. > > > Thank You. > > > Shannon > > > > > > test_process.jsp: > > > <%@ page session="false" %> > > > <% > > > Thread.sleep(1); > > > out.print(" Done... "); > > > %> > > > > > > > > > > > > - > > 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]
Slowness in Tomcat app
I am seeing a strange slowness on our QA tier. For some reason, this only occurs on this one tier (we have a production setup running, as well as a development "playground"). I have two Apaches talking to two Tomcats running on Solaris. They are running Tomcat 4.0.5. I can see no reason for the problem. Both Tomcats are up and running and listening on the correct ports. The only indication of an issue (which may or may not be related) is the following error in the mod_jk.log on the Apache side: [Wed Jul 02 10:23:34 2003] [jk_ajp_common.c (679)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Wed Jul 02 10:23:34 2003] [jk_ajp_common.c (1041)]: Error reading reply [Wed Jul 02 10:23:34 2003] [jk_ajp_common.c (1178)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 What does this error indicate? I am not a developer, so looking at the source code would get me no where. Thanks for your time, Ben Ricker Wellinx, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat security?
Plus, if one runs as a non-priviledged user account with no login privileges (i.e., locked account) and your permissions are correct, then only root and Tomcat can read the users file. If the hacker has root, the tomcat users are the least of your worries. Ben Ricker Wellinx.com On Thu, 2003-07-03 at 14:23, Nathan McMinn wrote: > What do you mean "stored in the clear"? Are you referring to > tomcat-users.xml? Personally, I use a MySQL database to hold auth > information for a JDBC Realm, and store them digested. As an additional > layer of security, the user account that is used to access the DB for the > realm is only granted read access and only to the required user and roles > tables. > > - Original Message - > From: "Mark W. Webb" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Thursday, July 03, 2003 1:55 PM > Subject: Re: Tomcat security? > > > > I can't believe that passwords for SSL are stored in the clear. That > > places all responsibility of security to the OS, which may not be a good > > idea. What happened to defense-in-depth ?? > > > > Nathan McMinn wrote: > > > > >When was the last time Tomcat had a published exploit? > > > > > >On a related note, these kind of "contests" are fairly common, and > usually > > >don't produce any kind of real activity. > > > > > >--Nathan > > > > > >- Original Message - > > >From: "Eugene Lee" <[EMAIL PROTECTED]> > > >To: "Tomcat Users List" <[EMAIL PROTECTED]> > > >Sent: Thursday, July 03, 2003 10:51 AM > > >Subject: Tomcat security? > > > > > > > > > > > > > > >>Anyone want to discuss hardening Tomcat servers? > > >> > > >>Hacking Contest Threatens Web Sites > > >> > > >>By George V. Hulme, InformationWeek > > >>Updated Wednesday, July 2, 2003, 3:00 PM EDT > > >> > > >>A hacking contest slated for this weekend could produce a rash > > >>of Web-site defacements worldwide, according to a warning issued > > >>Wednesday by security companies and government Internet security > > >>groups. The hacker defacement contest is expected to kick off > > >>on Sunday. The contest supposedly will award free hosting > > >>services, Web mail, unlimited E-mail forwarding, and a domain > > >>name of choice for the triumphant hackers, according to a Web > > >>site promoting the contest. > > >> > > >>... > > >> > > >>More details at: > > >> > > >>http://www.internetweek.com/story/showArticle.jhtml?articleID=10818014 > > >> > > >> > > >>-- > > >>Eugene Lee > > >>http://www.coxar.pwp.blueyonder.co.uk/ > > >> > > >>- > > >>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] > > > > > - > 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]
RE: Load balancing
On Fri, 2003-06-20 at 09:52, Roberts, Eric wrote: > Hi, > > Can you use the jvmRoute parameter? The above might work; I have not tried it. One thing I did was to turn on the Tomcat web listener and then I can directly access each Tomcat instance by port (Tomcat1 on Server 1 is port 8081 and Tomcat2 on Server2 is port 8082, etc). Ben Ricker Wellinx.com > -Original Message- > From: Pierre Maris [mailto:[EMAIL PROTECTED] > Sent: 20 June 2003 16:38 > To: [EMAIL PROTECTED] > Subject: Load balancing > > > Hi, > > > > I am working with a load balanced configuration (1 Apache and 2 Tomcat instances on > the same machine). Load balancing is provided by mod_jk. > > > > My application uses caches, and to purge caches I need to address, explicitly, each > of the Tomcat instances. > > > > What's the best way to do this? > > > > Regards > > > > Pierre > > - > 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]
Re: Screen refresh
On Mon, 2003-06-16 at 16:30, Jason Bainbridge wrote: > On Tue, 17 Jun 2003 05:18, Mike Curwen wrote: > > Use of META refresh tags ? > > > > > > > content="N;URL=http://www.yoursite.com/login_expired";> > > > > Either that or update the session-timeout in your web.xml to a more acceptable > value For security reasons, you may want a user to time out in a short time. If they leave a window open to a bank statememnt, say, you want the time out to invalidate the session so that another person cannot come back and continue the session without authentication. For this, the web.xml change is the only way to go. Refreshes will mean never ending sessions. Of course, you may be perfectly happy with never ending sessions. Ben Ricker Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: rotating catalina.out
I use logrotate to rotate catalina.out. You need to restart Tomcat to do this, but I do it in a maintenance window. Ben Ricker Wellinx.com On Thu, 2003-06-12 at 15:54, Filip Hanik wrote: > log4j works for your own code, but if you are a sysadmin, and need to rotate > catalina.out (which is essentially System.out) then you are toast :-) > > I am gonna ask the developers to switch to log4j instead of System.out, they > might give me the finger :) > > filip > > > -Original Message- > > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 12, 2003 1:27 PM > > To: Tomcat Users List > > Subject: RE: rotating catalina.out > > > > > > > > Howdy, > > It seems you're right -- I hadn't looked at the code for a while. > > > > This is why I suggested tomcat use the log4j file rollover mechanism, > > which is very robust. But I didn't get much positive feedback, and I > > certainly don't have the bandwidth to do it myself right now... > > > > Yoav Shapira > > Millennium ChemInformatics > > > > > > >-Original Message- > > >From: Filip Hanik [mailto:[EMAIL PROTECTED] > > >Sent: Thursday, June 12, 2003 4:24 PM > > >To: Tomcat Users List > > >Subject: RE: rotating catalina.out > > > > > >what mechanism is that? > > > > > >It looks like the logs are being held by an open file descriptor, so > > >rotating the catalina.out will just stop logging after the first > > rotation, > > >since you cause an IOException in Tomcat. > > > > > >filip > > > > > >> -Original Message- > > >> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > >> Sent: Thursday, June 12, 2003 1:12 PM > > >> To: Tomcat Users List > > >> Subject: RE: rotating catalina.out > > >> > > >> > > >> > > >> Howdy, > > >> Why not use the nightly rollover mechanism used for servlet logs, > > >> localhost logs, etc. also for catalina.out? > > >> > > >> Yoav Shapira > > >> Millennium ChemInformatics > > >> > > >> > > >> >-Original Message- > > >> >From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] > > >> >Sent: Thursday, June 12, 2003 4:04 PM > > >> >To: Tomcat Users List > > >> >Subject: Re: rotating catalina.out > > >> > > > >> >I was going to experiment with it next week. It would be nice to do > > it > > >> >within Tomcat and stay away from the Unix-y stuff. That way it > > would > > >> also > > >> >work for the windows users. > > >> > > > >> >I have a feeling the Unix-y stuff will have to suffice for a bit. > > >> > > > >> >-e > > >> > > > >> >On Thu, 12 Jun 2003, Filip Hanik wrote: > > >> > > > >> >> did anyone figure out how to rotate this bad boy and the > > >> localhost_log > > >> >> without shutting down tomcat? > > >> >> > > >> >> Filip > > >> >> > > >> >> > > >> >> > > - > > >> >> 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] > > >> > > >> > > >> > > >> > > >> 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. > > >> > > >> > > >> ---
RE: clustering
I knew that, but the original message was so ambiguous about what exactly they were running, I thought a little clarity of terminology would help; blame my philosophy degree *grin*. I did not mean it in a condescending way. Ben Ricker Wellinx.com On Fri, 2003-06-06 at 16:17, Filip Hanik wrote: > you are correct of course with the terminology, > how ever in the lazy days of today's IT, you say that you cluster your > tomcat servers when you enable session replication. > > :) > > Filip > > > -----Original Message- > > From: Ben Ricker [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 06, 2003 11:00 AM > > To: Tomcat Users List > > Subject: Re: clustering > > > > > > You seem to be confused (or maybe it is me). You are not doing > > clustering. You are trying to do session replication across Tomcats. If > > you are not using something like Apache in the front, how will the user > > ever know to switch from 8000 to 8001? They will never know. > > > > Clustering is a totally different thing where you utilize special > > hardware and software to slave multiple servers into one virtual server > > which share processing among the CPUs on the servers. it is basically > > Multi-Processing across servers. > > > > > > Ben Ricker > > Wellinx.com > > > > On Thu, 2003-06-05 at 13:11, Alkesh Badshah wrote: > > > I'm trying to run multiple instances of tomcat on a single > > machine listening on different ports. Something to the effect of: > > > > > > http://localhost:8000 > > > http://localhost:8001 > > > > > > I've modified the server.xml file, placed the javagroups.jar > > and tomcat-javagroups.jar in the server/lib directory, and > > implement java.io.serializable. > > > > > > Unfortunately, its not working as I hoped. Once I have a logged > > in session, I'm hoping to be able to simply switch port(8000 <-> > > 8001) and have it be seemless to the user. Any idea on what the > > problem could be? > > > > > > AB > > > > > > - > > 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]
Re: clustering
You seem to be confused (or maybe it is me). You are not doing clustering. You are trying to do session replication across Tomcats. If you are not using something like Apache in the front, how will the user ever know to switch from 8000 to 8001? They will never know. Clustering is a totally different thing where you utilize special hardware and software to slave multiple servers into one virtual server which share processing among the CPUs on the servers. it is basically Multi-Processing across servers. Ben Ricker Wellinx.com On Thu, 2003-06-05 at 13:11, Alkesh Badshah wrote: > I'm trying to run multiple instances of tomcat on a single machine listening on > different ports. Something to the effect of: > > http://localhost:8000 > http://localhost:8001 > > I've modified the server.xml file, placed the javagroups.jar and > tomcat-javagroups.jar in the server/lib directory, and implement > java.io.serializable. > > Unfortunately, its not working as I hoped. Once I have a logged in session, I'm > hoping to be able to simply switch port(8000 <-> 8001) and have it be seemless to > the user. Any idea on what the problem could be? > > AB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection drops with tomcat-based game server (very shortversion)
One other suggestion: You might try putting Apache in front of the Tomcat to see if it still drops the connections. If the behavior stops, it might be something in the httpd connector. If the behavior persists, then I would look at the app or, more likely, the other "network" access (is there firewalls? VPN? some weird network setup?). Ben On Fri, 2003-03-21 at 13:51, Wouter Bijlsma wrote: > There's nothing in the logfiles (we are only using catalina.out) that would suggest > that Tomcat even knows about a connection problem. The server just goes on as if > nothing happened, but the messages it sends to the 'dead client' are never > delivered. This might indeed be a load/config issue, although some users experienced > the problem even when only 3 users were logged in. The confusing part is that we > just cannot reproduce the bug on a fast network (not even with 15 users logged in), > while neither the client nor the server use time-sensitive code for sending or > receiving messages. > > We are using tomcat 4.0.6 on a Debian/testing linux machine, kernel version 2.4.20 > > Wouter Bijlsma > > On 21 Mar 2003 13:16:19 -0600 > Ben Ricker <[EMAIL PROTECTED]> wrote: > > > Sounds like a load issue coupled with a config issue. How about some > > logs entries? DO you see anything in the logs you setup? Catalina.out? > > Context log? > > > > Also, some idea what OS and version would also be helpful. It is nearly > > impossible to tell (at least for me). > > > > Ben Ricker > > > > On Fri, 2003-03-21 at 13:01, Wouter Bijlsma wrote: > > > Is it possible that tomcat sometimes randomly kills a request, does > > > not process a request or queues a request indefinitely, thereby > > > blocking a client that tries to read back the response to its request? > > > Could this be possible when a servlet communicates with the clients > > > using only raw data and InputStreams/OutputStreams? And: is it a good > > > idea to develop a game server for playing games like chess, chequers > > > or draughts with tomcat, considering the fact that tomcats main > > > purpose is to act as web application server using a strict > > > request-response paradigm. Is it safe to assume that every request > > > made by a client always yields a proper response, also when using raw > > > data transfers? Also when there's a really high volume of requests to > > > a single servlet? > > > > > > Don't get me wrong: I do *not* think there's something wrong with > > > tomcat! As a matter of fact I have really good experiences with it > > > using it for web applications!! > > > > > > Kind Regards, > > > > > > Wouter Bijlsma, > > > [EMAIL PROTECTED] > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > > Ben Ricker <[EMAIL PROTECTED]> > > Wellinx.com > > > > > > - > > 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] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection drops with tomcat-based game server (very shortversion)
Sounds like a load issue coupled with a config issue. How about some logs entries? DO you see anything in the logs you setup? Catalina.out? Context log? Also, some idea what OS and version would also be helpful. It is nearly impossible to tell (at least for me). Ben Ricker On Fri, 2003-03-21 at 13:01, Wouter Bijlsma wrote: > Is it possible that tomcat sometimes randomly kills a request, does not process a > request or queues a request indefinitely, thereby blocking a client that tries to > read back the response to its request? Could this be possible when a servlet > communicates with the clients using only raw data and InputStreams/OutputStreams? > And: is it a good idea to develop a game server for playing games like chess, > chequers or draughts with tomcat, considering the fact that tomcats main purpose is > to act as web application server using a strict request-response paradigm. Is it > safe to assume that every request made by a client always yields a proper response, > also when using raw data transfers? Also when there's a really high volume of > requests to a single servlet? > > Don't get me wrong: I do *not* think there's something wrong with tomcat! As a > matter of fact I have really good experiences with it using it for web applications!! > > Kind Regards, > > Wouter Bijlsma, > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load balancing and Sticky sessions
Unless you have session replication going on between the two Tomcats (or are running Tomcat 5...doubtful since it is in its infant stages), you will always lose your session if you get sent from one Tomcat to another. Ben Ricker On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote: > Hello, >I have Apache and 2 tomcats running on 2 separate servers which are in a > cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using > load balancing.I am losing my session variables when there is a switch > between the 2 tomcats. Any help is greatly appreciated. > > thanks in advance, > Kavitha > > > > > > _ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Increase heap for a specific webapplication
Are you running each in separate Tomcats? If you ran one app in one Tomcat and the other on another Tomcat, you could control the heap individually as well as using nice to control CPU usage. Ben Ricker On Thu, 2003-03-13 at 10:17, Raja Sekhar wrote: > Hi, > > I have two web applications running in my Tomcat 4.0.6. One application is data > centric and heavily loaded and other is very light with hardly any users hitting. > Now what I observe is sometimes if there is a heavy search made on the first > system... it basically stops responding. I cant send any further requests till > restart. But if I hit the second webapp, it still keeps responding. > > So what I feel is tomcat is internally dividing the heap and virtual memory for all > the webapps equally.. Is there anyway I can alter this heap for each webapp > separately?? > > Or please let me know any other alternative for this problem asap because this is a > production problem. > > Thanks & Regards, > > ..Raj > > > Need a new email address that people can remember > Check out the new EudoraMail at > http://www.eudoramail.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat security concerns during start-up
I do not see this as a problem. You can lock the Tomcat account (do have to give it a shell, though) and no one should be able to get into the account. I use 'sudo' to allow others the ability to start and stop Tomcat which 'su's to the Tomcat user before executing. I myself use the Tomcat group, of which Tomcat is the only member, and apply root ownership to everything. You also need to make sure your WEB-INF is not in your docbase. HTH, Ben Ricker On Tue, 2003-03-11 at 13:20, krip pane wrote: > All, > > I'm running 4.1.18 on solaris 2.8 - currently without > any problems as id "tomcat". But my issue is I've to > give write permission to tomcat on the conf directory > inorder for tomcat to start successfully. Is there any > other way of starting tomcat without giving this > permission, is this a bug?, has it been addresses in a > different release. > > Thanks > > __ > Do you Yahoo!? > Yahoo! Web Hosting - establish your business online > http://webhosting.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat application redeploy behind Apache server
On Fri, 2003-03-07 at 15:59, Jim Cobban wrote: > The problem I was having with the connector was NOT that updated pages were > not visible after the redeploy with the manager app. It was only that > updated classes were not visible. Indeed I did not even have to redeploy to > see the updated pages. All I had to do was issue a reload at my browser and > the updated page would appear. So the problem has nothing to do with > cacheing on Apache. > > Still I cannot get the manager application to redeploy. Except now things > are worse, since the ability to update the pages without restarting the > Tomcat server has been lost. > > There must be SOMEONE out there who has gotten this to work. Please tell me > what I have to do to get the manager application to work behind Apache. So you are saying that you cannot go to /manager/reload?path/to/webapp? Do you get an error on the browser? If not, check the access_log of Apache and see if you received an error there. If the access_log shows a "good" return code on the /manager, then check the mod_jk log (wherever you set it up to be logged) and see if there any errors there. You might be dealing with an issue where Apache does not recognize that /managers needs to be redirected to Tomcat. Or, passing that point, it may be that mod_jk is not able to pass the connection to Tomcat. Anyway, more info would be needed. One more thing to add: if you can embed the mod_jk configs you added to httpd.conf and any workers.properties/mod_jk.properties you setup, I can help you better. HTH, Ben Ricker I cannot really answer your question until I know what exactly is not working and where it breaks down. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to debug Tomcat 4.0.6 remotely?
Solaris does not have 'top' installed by default (you can get it from http://www.sunfreeware.com). Solaris has a similar util called 'prstat'. Check out 'man prstat'. Ben Ricker On Fri, 2003-03-07 at 13:34, Jake Robb wrote: > I'm not 100% familiar with Solaris, but I think you can do the following: > > 1. set up secure shell (SSH) access on the Solaris box so that you can log > into it remotely on the network > > 2. download and install PuTTY on your Windows machine (get it from > www.versiontracker.com) > > 3. Use PuTTY to connect to the Solaris machine remotely. > > 4. Once connected, run "top" from the command prompt. > > "top" will show you a list of running processes. In Linux, you can then > interactively have it filter down to a specific user's processes and other > handy things -- I suspect this functionality is available in Solaris as > well. While "top" is running, press "h" for a list of available options. > > Good luck! > > -Jake > > - Original Message - > From: "Raja Sekhar" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, March 07, 2003 2:13 PM > Subject: How to debug Tomcat 4.0.6 remotely? > > > > HI, > > > > Is there any way to monitor the CPU performance of a tomcat 4.0.6 server > remotely?? I am sitting on a windows box and the tomcat is running on > Solaris. > > > > Can any one please help me asap on this.. > > > > ..Raj > > > > > > Need a new email address that people can remember > > Check out the new EudoraMail at > > http://www.eudoramail.com > > > > - > > 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] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems configuring Tomcat with Apache using mod_jk2
On Tue, 2003-03-04 at 11:01, David Godfrey wrote: > >It would help if you post the entries you added in httpd.conf for Tomcat. > Also include your server.xml file for more information. > > I have modified httpd.conf as follows: > > JKWorkersFile "/opt/tomcat/conf/jk/workers.properties" > JKLogFile "/opt/tomcat/logs/mod)jk.log" > Include /opt/tomcat/conf/auto/mod_jk.conf Just to be sure, tack on the mod_jk.conf. It still looks like you have an issue with telling Apache where to go for /examples and any other webapps (like /manager or /admin). You need to add the JkMount directives in httpd.conf; they are sort of like redirects in that they tell Apache to send requests for, say, /examples/* to the available worker(s). My entry in httpd.conf for /examples: JkMount /examples/* loadbalancer "loadbalancer" is defined in my workers.properties file. For example, I have the follwoing in my workers.properties: worker.list=tomcat1,tomcat2,loadbalancer # # First tomcat server # worker.tomcat1.port=11009 worker.tomcat1.host=127.0.0.1 worker.tomcat1.type=ajp13 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1,tomcat2 Ben Ricker > Server.xml is as follows (standard apart from the references to mod_jk) > > > modJk="/opt/apache/modules/mod_jk-2.0.43.so" /> >debug="0"/> >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" > debug="0"/> > > >type="org.apache.catalina.UserDatabase" >description="User database that can be updated and saved"> > > > > factory > org.apache.catalina.users.MemoryUserDatabaseFactory > > > pathname > conf/tomcat-users.xml > > > > > port="8080" minProcessors="5" maxProcessors="75" >enableLookups="true" redirectPort="8443" >acceptCount="100" debug="0" connectionTimeout="2" >useURIValidationHack="false" disableUploadTimeout="true" /> > > unpackWARs="true" autoDeploy="true"> >append="true" forwardAll="false" > modJk="/opt/apache/modules/mod_jk-2.0.43.so" /> > directory="logs" prefix="localhost_log." suffix=".txt" > timestamp="true"/> > reloadable="true" crossContext="true"> > prefix="localhost_examples_log." suffix=".txt" > timestamp="true"/> > home="com.wombat.empl.EmployeeRecordHome" >remote="com.wombat.empl.EmployeeRecord"/> > value="15"/> > override="false"/> >type="javax.sql.DataSource"/> > > usernamesa > password > driverClassName > org.hsql.jdbcDriver > url > jdbc:HypersonicSQL:database > >type="javax.mail.Session"/> > > > mail.smtp.host > localhost > > >global="simpleValue" > type="java.lang.Integer"/> > > > > > > > > Many thanks, > > David > > > > > > -Original Message- > From: Ben Ricker [mailto:[EMAIL PROTECTED] > Sent: 04 March 2003 16:37 > To: '[EMAIL PROTECTED]' > Subject: Re: Problems configuring Tomcat with Apache using mod_jk2 > > > You need to JkMount the /examples in httpd.conf. Something like "JkMount > */examples blah" where "blah" is the name of your loadbalancer setup in > workers.properties. > > It would help if you post the entries you added in httpd.conf for Tomcat. > Also include your server.xml file for more information. > > Ben Ricker > > On Tue, 2003-03-04 at 10:36, David Godfrey wrote: > > Hi, > > > > I'm having problems when trying to use Tomcat and Apache HTTP server > > together, with mod_jk2. I have built Apache from the source, installed > > Tomcat
Re: Problems configuring Tomcat with Apache using mod_jk2
On Tue, 2003-03-04 at 10:36, Ben Ricker wrote: > You need to JkMount the /examples in httpd.conf. Something like "JkMount > */examples blah" where "blah" is the name of your loadbalancer setup in > workers.properties. Let me correct that: it should be '/examples/* blah'. I was looking at two different entries in my own httpd.conf. Ben Ricker > It would help if you post the entries you added in httpd.conf for > Tomcat. Also include your server.xml file for more information. > > Ben Ricker > > On Tue, 2003-03-04 at 10:36, David Godfrey wrote: > > Hi, > > > > I'm having problems when trying to use Tomcat and Apache HTTP server > > together, with mod_jk2. I have built Apache from the source, installed > > Tomcat 4.1.18, and tested each individually (they seem to function > > correctly). When I add in mod_jk2, both Apache and Tomcat still start and > > function correctly, but there does not appear to be any redirection taking > > place, (I can access http://localhost:8080/examples for, but not > > http://localhost/examples). > > > > When I examine "error_log" in APACHE_HOME/logs, there are the following 2 > > entries, but nothing that (to me) indicates an error: > > > > Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal > > operations > > > > File does not exist: /opt/apache/htdocs/examples > > > > The error/log file I have defined in httpd.conf for mod_jk2 is created when > > I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache > > 2.0.43, Tomcat 4.1.18, and Java 1.4.1. > > > > I would really appreciate some ideas on how I could solve this problem. > > > > Many thanks, > > > > D > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems configuring Tomcat with Apache using mod_jk2
You need to JkMount the /examples in httpd.conf. Something like "JkMount */examples blah" where "blah" is the name of your loadbalancer setup in workers.properties. It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. Ben Ricker On Tue, 2003-03-04 at 10:36, David Godfrey wrote: > Hi, > > I'm having problems when trying to use Tomcat and Apache HTTP server > together, with mod_jk2. I have built Apache from the source, installed > Tomcat 4.1.18, and tested each individually (they seem to function > correctly). When I add in mod_jk2, both Apache and Tomcat still start and > function correctly, but there does not appear to be any redirection taking > place, (I can access http://localhost:8080/examples for, but not > http://localhost/examples). > > When I examine "error_log" in APACHE_HOME/logs, there are the following 2 > entries, but nothing that (to me) indicates an error: > > Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal > operations > > File does not exist: /opt/apache/htdocs/examples > > The error/log file I have defined in httpd.conf for mod_jk2 is created when > I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache > 2.0.43, Tomcat 4.1.18, and Java 1.4.1. > > I would really appreciate some ideas on how I could solve this problem. > > Many thanks, > > D > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat application redeploy behind Apache server
On Tue, 2003-03-04 at 09:43, Jim Cobban wrote: > I am sorry to keep harping on this, but I still am no closer to solving my > problem. I don't even know where to look for a solution. Are you sure you are not caching the web pages? Do you have caching on in the httpd.conf? Do you send the "pragma-nocache" in your HTML? Try changing the browser settings to always go back to the server and if you still get the old page, then look to see if Apache has caching on. I noticed that you are using mod_webapp. you might want to try to switch to mod_jk instead. It works with one Tomcat only; I have heard that it is a good idea to remobe the load-balancing weight when only using one tomcat. The, you should be able to use the manager app. HTH, Ben Ricker > > > > - Original Message - > > From: "Jim Cobban" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Saturday, February 22, 2003 1:29 PM > > Subject: Re: [EMAIL PROTECTED] Tomcat application redeploy behind Apache > server > > > > I have a problem that when I redeploy my JSP/servlet application on a > Tomcat > > server, the new behavior is not visible to users who access the > applications > > through an Apache HTTP server which is the front-end. The new behavior is > > seen if I go into the backdoor directly into the Tomcat server, but that > > access is not available to my customers. As a result I have to shutdown > the > > connector and the Tomcat server and restart in order for my customers to > see > > the new behavior. How do I configure Apache and Tomcat so that > redeploying > > the application using the manager interface on Tomcat causes the new > > functionality to be visible through Apache. > > > > The Apache httpd.conf file contains the following: > > > > LoadModule webapp_module modules/mod_webapp.so > > > > > > WebAppConnection warpConnection warp 127.0.0.1:8008 > > WebAppDeploy examples warpConnection /examples/ > > WebAppInfo /webapp-info > > > > > > WebAppDeploy cocoon warpConnection /cocoon/ > > WebAppDeploy Census warpConnection /Census/ > > WebAppDeploy Ocfa warpConnection /Ocfa/ > > WebAppDeploy manager warpConnection /manager/ > > > > The Tomcat server.xml contains the following: > > > > >port="8009" minProcessors="5" maxProcessors="75" > >acceptCount="10" debug="0"/> > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [BULK] - Re: No processor available
On Thu, 2003-02-27 at 13:37, Sankaranarayanan (Ganesh) Ganapathy wrote: > How does the accept count property affect this? The accept count property merely > determines the number of connections that will be queued on the socked. I am talking > about a case where the connection is accepted from server socket but there is no > processor available to process the request. > Thanx > Ganesh The following information is taken from Tomcat's 4.1.18 documentation. If you have the documentation installed somewhere, the URL is: http://localhost/tomcat-docs/config/jk.html "acceptCount: The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. The default value is 10." If I understand you, this is exactly what you are looking for? Ben Ricker > -----Original Message- > From: Ben Ricker [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 11:07 AM > To: Tomcat Users List > Subject: [BULK] - Re: No processor available > > > On Thu, 2003-02-27 at 12:53, Sankaranarayanan (Ganesh) Ganapathy wrote: > > Hi All, > > > > Currently I see that tomcat rejects requests with the message "No processor > > available" if it has reached the maximum number of processors and the processors > > are busy processing requests. > > > > Is there a way to make tomcat wait until a processor becomes available? > > > > Thanx > > Ganesh > > Change the "Accept Count" property in the server.xml in the connector > properties. > > > Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No processor available
On Thu, 2003-02-27 at 12:53, Sankaranarayanan (Ganesh) Ganapathy wrote: > Hi All, > > Currently I see that tomcat rejects requests with the message "No processor > available" if it has reached the maximum number of processors and the processors are > busy processing requests. > > Is there a way to make tomcat wait until a processor becomes available? > > Thanx > Ganesh Change the "Accept Count" property in the server.xml in the connector properties. Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems compiling and using mod_jk
Anything in the mod_jk.log, or whatever log you setup in the httpd.conf or mod_jk.conf file? Ben Ricker On Wed, 2003-02-26 at 13:59, Mike Jackson wrote: > Hmm, I'm still having problems. I took my mod_jk.conf from tomcat 3 and > striped out everything except for the examples webapp and put in the minimal > workers.properties file from the web site. I can access the nbrguess.jsp > file from tomcat if I go to 8080, but when I try to get to it via apache it > gives me a error. There's nothing in the log file to point me anywhere, it > looks like things on the tomcat side are running, I've got startup messages > from apj13 threads, but I don't seem to be talking to them. Any ideas? > > --mikej > -=- > mike jackson > [EMAIL PROTECTED] > > > -Original Message- > > From: Turner, John [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 26, 2003 11:55 AM > > To: 'Tomcat Users List' > > Subject: RE: problems compiling and using mod_jk > > > > > > > > Yup. > > > > John > > > > > > > -Original Message- > > > From: Mike Jackson [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, February 26, 2003 2:53 PM > > > To: Tomcat Users List > > > Subject: RE: problems compiling and using mod_jk > > > > > > > > > You mean the JMX MBeans lines? > > > > > > --mikej > > > -=- > > > mike jackson > > > [EMAIL PROTECTED] > > > > > > > -Original Message- > > > > From: Turner, John [mailto:[EMAIL PROTECTED] > > > > Sent: Wednesday, February 26, 2003 11:45 AM > > > > To: 'Tomcat Users List' > > > > Subject: RE: problems compiling and using mod_jk > > > > > > > > > > > > > > > > Just comment out the ManagedBean elements in server.xml. That > > > > will get rid > > > > of those error messages, they are not compatible with > > > Ajp13Connector. > > > > > > > > John > > > > > > > > > > > > > -Original Message- > > > > > From: Mike Jackson [mailto:[EMAIL PROTECTED] > > > > > Sent: Wednesday, February 26, 2003 2:40 PM > > > > > To: Tomcat Users List > > > > > Subject: RE: problems compiling and using mod_jk > > > > > > > > > > > > > > > Ok, I've got mod_jk to compile and work with apache 1.3.27 > > > > > and tomcat 3.3.x. > > > > > However I can't get it to work with tomcat 4.1.18. The > > > > > module loads, but it > > > > > doesn't seem like it can talk to tomcat. I tried to change > > > > > the server.xml > > > > > file to use the older apj13 connector, but it fails to > > > load, gets a > > > > > java.lang.Exception: ManagedBean is not found with Ajp13Connector. > > > > > > > > > > So my question is, where to go, should I switch back to the > > > > > coyote connector > > > > > and try to get it working? Or is there something I can > > > do to fix that > > > > > ManagedBean exception? > > > > > > > > > > --mikej > > > > > -=- > > > > > mike jackson > > > > > [EMAIL PROTECTED] > > > > > > > > > > > -Original Message- > > > > > > From: Turner, John [mailto:[EMAIL PROTECTED] > > > > > > Sent: Wednesday, February 26, 2003 11:04 AM > > > > > > To: 'Tomcat Users List' > > > > > > Subject: RE: problems compiling and using mod_jk > > > > > > > > > > > > > > > > > > > > > > > > Sounds good to me, I really have no idea. My experience with > > > > > > build tools is > > > > > > pretty minimal. > > > > > > > > > > > > John > > > > > > > > > > > > > -Original Message- > > > > > > > From: Mike Jackson [mailto:[EMAIL PROTECTED] > > > > > > > Sent: Wednesday, February 26, 2003 2:02 PM > > > > > > > To: Tomcat Users List > > > > > > > Subject: RE: problems compiling and using mod_jk > > > > > > > > > > > > > > > > > > > > > I found an install-sh in > > > > > >
Cookie Handling Question
We have some strange behavior going on, probably due to the strange setup one of our customers use. Before I get into it, some facts: Running Apache 1.3.27 with mod_jk 1.2.1 on two Redhat Linux servers talking to 4 Tomcat 4.0.5 instances. The Tomcats are running 2 per server on Sun Solaris 8 boxes using Sun's JDK 1.4.1. The Apache's are load-balancing to the Tomcats and we have a Cisco load-balancer in front of the Apache servers. Here is where it gets messy: the client is using IE 5.5 running on a Citrix terminal server. They are using multiple stations within a location and using the same account! So, user goes to station 1, logs in, does their business, then leaves the station without explicitely logging out of the app. They go to station 2, login, do their thing there then leavesetc. On top of this, there are other users who use the same stations but use different browser windows and different logins. The problem is that the user complains of having to re-login to station 1 after "a couple of hours" when he comes back to use the session he left open previously. Of course, with roughly 200 users at this site, we have only had 2 complaints of this behavior but we are doing "due diligence" to figure out what is going on. It looks like the browser is getting "confused" about which session cookie is the right one for the session and it sends the wrong cookie, thereby getting the "invalidated session, please login again" screen. Can anyone shed any light on how this sort of behavior might cause session timeouts because of mishandled cookies? How does IE 5.x know that a cookie is for this particular window, let's say, and not another? Are cookies tied to windows? Being a Unix sysadmin, I can only look out Windows (TM); I don't use them. Any info would be appreciated. Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat as a production server?
You want to put a profiler on that box and see what threads are racing away. You can also tell the JVM to throw a traceback of all the threads being used, but I for got how exactly :( Anyway, look at the code. You definately have something going on there. Ben Ricker On Sat, 2003-02-15 at 18:47, Arcadius A. wrote: > Hello! > We're using tomcat 4.1.12, Apache 1.3.27 , mod_jk1.2.2 on a redhat 7.3 > server ( AMD Duron 1.2GHz, 256 RAM). > > The problem is that the server runs quite fine the first few days but > after a week, the server is heavily busy: While the number of tomcat > processes and the memory usage is slightly the same, the CPU usage of each > of the tomcat processes highly increase ( from 0.0% to about 19% for each > of the tomcat processes). so tomcat can no longer respond to requests > from the browser. the only one thing I use to do is restart the > server then everything works fine again > Note that all the 6 java processes shown in the attached file are from > tomcat. And we're using tomcat's default configurations. > > Please has anyone coped with this problem before? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error Log watcher
On Fri, 2003-02-14 at 09:57, Shapira, Yoav wrote: > Howdy, > > OK. I actually went and looked at the Swatch page out of interest. > Cool tool. Yes it is. I use it on my Apache error logs and to security checks on the access_logs. Easy to setup to boot. > Here's an approach that may work for you: use log4j. Implement a > TriggeringEventEvaluator > (http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/spi/Triggerin > gEventEvaluator.html) to do the regex or whatever rules you want to > decide required a page from a log message. The evaluator will get every > log message, including its complete stack trace and any details you want > to add. You can use log4j's MDC > (http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/MDC.html) to > provide any details needed in order to decide whether the event merits a > message to your page or not. > > Log4j comes with an SMTP appender that sends email and has all the logic > you want: throttling and arbitrary rules for even evaluation. See > http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppend > er.html for details. Some more information about myself: I am a system administrator. The extent of my programmin g experience ends at "Perl for System Administrators". So I have a questions that may sound dumb: Can you use these appenders as part of catching exceptions from within the Code? That is, if you catch a certain exception that is going to be logged, you set isTriggeringEvent on it and Log4J can then do what needs to be done? > Log4j doesn't come with a pager appender right now. You could use a JMS > appender to send events (that pass the triggering event evaluator's > criteria) to a JMS server somewhere, as there are J2EE servers that can > handle paging. Alternatively, you can write the pager appender yourself > and maybe even donate it to us as a log4j contribution ;) Using the SMTPAppender to email it my pager would be plenty. > This may seem like a lot, but it's really more work explaining the > process than doing it ;) If I understand it right, you are right. This would be easily added to our existing exception handling. Thanks for the info! Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error Log watcher
On Fri, 2003-02-14 at 09:16, Shapira, Yoav wrote: > Howdy, > What would you require from this "error log watcher" ? Good question! Sorry I did not include it. I am looking for something similar to swatch, but can handle the multiple-lined errors. I would want the program to have some sort of rules setting functionality (preferably regex) and that allows actions based upon the specified rules. The actions would basically be alpha pages which would include the error message in the page. Some throttling would be nice, so multiple errors would not flood my pager. Ben Ricker > >-Original Message----- > >From: Ben Ricker [mailto:[EMAIL PROTECTED]] > >Sent: Friday, February 14, 2003 9:58 AM > >To: Tomcat Users List > >Subject: Error Log watcher > > > >I am wondering if anyone has found a good error log watcher for Tomcat? > >Swatch does not work because it is made for syslog-type logs where an > >error message occurs on one line. So, it views a java error as one > line, > >which really does not help. > > > >Anyone try any other programs? > > > >Ben Ricker > > > >-- > >Ben Ricker <[EMAIL PROTECTED]> > >Wellinx.com > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > 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] > -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Log watcher
I am wondering if anyone has found a good error log watcher for Tomcat? Swatch does not work because it is made for syslog-type logs where an error message occurs on one line. So, it views a java error as one line, which really does not help. Anyone try any other programs? Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Debug.
On Thu, 2003-02-13 at 05:28, João Augusto Charnet wrote: > Is it possible to set Tomcat to listen to diferent ports when debugging ? What I do with roughly 12 developers is that I add a logger for each user that logs to each developers web app directory. They use the admin interface to restart/redeploy their own context. Not sure if this is exactly what you want... Ben Ricker > Here's the problem. We have a group of developers, who acesses tomcat > remotely in one machine. Each developer accesses one context of Tomcat. > However to Debug, since Tomcat uses one port, when somebody is > debugging, the execution of the entire group is going to be in debug > mode. This is not interesting. What we want is to each developer have > it's own debug port. > Did I make myself clear ? > If not please let me know. > Thanks a lot... > Sincerely, > John. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: failing installation server.xml file
A few hints on using RPMs: get to know the --query (or '-q') option to RPM. Specifically, you can list out all files installed by an rpm by typing: 'rpm -ql Package_name'. To get the exact package name (RPM usually requires the full version number), type 'rpm -qa |grep package_name'. For example, type 'rpm -qa |grep tomcat' to get the full package name. Then type 'rpm -ql tomcat_package_name' to get all the files installed. This will give you tthe layout of all the files installed. I would also suggest going over the stuff in /usr/bin. They are probably shell scripts. You can see what configuration files are pulled in from there. Having said all that, I do not use the RPMs for Tomcat myself. I use Solaris as my Tomcat platform. The binaries, as suggested earlier, are the easiest way to go. Ben Ricker > > -Original Message- > > From: Jon Roberts [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 12, 2003 3:32 PM > > To: Tomcat Users List > > Subject: Re: failing installation server.xml file > > > > > > Turner, John wrote: > > > What does "move tomcat4" mean? You changed the location of > > CATALINA_HOME? > > > Did this change get propagated through all startup and > > admin scripts? > > > > > > John > > > > I changed the location of CATALINA_HOME, which the rpm put in > > /var/tomcat4. The only place I updated this value was in the > > tomcat4.conf file. I get feedback upon starting the engine that > > indicates it's using the new path (see earlier post), and I was under > > the impression that this was the only place I'd need to set > > it. I put it > > in my environment, too, but that didn't do it. Where else should I > > expect to change this value? > > > > Incidentally, with the rpm the startup scripts end up as > > /usr/bin/tomcat4 and /usr/bin/dtomcat4. For whatever reason, the > > CATALINA_HOME/bin directory only contains a handful of .jar files. > > > > Now I've backed out and re-installed it without moving CATALINA_HOME, > > and I get the same behavior. That is not it. > > > > Jon Roberts > > www.mentata.com > > > > > > --------- > > 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] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JTHOWTO
On Wed, 2003-02-12 at 14:00, Alberto A C A S Magalhães wrote: > John, i am using your document, Red Hat Linux 7.2 + Apache... + Tomcat > 4.1.18, > I finish installing, java and tomcat. > When i startup tomcat, it gives an error, of, JAVA_HOME environment variable > not correctly defined!! > Can you help me... Although I am not John, I will fill his rather huge shoes for a moment... You need to set the JAVA_HOME variable. You can do this by setting it manually on the command line (type: 'JAVA_HOME=/path/to/java/install') or. better yet, assign the variable in the startup.sh file. Include a line at the beginning under the comments: JAVA_HOME=/path/to/java/install The '/path/to/java/install' depends on how you installed Java. If by RPM, I believe it is /usr/java/jdk_version#. Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jakarta 4.1.18 Web Server Administration
See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html in the "Manager App HOW-TO" link. Ben Ricker On Wed, 2003-02-12 at 11:47, João Augusto Charnet wrote: > I've just installed Jakarta 4.1.18, and I'd like to know where do I > configure the Web Administration ? > I'd appreciate any kind of help. I'm new to this version, and I don't > know where to start. > > Thanks a lot.. > > Sincerely, > John > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Moving to Tomcat 4.1.18
On Wed, 2003-02-12 at 07:46, Ramkumar Krishnan wrote: > Hi All, > I am a newbie to 4.1.18. We want to move our system (which > is already running in live)to tomcat 4.1.18 from tomcat 3.2.1. Will > there be a major work involve?. How much time it will take?...What > will be the major changes?..If you have any documents relating to > this, please send it to me. > > Any help would be appreciated. The move is a rather large one. Both the server.xml and web.xml have changed. Here is a rough outline of how I moved from 4.0.5 to 4.1.18: 1) Installed new version in a different directory then older version. 2) Changed Listening ports to different ports so that old and new version could coexist without stomping on each other ports. 3) Started new version. 4) Checked to make sure all the examples and admin ran correctly in the new port (see docs) 5) Added old configs to new configs (i.e., added special loggers, setup mod_jk Listener, etc. I still keep the different port assignments) 6. Tested my Web Apps using the different ports 7. Take down new version and change port assignments to the same ports as old setup. 8. Take down old version 9. Start new version 10. Test, Test, Test. Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: loadbalancing with tomcat only and unable to bring admin andmanager pages
On Tue, 2003-02-11 at 10:06, krip pane wrote: > i'm running tomcat 4.1.12. I've a few questions any > and all help is truly appreciated. > > 1. what's the best way to monitor the health of > tomcat? There are a number of ways to do this: process watching, scripts that access the certain URLs and match the result with what is expected, third-party monitors like Big Brother, etc. > 2. Is the default connector that comes packaged with > tomcat capable of doing failover,loadbalancing or do I > need to have apache in the front and a connector in > between. You need to have Apache out in front with a connector in between. > 3. Is it possible to redirect tomcat to port 80 (or do > i need apache in the front again) to avoid having the > users type 8080 everytime? You can have Tomcat use port 80, but you have to change the server.xml to reflect that and start Tomcat as Root. However, you would not have the load-balancing/failover. > 4. while starting tomcat as user "tomcat" i keep > getting "tomcat-users permission denied". only > wrokaround I found was to either give the user write > access to the conf dir or comment out the memoryrealm > altogether. One, is it a good idea to give the suer > write access to conf dir. Two i have to setup a user > list (currently locally) to allow access to tomcat, if > i comment out the memeoryrealm then how do i > authenticate my users. I give the user 'Tomcat' the ownership of the Tomcat directory. Should be no pproblem with that, as log as the conf directory is not in the 'ROOT' docbase directory. The answer above should fix two. Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Single-Sign-On (SSO) with Tomcats in 2 different servers
What you want it session replication. You can search the archives for answers. Also, go to: http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html?page=1 for a good overview. Ben Ricker On Mon, 2003-02-03 at 13:17, Víctor Ferrero del Valle wrote: > Hi, > > I have 2 servers, both with Tomcat. On each server is installed a > different web application. > Therefore, server A has a Tomcat with application A, and server B has > another Tomcat (but same version) with Application B. > The access to the applications is restricted, so the user must provide > his userId and password before accessing the applications. > Both applications authenticate against the same LDAP server. > > The issue is that Id like to use Single Sign On (SSO) to access both > applications, so that when a user accesses one application and > identifies himself, he doesnt need to identify again when he accesses > the other application. > I think that in order to accomplishing this, the two Tomcats should be > able to share > sessions. Is this possible? Is there any other solution? > > Thanks in advance. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory requirements
On Tue, 2003-01-28 at 16:17, Cees van de Griend wrote: > > and there are 27 - 35 instances of it. > > This could be correct, does not sound unreasable. > > > It takes up close to 1 GB of memory. > > This does sound unreasable. > How did you measure this? Running just the examples, as was stated earlier, would rule out taking upwards of a gig of memory. I run a fairly sophisticated web app which gets roughly 100k hits a day our JVMs rarely take up 50-80meg a piece (they are 4 JVMs taking roughly 1/4th of the requests). I would suggest looking at vmstat and doing 'cat /proc/meminfo'. If you see 1gig+ memory allocation, you can do the math. If you have less then 1gig memory, you should definately see heavy swap usage. -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: concern about Apache + mod_jk + Tomcat cluster
Can you post the workers.properties file? I use equal lblweight (I think that is the name of the property) set to 100 for the 4 Tomcat instances. I have a nearly identical setup: twp Apache 1.3.27 server running on Redhat 7.3 load balancing across 4.0.6 Tomcat instances running on two Solaris 8 servers. We have no performance issues and I am using the default Processor settings in server.xml. We go through roughly 1 million hits a month. HTH, Ben Ricker On Wed, 2003-01-15 at 11:04, YOU, JERRY (SBCSI) wrote: > Hi, > I installed the Apache1.3.27, mod_jk1.2.1 and Tomcat4.1.18 recently on our > Solaris6 machine. The approach is that let 1 apache as web server dispatches > requestes to the 3 tomcat server instances. There is no error in the > configuration, > and install. But when I was load-testing the application, I noticed that > there were > lots of error message shown in the mod_jk file, although all the requests > were > dispatched to the tomcat servers and responded with 200. > > I then changed the 3 tomcat servers' configure as following: > port="11009" minProcessors="1" maxProcessors="1" >acceptCount="10" debug="1"/> > So now every Tomcat can only accept 1 request at the same time. > I then sent 3 concurrent requests to the cluster: tomcat21, tomcat22, > tomcat23. > >From the debug/log file, I think the mod_jk and tomcats are working like : > 1, 3 requests reaches mod_jk, mod_jk sends requests to tomcat21 > 2, tomcat21 accepts the first one and rejects the other 2, > 3, mod_jk logs errors in mod_jk.log, reports the tomcat is down or network > problem. > 4, mod_jk then sends the 2 to tomcat22 > 5, tomcat22 accepts 1 and rejects the other. > 6, mod_jk again logs errors. > 7. mod_jk sends the alst one to tomcat23, > 8, tomcat 23 accepts it. > > I think there is nothing wrong with this procedure, but besides the annoying > error messages, > the whole performance is poor due to the time spent in the probes. I also > suspect that > the socket connection in Solaris6 is too slow, for some reason. > > I have questions for those who have the tomcat cluster in there production > site: > how about the performance in your site? Is there anything wrong with my > configuration or should > I use JK2 to improve performance? > > The configuration files and log files are attached with this email. > > OS: Solaris 6 > Apache1.3.27, Tomcat 4.1.18, mod_jk1.2.1( I can not find the binary mod_jk > at the apache.org site > under solaris6 directory, so, I download the one in Solaris8 dir). > > Thanks, > > Jerry You <> <> > <> <> > <> <> > > __ > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Tomcat 4.x and Java Processes
On Tue, 2003-01-07 at 14:21, Troy J. Kelley wrote: > Yes, sorry, I forgot to mention that. Are there options for threading > on linux? I think on Solaris, you can do "green" or native threads. If > so, would a change in this setting reduce the JVM to a single pid? > > Thanks for the quick reply! > > -Troy Nope. An application like Tomcat, or the JVM for that matter, will always be multi-threaded. Green or Native has to do with how exactly the threads are created (I forgot the exact differences). What is the big deal with seeing multiple Java processes? Are you worried about RAM? Note that the threads all have the same memory allocation. You do not add those up; the shared memory is just that: shared amongst all of the threads. I would just forget about it and move on. You will not get a single PID. Well, I tale that back. Never say never when it comes to Unix; you might be able to list the Parent PIDS only by messing with the 'ps' options. I have never done that myself, so I suggest, if you feel the need, to look through the man pages for 'ps'. HTH, Ben Ricker > -Original Message- > From: Ben Ricker [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 3:13 PM > To: Tomcat Users List > Subject: Re: Tomcat 4.x and Java Processes > > Are you using Linux? Linux shows in-process threads as processes. If you > are running Linux, then you are seeing threads within the Java process. > You would expect to see a number of threads even with your simple > config. > > Ben Ricker > > On Tue, 2003-01-07 at 14:07, Troy J. Kelley wrote: > > I've been looking all over for the answer to this and can't seem to > find > > a good answer. > > > > My basic question is that when I start up a *very* basic tomcat config > > (JMX Support, HTTP Listener, one engine, one host, once context) I get > > several java processes that look the same: > > > > > > root 5865 0.0 5.7 227380 29548 ? S15:02 0:02 > > /usr/java/jdk/bin/java -Djava.endorsed.dirs= -classpath > > /usr/java/jdk/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar > > -Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4 > > -Djava.io.tmpdir=/var/tomcat4/temp > org.apache.catalina.startup.Bootstrap > > start > > > > So, why are there so many processes? I set minProcessors="1" > > maxProcessors="1" for the Coyote HTTP connector to reduce the number > of > > JVMs related to this... > > > > In the WebSphere world a JVM is synonymous with an "Application > Server", > > which services the requests for the modules (WAR/EAR) "installed" into > > the appserver. > > > > Any insight would be greatly appreciated. > > > > -Troy > > [EMAIL PROTECTED] > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Tomcat 4.x and Java Processes
Are you using Linux? Linux shows in-process threads as processes. If you are running Linux, then you are seeing threads within the Java process. You would expect to see a number of threads even with your simple config. Ben Ricker On Tue, 2003-01-07 at 14:07, Troy J. Kelley wrote: > I've been looking all over for the answer to this and can't seem to find > a good answer. > > My basic question is that when I start up a *very* basic tomcat config > (JMX Support, HTTP Listener, one engine, one host, once context) I get > several java processes that look the same: > > > root 5865 0.0 5.7 227380 29548 ? S15:02 0:02 > /usr/java/jdk/bin/java -Djava.endorsed.dirs= -classpath > /usr/java/jdk/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar > -Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4 > -Djava.io.tmpdir=/var/tomcat4/temp org.apache.catalina.startup.Bootstrap > start > > So, why are there so many processes? I set minProcessors="1" > maxProcessors="1" for the Coyote HTTP connector to reduce the number of > JVMs related to this... > > In the WebSphere world a JVM is synonymous with an "Application Server", > which services the requests for the modules (WAR/EAR) "installed" into > the appserver. > > Any insight would be greatly appreciated. > > -Troy > [EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: is this normal??
I found a trick that might help: up your sar reports to take a snapshot every minute. Then, when you notice the CPU pegging, go through the sar reports for CPU usage and try to find the minute that they start. Then, you can go back through the Apache access logs (mod_jk.log perhaps), etc. to see if you can correlate a specific request with the the problem. Good Luck, Ben Ricker Wellinx.com On Thu, 2003-01-02 at 13:07, Randy Paries wrote: > I am running > > jakarta-tomcat-4.0.4 jdk1.3.1_04 apache-1.3.27-2 > > I have enabled server stats (thanks Jan) > > I stop and started and it is back to normal. So when this does this > again, I will see if the server status helps > > Thanks for all the suggestions > > Randy > > -Original Message- > From: Brandon Cruz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 02, 2003 1:19 PM > To: Tomcat Users List > Subject: RE: is this normal?? > > > Are you using tomcat 3.x by any chance? We had a CPU problem with 3.2.4 > that we could never resolve. The problem went away with our recent > upgrade to 4.1.x > > > > -Original Message- > From: Randy Paries [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 02, 2003 11:37 AM > To: 'Tomcat Users List' > Subject: RE: is this normal?? > > > I have a pretty busy web server > It has apache and tomcat > What I am trying to find out if I have a problem or not > I am linux guy but not at the tuning level > When I do a top I get: These top 4 are always at the top > 29616 apache25 0 87368 78M 14256 R46.8 7.8 388:13 java > 2290 apache25 0 87368 78M 14256 R45.0 7.8 386:14 java > 460 apache24 0 6612 5112 4696 R44.2 0.4 357:51 httpd > 2180 apache25 0 6656 5176 4696 R39.9 0.5 359:28 httpd > > What makes me suspicious is that it is only after some time. > > When I do a sar, I have no idle time on the CPU > > I realize that this may be a linux or apache question, but I think it > has to do with tomcat as well > > Thanks for any help > > Randy > > > -- > 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]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: is this normal??
There is probably a problem going on there. I find it strange that you have so much cumulative CPU time on the httpd processes. To me, they look hung (in so far as I can tell). Since most apps are transactional in nature (i.e., individual requests being fulfilled rather quickly), you would expect to see the Apache processes using CPU, then giving it up rather quickly. Of course, other httpd processes will also pop in and out of CPU usage as individual requests pop in. How long has this Apache/Tomcat been running? You might try a restart of both and see if the same behavior comes right back or if it takes time. You may have an issue in the app which is triggering a hang. Of course, on a "pretty busy web server", you may get such cumulative times, but you should still see httpd processes popping in and out of CPU usage as they handle their respective requests. If the same PIDs sit there pegging the CPU incessently, you most likely have an issue. HTH, Ben Ricker On Thu, 2003-01-02 at 11:37, Randy Paries wrote: > I have a pretty busy web server > It has apache and tomcat > What I am trying to find out if I have a problem or not > I am linux guy but not at the tuning level > When I do a top I get: These top 4 are always at the top > 29616 apache25 0 87368 78M 14256 R46.8 7.8 388:13 java > 2290 apache25 0 87368 78M 14256 R45.0 7.8 386:14 java > 460 apache24 0 6612 5112 4696 R44.2 0.4 357:51 httpd > 2180 apache25 0 6656 5176 4696 R39.9 0.5 359:28 httpd > > What makes me suspicious is that it is only after some time. > > When I do a sar, I have no idle time on the CPU > > I realize that this may be a linux or apache question, but I think it > has to do with tomcat as well > > Thanks for any help > > Randy > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: running tomcat as a non-root user?
On Tue, 2002-12-31 at 18:13, waimun wrote: > P.S. Btw, does anyone know is there a way where I could run w/o login/su'ing to >normal user; ie as root, fire up startup.sh but processes created will be by owner of >the tomcat files? Just create a init-like script that calls the startup.sh using 'su'. The line would read something like: 'su tomcat -c "/path/to/startup.sh". Then, you can run the init script as root and, well, use it as an init script! Ben Ricker Wellinx.com > On Wed, Jan 01, 2003 at 02:21:47AM +0530, karthikeyan.balasubramanian wrote: > > Hi can you tell what are all the steps you followed. > > > > Would be helpful for me in future when i do this. > > > > karthikeyan. > > - Original Message - > > From: "waimun" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, December 31, 2002 8:41 AM > > Subject: Re: running tomcat as a non-root user? > > > > > > > > > > Thanks to all those who responded; John, Mike, Jerry, Ben, Noel. Yes, I > > got it working. > > > > > > Season greetings. > > > > > > -- > > > 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]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: running tomcat as a non-root user?
Additionally, you can add the "su tomcat -c" in a wrapper script that calls the startup.sh file. Mine looks like this: case "$1" in start) echo -n "Starting Tomcat..." /bin/su tomcat -c "/usr/local/tomcat1/bin/startup.sh" /bin/su tomcat -c "/usr/local/tomcat2/bin/startup.sh" ;; That way, you CAN use root (and a startup script) to start Tomcat and still get the security benefits of running as an unpriveledged, locked user. Ben Ricker Wellinx.com On Mon, 2002-12-30 at 12:15, Turner, John wrote: > assume a user named 'tomcat' already created, and a group named 'tomcat' > already created. > > at a command prompt, as root: > > chown -R tomcat:tomcat $CATALINA_HOME > su - tomcat > $CATALINA_HOME/bin/startup.sh > exit > > Note that if you are running Tomcat on port 80, it must run as root. You > shouldn't have to change the permissions on any of the Tomcat files from > what they are in a default install...I never have. > > John > > > > -Original Message- > From: waimun > To: [EMAIL PROTECTED] > Sent: 12/30/02 10:25 AM > Subject: running tomcat as a non-root user? > > Hi, > > Has anybody tried running tomcat as a non-root user in Linux? If so, how > do you proceed (ie. making script setuid doesn't work for me). Pls > advice. > > Thanks alot! > > -- > 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]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Urgent - Issue with Tomcat/mod_jk?
I beleive we are dealing with a different problem. My app has been running on Tomcat 4.0.6 for weeks until I had the problem recently. There was no crash. What happened was, it seems, a user REALLY fat-fingered the enter key or some smart person sent the same request to the server 180 times within one minute. I traced back through my access logs for Apache and caught the massive number if requests for one URL at the same time I had the problem. All of these requests overwhelmed the number of AJP13 processors I had configured (well, they are still at the default setting) and also caused a massive opening of database connections. Anyway, as to your problem: You may not have enough memory setup for your JVM. Do you send amx -Xm and -Xs parameters to Tomcat using JAVA_OPTS? You may be getting more load then Tomcat can handle due to a RAM constraint. Ben Ricker On Tue, 2002-12-24 at 13:39, Venkat Reddy Valluri wrote: > Hi , >Even I too getting the same problem(lots of broken pipe errors )with catalina >4.0.4(redhat 7.3, j2sdk1.4.1) connecting apache 2.0.40(redat 7.3) on diffrenet >machine with mod_jk, > But what happened is after it ran for cuople of hours, tomcat crases, > giving kernel out of memory error in syslog messages > > Did you get any workaround for this > Thks, > --Venkat > > > > -----Original Message- > From: Ben Ricker [mailto:[EMAIL PROTECTED]] > Sent: Mon 12/23/2002 5:49 PM > To: Tomcat Users List > Cc: > Subject: Re: Urgent - Issue with Tomcat/mod_jk? > I had suspected that in the problem earlier in the day (the part of the > email I posted at the end if the last email you replied to). However, > what did not make sense was the connection pool woth the database also > going up. > > If I understand the stuff below, after 85 concurrent connections (max > connections + accept count) I would start getting the "Out of > Processors" error. However, I cannot see how this would cause the > DATABASE connection pool to grow as large as it did (we usually handle > 50k connections a business day with 5 pooled connections; during the > earlier problem, the database connections went to *30*, our maximum). > > Additionally, why would we contine to get the following error: > > 2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke > java.io.IOException: Broken pipe > at java.net.SocketOutputStream.socketWrite(Native Method) > at java.net.SocketOutputStream.write(SocketOutputStream.java:91) > at org.apache.ajp.Ajp13.send(Ajp13.java:525) > at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) > at org.apache.ajp.Ajp13.finish(Ajp13.java:395) > at >org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) > at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) > at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) > at java.lang.Thread.run(Thread.java:479) > > without seeing the "Out of Processor" msgs? > > I may be looking at two independent problems: one a scalability issue > with the ajp13 processors (which are at the ddefault setting, btw) and > some other issue I am in the dark about. > > Anyway, these questions are rhetorical. Thanks for the reply and do not > feel obliged to answer back. I need to start putting pressure on the > developers to help me out here. > > Thanks again, > > Ben Ricker > > On Mon, 2002-12-23 at 16:07, Mark Eggers wrote: > > Ben, > > > > Disclaimer: > > > > I'm not a Tomcat developer, but I do use it to develop > > software and integrate applications. > > > > In $CATALINA_HOME/conf/server.xml you should see an > > entry similar to the following: > > > > > > > className="org.apache.ajp.tomcat4.Ajp13Connector" > > port="8009" > > minProcessors="5" > > maxProcessors="75" > > acceptCount="10" debug="0"/> > > > > I'm using 4.1.18, so your entry may be a bit > > different. It looks like from your error messages > > that you may be running out of processors. > > > > The following information is taken from Tomcat's > > 4.1.18 documentation. If you have the documentation > > installed somewhere, the URL is: > > > > http://localhost/tomcat-docs/config/jk.html > > > > acceptCount: > > > > The maximum queue length for incoming connection > > requests when all possible request processing threads > > are in use. Any requests received when the queue is > > full will be refused. The default val
Re: Urgent - Issue with Tomcat/mod_jk?
I had suspected that in the problem earlier in the day (the part of the email I posted at the end if the last email you replied to). However, what did not make sense was the connection pool woth the database also going up. If I understand the stuff below, after 85 concurrent connections (max connections + accept count) I would start getting the "Out of Processors" error. However, I cannot see how this would cause the DATABASE connection pool to grow as large as it did (we usually handle 50k connections a business day with 5 pooled connections; during the earlier problem, the database connections went to *30*, our maximum). Additionally, why would we contine to get the following error: 2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) without seeing the "Out of Processor" msgs? I may be looking at two independent problems: one a scalability issue with the ajp13 processors (which are at the ddefault setting, btw) and some other issue I am in the dark about. Anyway, these questions are rhetorical. Thanks for the reply and do not feel obliged to answer back. I need to start putting pressure on the developers to help me out here. Thanks again, Ben Ricker On Mon, 2002-12-23 at 16:07, Mark Eggers wrote: > Ben, > > Disclaimer: > > I'm not a Tomcat developer, but I do use it to develop > software and integrate applications. > > In $CATALINA_HOME/conf/server.xml you should see an > entry similar to the following: > > > className="org.apache.ajp.tomcat4.Ajp13Connector" > port="8009" > minProcessors="5" > maxProcessors="75" > acceptCount="10" debug="0"/> > > I'm using 4.1.18, so your entry may be a bit > different. It looks like from your error messages > that you may be running out of processors. > > The following information is taken from Tomcat's > 4.1.18 documentation. If you have the documentation > installed somewhere, the URL is: > > http://localhost/tomcat-docs/config/jk.html > > acceptCount: > > The maximum queue length for incoming connection > requests when all possible request processing threads > are in use. Any requests received when the queue is > full will be refused. The default value is 10. > > maxProcessors: > > The maximum number of request processing threads to be > created by this Connector, which therefore determines > the maximum number of simultaneous requests that can > be handled. If not specified, this attribute is set to > 20. > > NOTE:For Apache 1.3 on Unix there is a 1 to 1 mapping > between httpd processes and Ajp13Processors. You must > configure maxProcessors to be greater than or equal to > the maximum number of httpd processes your Apache web > server spawns. > > minProcessors: > > The number of request processing threads that will be > created when this Connector is first started. This > attribute should be set to a value smaller than that > set for maxProcessors. The default value is 5. > > I hope this gets you started on a productive path. > > /mde/ > > just my two cents . . . . > > ______ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Urgent - Issue with Tomcat/mod_jk?
I posted a message earlier which has not received any replies so I will try another tact. The earlier mail is posted below this one. I have a production issue that has arisen in a setup of two Apache 1.3.27/Redhat 7.3 servers load-balanced across 4 Tomcat 4.0.6/Sun Solaris servers. Tomcat is running with Sun's 1.3 JVM. We have gotten a lot of the following errors in the "engine" log for Tomcat: 2002-12-23 15:21:56 Ajp13Processor[12009][16] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) We have also gotten calls from customers saying they are getting hanging screens in our application. We see no anomolies on out database, although earlier we did. Can anyone tell me what the error above is saying? Is it not able to write to the mod_jk? It looks like it is failing in some sort of closing routine (org.apache.ajp.tomcat4.Ajp13Response.finishResponse). Could this be a protocol issue? I am getting heat from my bosses on this one and I need to say SOMETHING! Please help if you can give me any clues or suggest possibilities. Thanks, Ben Ricker -Earlier Post- We saw a strange production issue this morning that seems to be related to Apache/mod_jk but I wanted to see if anyone can shed some lght on it. First, the environment: 2 Redhat 7.3 Linux server talking to 2 Sun Solaris 8 Tomcat 4.0.6 servers. Each server has 2 separate Tomcat instances for a total of 4. The Java uses Oracles JDBC drivers (not through Tomcat, but through a custom connection pool) to talk to an Oracle DB runnin on AIX 4.x. The first symptom was a huge spike in DB usage due to the creation of around 35 pooled connections to the database, This led us to think something happened on the database side, but it seems that the pool only grew on one of the Tomcat instances; the other instances showed the default pool size. The Oracle database did not show any locked tables or huge, hanging queries. The only problems I see in logs are related to mod_jk and Tomcat. First in the Tomcat engine log,I see: 2002-12-23 09:07:14 Ajp13Connector[12009] No processor available, rejecting this connection There are hundreds of these messages. Then I start seeing this message in the engine log: 2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) About a minute after, in the mod_jk logs, I see: [Mon Dec 23 09:08:29 2002] [jk_ajp_common.c (679)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Dec 23 09:08:29 2002] [jk_ajp_common.c (1041)]: Error reading reply [Mon Dec 23 09:08:29 2002] [jk_ajp_common.c (1178)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 This goes on for about 20 seconds before I see a huge number of the following: [Mon Dec 23 09:08:49 2002] [jk_ajp_common.c (961)]: Error ajp_process_callback - write failed I am at a loss at what might cause this. Could it be related to soemthing in Tomcat? What exactly does this sequence of events tell me? Any light one can shed would be greatly appreciated. Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Mod_jk/Tomcat issue?
We saw a strange production issue this morning that seems to be related to Apache/mod_jk but I wanted to see if anyone can shed some lght on it. First, the environment: 2 Redhat 7.3 Linux server talking to 2 Sun Solaris 8 Tomcat 4.0.6 servers. Each server has 2 separate Tomcat instances for a total of 4. The Java uses Oracles JDBC drivers (not through Tomcat, but through a custom connection pool) to talk to an Oracle DB runnin on AIX 4.x. The first symptom was a huge spike in DB usage due to the creation of around 35 pooled connections to the database, This led us to think something happened on the database side, but it seems that the pool only grew on one of the Tomcat instances; the other instances showed the default pool size. The Oracle database did not show any locked tables or huge, hanging queries. The only problems I see in logs are related to mod_jk and Tomcat. First in the Tomcat engine log,I see: 2002-12-23 09:07:14 Ajp13Connector[12009] No processor available, rejecting this connection There are hundreds of these messages. Then I start seeing this message in the engine log: 2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) About a minute after, in the mod_jk logs, I see: [Mon Dec 23 09:08:29 2002] [jk_ajp_common.c (679)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Dec 23 09:08:29 2002] [jk_ajp_common.c (1041)]: Error reading reply [Mon Dec 23 09:08:29 2002] [jk_ajp_common.c (1178)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 This goes on for about 20 seconds before I see a huge number of the following: [Mon Dec 23 09:08:49 2002] [jk_ajp_common.c (961)]: Error ajp_process_callback - write failed I am at a loss at what might cause this. Could it be related to soemthing in Tomcat? What exactly does this sequence of events tell me? Any light one can shed would be greatly appreciated. Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
JAVA_HOME problem with 4.1.18
I have this weird problem with setting the JAVA_HOME env variable in Tomcat 4.1.18 (I also had it in 4.1.17). Here is the lines from my startup.sh: CATALINA_HOME="/usr/local/tomcat1-new" JAVA_HOME="/usr/local/j2re1.4.1_01" JAVA_OPTS="-ms32m -mx200m" export CATALINA_HOME JAVA_HOME JAVA_OPTS This setup worked in 4.1.12 and 4.0.6. Now, when I start Tomcat using the startup.sh, I get this: [root@dev bin]# ./startup.sh The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program What gives? Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Latest stable version?
On Wed, 2002-12-18 at 14:47, [EMAIL PROTECTED] wrote: > Jakarta site says 4.1.17 is the latest stable version and not 4.1.12! > > Ganesh Damn! You are right...where in hell was I when I saw 1.1.12 Thanks! Ben Ricker > > > > "Ben Ricker" > > <[EMAIL PROTECTED]> > > > > To: "Tomcat Users List" > > 18-Dec-2002 15:43 > > Please respond tocc: > > "Tomcat Users List" Subject: Latest stable version? > > <[EMAIL PROTECTED] > > pache.org> > > > > > > > > > I am running Tomcat 4.0.6 in a production environment right now. I want > to move to 4.1.x. I hear about 4.1.17. Is this considered production > stable? It is probably MORE stable then 4.1.16, from what I have heard. > > However, the Jakarta site shows 4.1.12 as the stable branch of 4.1.x, > but that has been that way for a long time. Is there going to be an > increment soon to the stable branch? > > Thanks, > > Ben Ricker > > -- > Ben Ricker <[EMAIL PROTECTED]> > Wellinx.com > > > -- > 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]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Latest stable version?
I am running Tomcat 4.0.6 in a production environment right now. I want to move to 4.1.x. I hear about 4.1.17. Is this considered production stable? It is probably MORE stable then 4.1.16, from what I have heard. However, the Jakarta site shows 4.1.12 as the stable branch of 4.1.x, but that has been that way for a long time. Is there going to be an increment soon to the stable branch? Thanks, Ben Ricker -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: [OFF-TOPIC] RE: Naïve question about root
On Wed, 2002-12-18 at 12:26, Matt Harris wrote: > Apache normally runs multiple processes to handle multiple simoultaneous > user requests. This can be configured in your httpd.conf. Tomcat runs > multiple processes, which it calls "workers". Since tomcat is in java > and not a truly binary-compiled language (like C or C++) it runs under > java which is part of your JRE (java runtime environment). Another small tidbit: Linux's 'ps' command shows threads as processes. Apache runs multiple processes, but Java runs one processes with multiple threads. Can't remember why Linux does that... Anyway, we run our Tomcats on Solaris and there is only one java process per Tomcat instance listed in 'ps'. Ben Ricker > Denise Mangano wrote: > > > > Hi all, I followed everyone's suggestions and so far so good. I set up the > > users like John suggested, and disable the desktop environment like Matt > > suggested. I disabled this service by changing my run level to 3. I now > > have to get Tomcat back into the startup... For now I have started it > > manually. But here is the weird thing... > > > > Why so many processes running for Apache, and java (below)... I ran ps -ef > > after reboot and before I started Tomcat and the java processes were not > > listed. Is this normal? Also, how change the java processes from running > > as root (if I need to)? And lastly, which one of these is supposed to > > represent the Tomcat service running? > > > > John - any word on that new HOW-To yet for 4.1.17? I'm going to get > > cracking on that in a little bit :) > > > > Thanks in advance for any thoughts/advice!! : ) > > Denise > > > > UIDPID PPID C STIME TTY TIME CMD > > root 1 0 0 11:37 ?00:00:04 init > > root 2 1 0 11:37 ?00:00:00 [keventd] > > root 3 1 0 11:37 ?00:00:00 [ksoftirqd_CPU0] > > root 4 1 0 11:37 ?00:00:00 [kswapd] > > root 5 1 0 11:37 ?00:00:00 [bdflush] > > root 6 1 0 11:37 ?00:00:00 [kupdated] > > root 7 1 0 11:37 ?00:00:00 [mdrecoveryd] > > root13 1 0 11:37 ?00:00:00 [scsi_eh_0] > > root14 1 0 11:37 ?00:00:00 [scsi_eh_1] > > root17 1 0 11:38 ?00:00:00 [kjournald] > > root96 1 0 11:38 ?00:00:00 [khubd] > > root 190 1 0 11:38 ?00:00:00 [kjournald] > > root 191 1 0 11:38 ?00:00:00 [kjournald] > > root 192 1 0 11:38 ?00:00:00 [kjournald] > > root 193 1 0 11:38 ?00:00:00 [kjournald] > > root 559 1 0 11:38 ?00:00:00 syslogd -m 0 > > root 564 1 0 11:38 ?00:00:00 klogd -x > > rpc584 1 0 11:38 ?00:00:00 portmap > > rpcuser612 1 0 11:38 ?00:00:00 rpc.statd > > root 762 1 0 11:38 ?00:00:00 /usr/sbin/sshd > > root 795 1 0 11:38 ?00:00:00 xinetd -stayalive -reuse > > -pidfil > > root 823 1 0 11:38 ?00:00:00 sendmail: accepting > > connections > > root 842 1 0 11:38 ?00:00:00 gpm -t ps/2 -m /dev/mouse > > root 865 1 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 868 865 0 11:38 ?00:00:00 /usr/sbin/fcgi- > > -DHAVE_ACCESS -D > > apache 870 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 871 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 872 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 874 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 875 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 876 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 877 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > apache 879 865 0 11:38 ?00:00:00 /usr/sbin/httpd > > -DHAVE_ACCESS -D > > root 892 1 0 11:38 ?00:00:00 crond > > xfs946 1 0 11:38 ?00:00:00 xfs -droppriv -daemon > > daemon 982 1 0 11:38 ?00:00:00 /usr/sbin/atd > > root 991 1 0 11:38 tty1 00:00:00 /sbin/mingetty tty1 > > root 992 1 0 11:38 tty2 00:00:00 /sbin/mingetty tty2 > > root 993 1 0 11:38 tty3
Re: app roll out.
On Mon, 2002-12-16 at 18:51, Alexander Wallace wrote: > The line: > > RedirectMatch ^/$ http://mysite/theContext > > did the trick. > > Now I have to find out how to make apache call index.jsp automatically if no > page is requested. If i use http://localhost:8080/myapp tomcat calls > index.jsp automatically, but when going through apache > (http://localhost/myapp) apache doesn't load the index.jsp. > > How can i make it load index.jsp automatically? You need to add the index.jsp to the possible "DirectoryIndex" directive. For example: # # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # DirectoryIndex index.html index.jsp If you call a URL without a file spec, Apache will try all the files in the DirectoryIndex directive utnil it his one. Ben Ricker > Thanks again! > > On Monday 16 December 2002 15:42, Ben Ricker wrote: > > This would be done by Apache (though it could possibly be done by > > Tomcat; I use Apache). You can do it one of two ways: > > > > 1) Use mod_rewrite to rewrite "/index.html" to "/path-to-context-name". > > Not sure on the mechanics of this. Try the Apache list for pointers, or > > any number of tutotials on mod_rewrite. > > > > 2) Use the 'Redirect' directive in Apache. This is what I use and has > > worked for 2 years. Basically, you stick a line in your httpd.conf which > > goes: > > > > Redirect temp www.domain.com www.domain.com/path-to-context > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: app roll out.
Here is the line that workd for me in Apache 1.3.27 Are you using Apache 2.x? Redirect temp /index.html http://main.wellinx.com/servlets/Logon?STATE=0&USER=doctor The '/' by itself may not work. When I set it up, I had to include the 'index.html'. But I do not remember because I set it up so long ago. Ben Ricker On Mon, 2002-12-16 at 18:40, Alexander Wallace wrote: > Adding a line like the one you suggest doesn't seem to work... People at > apache's irc said it should be something like: > > Redirect / http://www.domain.com/context > > But that only seems to create infinite redirects since it redirects to the > same domain name. > > The docs say that redirect takes a URI and then a URL. > > Could you check your config files and paste one line here? Just to make sure > the syntax is correct? > > Thanks! > > On Monday 16 December 2002 15:42, Ben Ricker wrote: > > > Redirect temp www.domain.com www.domain.com/path-to-context > > > > Hth, > > > > Ben Ricker > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: app roll out.
This would be done by Apache (though it could possibly be done by Tomcat; I use Apache). You can do it one of two ways: 1) Use mod_rewrite to rewrite "/index.html" to "/path-to-context-name". Not sure on the mechanics of this. Try the Apache list for pointers, or any number of tutotials on mod_rewrite. 2) Use the 'Redirect' directive in Apache. This is what I use and has worked for 2 years. Basically, you stick a line in your httpd.conf which goes: Redirect temp www.domain.com www.domain.com/path-to-context Hth, Ben Ricker On Mon, 2002-12-16 at 15:28, Alexander Wallace wrote: > Hi there. Almost ready to deploy my app to test in real world. I'm using > apache + tomcat (using mod_jk). My app name is wxyz, and I have purchased > the domain name i want it to be under. I want to call www.mydomain.com and > get my app's index. instead of typing the www.mydomain.com/wxyz. > > How can i do that? Can someone, if not tell me how, tell me where to read to > learn how to do it? > > Sorry about the newbienezz of the email. I know nothing about this things. > > Thanks! > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Sharing Session data between two instances?
Try seaarching the archives. This question has been answered many times before. You can search them here: http://mikal.org/interests/java/tomcat/index.jsp And for an answer to your question, you are looking for in session replication. See: http://www2.theserverside.com/resources/article.jsp?l=Tomcat Ben Ricker On Mon, 2002-12-16 at 09:32, Puneet Agarwal wrote: > Even I want to do the same and am looking for the answer whether it is possible or >not. > > I posted same question 2-3 times in last week and have been monitoring this mail >list but noone has replied. > > The much I could gather is, it is not possible directly, It could be possible if we >use apache and multiple instances of tomcat. The rest we may have to write our own >code to achieve this. > > Could someone answer this please...! > > Regards > Puneet > > > - Original Message - > From: Prashanth Pushpagiri <[EMAIL PROTECTED]> > Date: Sun, 15 Dec 2002 10:57:09 -0800 (PST) > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Sharing Session data between two instances? > > > Hi > > > > I am trying to setup tomcat 4.1.12 on two servers so > > that an incoming request can be handled by either one > > of the servers. What I would like to do is share > > session details between the two instances. Is this > > possible? > > > > Thanks > > Prashanth > > > > __ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.com > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Connecting Tomcat 4.1.12 with Apache 1.3
On Fri, 2002-12-13 at 12:16, Jerry Ford wrote: > John: > > I added the listener statements to server.xml. > > mod_jk.conf showsentries for each of the webapps, and > there is a JkMount entry for the servlets (including my HelloWorld entry). > > mod_jk.log is empty. Do you see that mod_jk is being loaded by Apache when you start it or in Apache's error_log? I see the following when I start Apache: Apache/1.3.26 (Unix) mod_jk/1.2.0 configured -- resuming normal operations I also will assume that you have the 'Include' statement in the httpd.conf for mod_jk.properties (as well as the LoadModule/AddModule directives for mod_jk.so). You might also want to bump the 'JkLogLevel' in your mod_jk.properties to get the debug level to get some feedback on what is going on. Hth, Ben Ricker > What more do I need to do? > > Thanks, Jerry > > Turner, John wrote: > > >Mod_webapp is deprecated, and has some fairly serious limitations. > > > >JK/JK2 is the better choice if you are concerned with future growth. > > > >If you're having problems, perhaps my HOWTOs will help: > > > >http://www.johnturner.com/howto > > > >John > > > >-Original Message- > >From: Jerry Ford [mailto:[EMAIL PROTECTED]] > >Sent: Wednesday, December 11, 2002 3:15 PM > >To: Tomcat Users List > >Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3 > > > >Denise: > > > >I have just got my Apache 1.3.27/Tomcat 4.1.12 connection to work. > > > >Answers to your questions are yes, and yes. You need a connector > >between them, and mod_jk.so is one such connector. > > > >However, I had a devil of a time locating any connector on the > >apache.org website, and I never was able to make mod_jk work (I tried > >using the version that did work with my Tomcat 3.2 installation, but it > >did not work with 4.1 and I was not able to locate mod_jk---any > >version---on the apache website in order to rebuild). > > > >I ended up using mod_webapp.so, which is another connector. > > > >It's located in the jakarta-tomcat-connectors-4.1.12-src.tar.gz, which > >you can download from > >http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/ > >(the same directory as tomcat itself). > > > >When you unpack it, look for README.txt in the webapp directory. It will > >tell you how to build the connector from CVS. Follow the directions in > >the readme. They're clear, straightforward, and the build process was > >smooth and routine, for me at least. > > > >Jerry > > > > > ><http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/jak > >arta-tomcat-connectors-4.1.12-src.tar.gz> > > > > > > > >Denise Mangano wrote: > > > > > > > >>Hi all, > >> > >>I am fairly new to using Apache / Tomcat. I currently have my website set > >> > >> > >up > > > > > >>in Apache, running in the /var/html directory. I have installed Tomcat > >>because I have a form page (HTML) that I want to run a servlet with to > >>process a credit card payment with an outside payment processor. I have > >> > >> > >seen > > > > > >>some instances that people have stated I have to do some special > >>configuration in order to use both Apache and Tomcat together. Is this so? > >>If so, then are there any good resources for this? > >> > >>Perhaps using JSP for the form will be better because I want a custom page > >>to display depending on what error message will come back from the payment > >>engine. If that is the case then wouldn't I need the connection between > >>Apache and Tomcat? (the images I will need for the JSP page is stored in > >>apache web directory as well). Is this the mod_jk plug in? (I am running > >>RedHat Linux 7.3) > >> > >>Thanks in advance! > >> > >>Denise Mangano > >>Help Desk Analyst > >>Complus Data Innovations, Inc. > >> > >> > >>-- > >>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]> > > > >--- > >Incoming mail is certified Virus Free. > >Checked by AVG anti-virus system (http://www.grisoft.com). > >Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002 > > > > > >--- > >Outgoing mail is certified Virus Free. > >Checked by AVG anti-virus system (http://www.grisoft.com). > >Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002 > > > > > >-- > >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]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Apache-Tomcat mod_jk
On Thu, 2002-12-12 at 11:07, Denise Mangano wrote: > I think I am confused : ) I originally set up my website in Apache, and it > is listening to port 80. I could access my website through > http://localhost. I installed Tomcat (did not make any config changes). > After the installation I still had access to http://localhost and to > Tomcat's index page at http://localhost:8080. (At that point I could also > access http://localhost:8080/examples/jsp/index.html. Now I still can > access http://localhost but I can NOTaccess http://localhost:8080. Nor can > I access the examples directory through either. I have made no port > changes. > > The only change I made to the httpd.conf file was to add, at the very end, > Include /usr/local/tomcat/conf/jk/mod_jk.conf (I changed a path to my > mod_jk.so file in the generated mod_jk.conf file so I copied the custom conf > file to the jk directory and pointed there (read that in another how-to)). > I have ServerName defined as www.mydomain.com Therein lies the problem: You must tell Apache, through the JkMount mentioned earlier, what paths will get mapped to Tomcat. For example, to run the examples through port 80 (and Apache), you would use the following: JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 This will cause mod_jk to "intercept requests for /examples/servlets and /examples/*.jsp and send the request to the worker called ajp13 and setup in your workers.properties file. If you have another web app you want to use (I use /servlets for my setup, just use the JkMount for the path and the worker. For example: JkMount /path/you/want ajp13 Hth, Ben Ricker > In my server.xml file: > > > > autoDeploy="true"> > append="true" forwardAll="false" /> > > workers.properties: > # BEGIN workers.properties > # > # Setup for apache system > # > # (optional) make this equal to CATALINA_HOME > workers.tomcat_home=/var/jakarta-tomcat-4.1.12 > # > # (optional) make this equal to JAVA_HOME > workers.java_home=/usr/local/j2sdk1.4.1 > # > ps=/ > worker.list=ajp13 > > # Definition for Ajp13 worker > # > worker.ajp13.port=8009 > > # change this line to match apache ServerName and Host name in server.xml > worker.ajp13.host=www.parkingticketpayment.com > > worker.ajp13.type=ajp13 > # > # END workers.properties > > I think I did everything right > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -Original Message- > From: Ben Ricker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 11:44 AM > To: 'Tomcat Users List' > Subject: RE: Apache-Tomcat mod_jk > > > You seem to be confused here. I believe you said you were accessing port > 8080 when it was working. Now, unless you setup Apache to listen on port > 8080, you were talking directly to Tomcat's web server. Now that you have > moved to Apache, you want to drop the 8080 and use port 80, which Apache > listens to by default (again, unless you changed it). > > I would suggest that you post all the lines you added to httpd.conf, your > workers.properties conf file, and your server.xml file. > > The JkMount directive tells Apache what path gets mapped to Tomcat; see > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html for more > information about the directive. > > HTH, > > Ben Ricker > > On Thu, 2002-12-12 at 10:41, Denise Mangano wrote: > > I do have a workers.properties file. I checked that, my server.xml, > > and my httpd.conf and all server names are the same. > > > > I thought the mod_jk.conf file took care of the LoadModule directive > > that I would have had to place in my httpd.conf file. I tried > > searching for info on the JkMount directive but could not find any. > > Do I place JkMount path/to/modules/mod_jk-1.3-eapi.so? And where > > would I place that in the httpd.conf file? I just don't get why it > > was working before, but now it isn't > > > > Thanks again. > > > > Denise Mangano > > Help Desk Analyst > > Complus Data Innovations, Inc. > > > > > > -Original Message- > > From: Turner, John [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, December 12, 2002 10:52 AM > > To: 'Tomcat Users List' > > Subject: RE: Apache-Tomcat mod_jk > > > > > > > > Do you have a workers.properties file? Creating one is explained in > > my HOWTO...JK needs one to understand how to get to Tomcat. > > > > Do you have the JkMount statements in httpd.conf? Apache needs those > > to understand what
RE: Apache-Tomcat mod_jk
I pasted before I read the link below...that how-to is for 3.2. The one for 4.x is at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html. Another good How-to that I used to setup a load-balanced Apache-mod_jk-Tomcat 4.0.6 setup is at http://www.ubeans.com/tomcat/. Good luck, Ben Ricker On Thu, 2002-12-12 at 10:44, Ben Ricker wrote: > You seem to be confused here. I believe you said you were accessing port > 8080 when it was working. Now, unless you setup Apache to listen on port > 8080, you were talking directly to Tomcat's web server. Now that you > have moved to Apache, you want to drop the 8080 and use port 80, which > Apache listens to by default (again, unless you changed it). > > I would suggest that you post all the lines you added to httpd.conf, > your workers.properties conf file, and your server.xml file. > > The JkMount directive tells Apache what path gets mapped to Tomcat; see > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html for > more information about the directive. > > HTH, > > Ben Ricker > > On Thu, 2002-12-12 at 10:41, Denise Mangano wrote: > > I do have a workers.properties file. I checked that, my server.xml, and my > > httpd.conf and all server names are the same. > > > > I thought the mod_jk.conf file took care of the LoadModule directive that I > > would have had to place in my httpd.conf file. I tried searching for info > > on the JkMount directive but could not find any. Do I place JkMount > > path/to/modules/mod_jk-1.3-eapi.so? And where would I place that in the > > httpd.conf file? I just don't get why it was working before, but now it > > isn't > > > > Thanks again. > > > > Denise Mangano > > Help Desk Analyst > > Complus Data Innovations, Inc. > > > > > > -Original Message- > > From: Turner, John [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, December 12, 2002 10:52 AM > > To: 'Tomcat Users List' > > Subject: RE: Apache-Tomcat mod_jk > > > > > > > > Do you have a workers.properties file? Creating one is explained in my > > HOWTO...JK needs one to understand how to get to Tomcat. > > > > Do you have the JkMount statements in httpd.conf? Apache needs those to > > understand what to send to JK. > > > > John > > > > > > > -Original Message- > > > From: Denise Mangano [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, December 12, 2002 10:38 AM > > > To: 'Tomcat Users List' > > > Subject: RE: Apache-Tomcat mod_jk > > > > > > > > > Thank you very much for your help. The instructions were easy enough > > > to follow, with a few exceptions. I downloaded the > > > mod_jk-1.3-eapi.so because > > > as per the site, that was the module to use if I am running > > > Apache 1.3 with > > > mod_ssl. After doing all the steps I tried to restart Apache > > > and got the > > > following error message: > > > > > > Starting httpd: Syntax error on line 4 of > > > /var/jakarta-tomcat-4.1.12/conf/auto/mod_jk.conf: > > > Cannot load /etc/httpd/libexec/mod_jk.so into server: > > > /etc/httpd/libexec/mod_jk.so: cannot open shared object file: No such > > > file or directory > > > > > > I changed the path in the mod_jk.conf file to LoadModule jk_module > > > /the/exact/path/to/mod_jk-1.3-eapi.so > > > > > > When I tried to restart Apache it restarted no problem. But now I > > > cannot get to http://localhost:8080 when before I could. > > > (http://localhost still > > > works though) Any thoughts? In the meantime I am going back > > > to double > > > check everything. > > > > > > Denise Mangano > > > Help Desk Analyst > > > Complus Data Innovations, Inc. > > > > > > > > > -Original Message- > > > From: Turner, John [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, December 12, 2002 9:14 AM > > > To: 'Tomcat Users List' > > > Subject: RE: Apache-Tomcat HOWTO > > > > > > > > > > > > #1: Yes. > > > > > > #2: No. :) > > > > > > You don't need ant. When I originally wrote the HOWTO, I thought you > > > did, so I hacked through getting it to work and put that in my > > > HOWTO. Then, > > > based on a tip from someone on the list I learned that I > > > didn't need to go > > > through all that, all I
RE: Apache-Tomcat mod_jk
You seem to be confused here. I believe you said you were accessing port 8080 when it was working. Now, unless you setup Apache to listen on port 8080, you were talking directly to Tomcat's web server. Now that you have moved to Apache, you want to drop the 8080 and use port 80, which Apache listens to by default (again, unless you changed it). I would suggest that you post all the lines you added to httpd.conf, your workers.properties conf file, and your server.xml file. The JkMount directive tells Apache what path gets mapped to Tomcat; see http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html for more information about the directive. HTH, Ben Ricker On Thu, 2002-12-12 at 10:41, Denise Mangano wrote: > I do have a workers.properties file. I checked that, my server.xml, and my > httpd.conf and all server names are the same. > > I thought the mod_jk.conf file took care of the LoadModule directive that I > would have had to place in my httpd.conf file. I tried searching for info > on the JkMount directive but could not find any. Do I place JkMount > path/to/modules/mod_jk-1.3-eapi.so? And where would I place that in the > httpd.conf file? I just don't get why it was working before, but now it > isn't > > Thanks again. > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -Original Message- > From: Turner, John [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 10:52 AM > To: 'Tomcat Users List' > Subject: RE: Apache-Tomcat mod_jk > > > > Do you have a workers.properties file? Creating one is explained in my > HOWTO...JK needs one to understand how to get to Tomcat. > > Do you have the JkMount statements in httpd.conf? Apache needs those to > understand what to send to JK. > > John > > > > -Original Message- > > From: Denise Mangano [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, December 12, 2002 10:38 AM > > To: 'Tomcat Users List' > > Subject: RE: Apache-Tomcat mod_jk > > > > > > Thank you very much for your help. The instructions were easy enough > > to follow, with a few exceptions. I downloaded the > > mod_jk-1.3-eapi.so because > > as per the site, that was the module to use if I am running > > Apache 1.3 with > > mod_ssl. After doing all the steps I tried to restart Apache > > and got the > > following error message: > > > > Starting httpd: Syntax error on line 4 of > > /var/jakarta-tomcat-4.1.12/conf/auto/mod_jk.conf: > > Cannot load /etc/httpd/libexec/mod_jk.so into server: > > /etc/httpd/libexec/mod_jk.so: cannot open shared object file: No such > > file or directory > > > > I changed the path in the mod_jk.conf file to LoadModule jk_module > > /the/exact/path/to/mod_jk-1.3-eapi.so > > > > When I tried to restart Apache it restarted no problem. But now I > > cannot get to http://localhost:8080 when before I could. > > (http://localhost still > > works though) Any thoughts? In the meantime I am going back > > to double > > check everything. > > > > Denise Mangano > > Help Desk Analyst > > Complus Data Innovations, Inc. > > > > > > -Original Message- > > From: Turner, John [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, December 12, 2002 9:14 AM > > To: 'Tomcat Users List' > > Subject: RE: Apache-Tomcat HOWTO > > > > > > > > #1: Yes. > > > > #2: No. :) > > > > You don't need ant. When I originally wrote the HOWTO, I thought you > > did, so I hacked through getting it to work and put that in my > > HOWTO. Then, > > based on a tip from someone on the list I learned that I > > didn't need to go > > through all that, all I needed to do was follow connector > > build option #2, > > which is using the standard ./configure method. > > > > So, basically, if you want to build the connector from source, all you > > have to do is (assuming a GNU-ready build environment): > > > > NOTE: the ./configure method assumes you have a sane build > > environment: > > libtool, GNU make, autoconf, m4 > > > > a) cd to CONNECTOR_HOME/jk/native. > > > > b) check README and README.configure. > > > > c) run buildconf.sh: ./buildconf.sh. This will create a file called > > "configure" in CONNECTOR_HOME/jk/native. > > > > d) run configure: ./configure > > --with-apxs=/some/path/to/apache/bin/apxs > > --with-java-home=${JAVA_HOME} > > > > e) run make: make >
Re: Mod_jk is not compatible this version of apache
Have you tried compiling your own connector from source? HTH, Ben Ricker On Wed, 2002-12-11 at 12:56, R. C. Hill wrote: > Has anyone found a solution to this problem. I'm in the same boat and need > of a solution...thanks. > > -R > > >From: "John B. Moore" <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Mod_jk is not compatible this version of apache > >Date: Sat, 07 Dec 2002 14:47:25 -0800 > > > >Versions > >Apache httpd-2.0.40 > >Tomcat 4.1.12 > > > >OS > > Readhat 8 with latest kernal > > > > I had compile Apache and it runs just fine, Tomcat also runs find > >independently > > > > I then downloaded the connectors for 4.1.12 and followed the "John > >Turner" directions for compiling the mod_jk... and copied to the ../modules > >directory and updated the server.xml with the > >auto config.. check that the /auto/mod_jk.conf was being written and that > >it contained the correct path to the mod_jk.so module and matches the > >include in the httpd.conf file. > > > > Sadly I'm getting the error message > > > >"httpd: module "mod_jk.so" is not compatible with this version of > >apache.." > > > >Anyone with some suggestions on where I need to look next... I'm > >stumped.. > > > > John.. > > > > > >-- > >To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > _ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: TC 4.1 and VM crash: how to report issue?
Have you tried turning off the HotSpot JIT compiler and trying your test? All other things being equal, this will show you that the problem resides in the interaction between Tomcat and the compiled code. Just a thought... Ben Ricker On Wed, 2002-12-11 at 08:44, Aymeric Alibert wrote: > I changed the debug flag to 10 in all elements of my server.xml. > Looking at the log file, I cannot identifiy any error or warning from > Tomcat before it crashes. > Here is a sample: > > ... > StandardContext[/residential]: Mapped to servlet 'default' with servlet path >'/images/home_hdr.jpg' and path info 'null' and update=true > StandardEngine[Standalone]: Mapping server name 'trngyouraccount.alliant-energy.com' > StandardEngine[Standalone]: Trying a direct match > StandardEngine[Standalone]: Trying an alias match > StandardHost[localhost]: Mapping request URI '/residential/images/dropshadow.gif' > StandardHost[localhost]: Trying the longest context path prefix > StandardHost[localhost]: Mapped to context '/residential' > Authenticator[/residential]: Security checking request GET >/residential/images/dropshadow.gif > Authenticator[/residential]: Checking constraint 'SecurityConstraint[youraccount >assistance LDAP authentication]' against GET /images/dropshadow.gif --> false > Authenticator[/residential]: No applicable constraint located > Authenticator[/residential]: Not subject to any constraint > StandardContext[/residential]: Mapping contextPath='/residential' with >requestURI='/residential/images/dropshadow.gif' and >relativeURI='/images/dropshadow.gif' > StandardContext[/residential]: Trying exact match > StandardContext[/residential]: Trying prefix match > StandardContext[/residential]: Trying extension match > StandardContext[/residential]: Trying default match > StandardContext[/residential]: Mapped to servlet 'default' with servlet path >'/images/dropshadow.gif' and path info 'null' and update=true > StandardEngine[Standalone]: Mapping server name 'trngyouraccount.alliant-energy.com' > StandardEngine[Standalone]: Trying a direct match > StandardEngine[Standalone]: Trying an alias match > StandardHost[localhost]: Mapping request URI '/residential/images/homepa2.gif' > StandardHost[localhost]: Trying the longest context path prefix > StandardHost[localhost]: Mapped to context '/residential' > Authenticator[/residential]: Security checking request GET >/residential/images/homepa2.gif > Authenticator[/residential]: Checking constraint 'SecurityConstraint[youraccount >assistance LDAP authentication]' against GET /images/homepa2.gif --> false > Authenticator[/residential]: No applicable constraint located > Authenticator[/residential]: Not subject to any constraint > StandardContext[/residential]: Mapping contextPath='/residential' with >requestURI='/residential/images/homepa2.gif' and relativeURI='/images/homepa2.gif' > StandardContext[/residential]: Trying exact match > StandardContext[/residential]: Trying prefix match > StandardContext[/residential]: Trying extension match > StandardContext[/residential]: Trying default match > StandardContext[/residential]: Mapped to servlet 'default' with servlet path >'/images/homepa2.gif' and path info 'null' and update=true > StandardEngine[Standalone]: Mapping server name 'trngyouraccount.alliant-energy.com' > StandardEngine[Standalone]: Trying a direct match > StandardEngine[Standalone]: Trying an alias match > StandardHost[localhost]: Mapping request URI '/residential/images/_c60b27.gif' > StandardHost[localhost]: Trying the longest context path prefix > StandardHost[localhost]: Mapped to context '/residential' > Authenticator[/residential]: Security checking request GET >/residential/images/_c60b27.gif > Authenticator[/residential]: Checking constraint 'SecurityConstraint[youraccount >assistance LDAP authentication]' against GET /images/_c60b27.gif --> false > Authenticator[/residential]: No applicable constraint located > Authenticator[/residential]: Not subject to any constraint > StandardContext[/residential]: Mapping contextPath='/residential' with >requestURI='/residential/images/_c60b27.gif' and relativeURI='/images/_c60b27.gif' > StandardContext[/residential]: Trying exact match > StandardContext[/residential]: Trying prefix match > StandardContext[/residential]: Trying extension match > > Unexpected Signal : 11 occurred at PC=0x3981797C > Function=[Unknown.] > Lib
Re: Two instances of Tomcat
Remember that with 2 Tomcats, you need DOUBLE the memory. You may be attempting to use more memory then you have in the box. Use 'top' to watch the memory utilization and see if you are filling up on memory to create the spreadsheet thingy. You can control the memory usage of Tomcat using the -Xmx and -Xms to control heap size. The settings you list would mean that you would need, at least, 1.1gig of memory in the box to utilize both Tomcats to their potential. HTH, Ben Ricker On Tue, 2002-12-10 at 17:19, Mohbe, Sameer wrote: > Hi Folks , > Need some urgent help regarding setting up two instances > of Tomcat .Here goes the details .We used to have Apache 1.3.23 + Tomcat > 4.0.2 configuration running on Red hat 7.0.We were running two web apps > under Single instance of tomcat. To make them independent we are moving > towards Two instances of tomcat .So we installed second instance residing in > /opt/tomcat2 directory ,first being in the directory called > /opt/tomcat.Changes on server.xml were made for two different port nos.Now > Everything works ok till the point when we try to generate a report in > second web application it gives a Java.lang Out of Memory error.This Final > report feature uses the Formula 1 Software which is a e-spreadsheet.Can any > one please tell me what all settings are required for the TWO instances of > tomcat.do we need TWO copies of Worker.properties files (Coz we have only > one ) and if yes then what changes need to be done .Is the Java error > related to JVM memory settings .We have set TOMCAT_OPTS in /etc/profile for > -Xms64 and -Xmx512. > > Regards > Sameer > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: 4.1.12 dumps VM, any ideas?
On Tue, 2002-12-10 at 13:54, Shapira, Yoav wrote: > Hi, > Damn, I was just about to suggest 1.4.1_01 ;) > > I've had that error happen before on JDK 1.3 on Solaris, not W2K. The > problem was I hadn't installed the OS-level patches required by Solaris > for that JDK version. So I don't know if this applicable to your > problem... > > Yoav Shapira > Millennium ChemInformatics Just a thought: you can run java without HotSpot and see if it runs. If it does, then you are probably looking at a bug in HotSpot (THAT never happens *grin). If it does not, then you are probably looking at a problem with your system. HTH, Ben Ricker > > >-Original Message- > >From: Will Hartung [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, December 10, 2002 2:33 PM > >To: Tomcat Users List > >Subject: Re: 4.1.12 dumps VM, any ideas? > > > >As a followup, it also kills a JDK 1.4.1_01 JVM as well. :-( > > > >Thanx again! > > > >Will > > > > > >> Hi All! > >> > >> We're just porting our app to 4.1.12. After fighting classpath > problems, > >the > >> latest and greatest is this: > >> > >> From the localhost_log file, the last enry was: > >> > >> 2002-12-09 14:36:57 StandardWrapper[/myApp:invoker]: Loading > container > >> servlet invoker. > >> > >> On the stdout/stderr of the tomcat container: > >> > >> bin> sh catalina.sh run > >> Using CATALINA_BASE: C:\cygwin\tmp\tomcat\jakarta-tomcat-4.1.12 > >> Using CATALINA_HOME: C:\cygwin\tmp\tomcat\jakarta-tomcat-4.1.12 > >> Using CATALINA_TMPDIR: > C:\cygwin\tmp\tomcat\jakarta-tomcat-4.1.12\temp > >> Using JAVA_HOME: c:\JDK1.3 > >> [INFO] Registry - -Loading registry information > >> [INFO] Registry - -Creating new Registry instance > >> [INFO] Registry - -Creating MBeanServer > >> [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 > >> Starting service Tomcat-Standalone > >> Apache Tomcat/4.1.12 > >> # > >> # HotSpot Virtual Machine Error, Internal Error > >> # Please report this error at > >> # http://java.sun.com/cgi-bin/bugreport.cgi > >> # > >> # Error ID: 43113F32554E54494D45110E4350500290 > >> # > >> > >> W2K with Cygwin and JVM 1.3 > >> > >> java version "1.3.1_01" > >> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01a) > >> Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode) > >> > >> Any ideas on how to hunt this kind of thing down? Are app does have a > >> startup servlet, so it's no doubt within that, but I was hoping for > some > >> general ideas on why this is exploding. > >> > >> Thanx! > >> > >> Regards, > >> > >> Will Hartung > >> ([EMAIL PROTECTED]) > >> > >> > >> > >> > >> > >> > >> > >> -- > >> To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >> For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > >> > >> > > > > > > > >-- > >To unsubscribe, e-mail: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > >For additional commands, e-mail: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Tomcat examples - reply to Carlos
; Marking this application > > unavailable due to previous error(s) > > 2002-12-07 11:47:30 StandardManager[/examples]: > > Seeding random number > > generator > > class java.security.SecureRandom > > 2002-12-07 11:47:30 StandardManager[/examples]: > > Seeding of random number > > generator has been completed > > 2002-12-07 11:47:30 StandardContext[/examples]: > > Context startup failed due > > to > > previous errors > > > > > > > > localhost_admin_log.txt Tells:2002-12-07 11:47:30 > > ContextConfig[/admin]: > > Marking this application unavailable due to previous > > error(s) > > 2002-12-07 11:47:30 StandardManager[/admin]: Seeding > > random number generator > > class java.security.SecureRandom > > 2002-12-07 11:47:30 StandardManager[/admin]: Seeding > > of random number > > generator > > has been completed > > 2002-12-07 11:47:30 StandardContext[/admin]: Context > > startup failed due to > > previous errors > > > > > > and catalina.out Tells: > > > > Starting service Tomcat-Standalone > > Apache Tomcat/4.1.12 > > org.xml.sax.SAXParseException: The string "--" is > > not permitted within > > comments. > > at > > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException > > (Unknown Source) > > at > > > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLScanner.scanComment(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset > > (Unknown Source) > > at > > > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch > > (Unknown Source) > > at > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > > (Unknown Source) > > at > > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > Source) > > at > > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > Source) > > at > > org.apache.xerces.parsers.XMLParser.parse(Unknown > > Source) > > at > > > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown > > Source) > > at > > > org.apache.commons.digester.Digester.parse(Digester.java:1514) > > at > > > org.apache.catalina.startup.ContextConfig.tldScanStream > > (ContextConfig.java:977) > > at > > org.apache.catalina.startup.ContextConfig.tldScanTld > > (ContextConfig.java:1006) > > at > > org.apache.catalina.startup.ContextConfig.tldScan > > (ContextConfig.java:870) > > at org.apache.catalina.startup.ContextConfig.start > > (ContextConfig.java:647) > > at > > > org.apache.catalina.startup.ContextConfig.lifecycleEvent > > (ContextConfig.java:243) > > at > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > > (LifecycleSupport.java:166) > > at org.apache.catalina.core.StandardContext.start > > (StandardContext.java:3493) > > at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > at > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > > at > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > at org.apache.catalina.core.StandardEngine.start > > (StandardEngine.java:347) > > at org.apache.catalina.core.StandardService.start > > (StandardService.java:497) > > at org.apache.catalina.core.StandardServer.start > > (StandardServer.java:2189) > > at > > > org.apache.catalina.startup.Catalina.start(Catalina.java:510) > > at > > > org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > at > > > org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > at java.lang.reflect.Method.invoke(Native Method) > > at > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > [ERROR] Digester - -Parse Fatal Error at line 307 > > column 39: The string "--" > > is > > not permitted within comments. > > > "--" > > is not permitted within comments.> > > org.xml.sax.SAXParseException: The string "--" is > > not permitted within > > comments. > > at > > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException > > (Unknown Source) > > at > > > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLScanner.scanComment(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown > > Source) > > > > > > Thank?s for try to help me, and i hope that you can found my problem. > > === message truncated === > > > __ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > 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]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: I don´t understand the objective of thisopen list !
My advice: don't use it. We "geeks" who take the time to LEARN about the technologies we use will go about our business, using Tomcat. If you do not like it, please find another list to flame-bait on. Btw, I am running an App that has roughly 20k hits per day using a 99% dynamically generated web app (this is a rather small web app compared to others out there on the list) and I rely on it in a "life or death situation" (i.e., I get fired if I cannot keep up a 99% uptime requirement for 24/7/365). Tomcat works perfectly. Ben Ricker On Mon, 2002-12-09 at 16:04, Mike DiChiappari wrote: > You're correct. There is lots of documentation out there. > Unfortunately, it belongs with most things that are open sourse - in > the trash. Jakarata/tomcat is particularly bad. The people that > manage it should be ashamed of themselves (I hope they are not > building software I have to rely on in life and death situations). > > Mike > > > >I disagree. There's lots of documentation out there. > > > >It's just not blasted into peoples' faces, nor is it bound into a nice > >little book and shrinkwrapped. You have to go find it, and you have to read > >it. Most people are too lazy to do either, they want everything handed to > >them. > > > >John > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Thread dump
I am intrigued by this feature; it would help with the debugging of a application. I tried to test it against tomcat but I get nothing on stderr (i.e., nothing in /var/log/messages, terminal, directory I am in, catalina.out, or any of the logs for Tomcat). Could you expand on what behavior you see when you send the -3 to Tomcat's PID? Thanks, Ben Ricker Wellinx.com On Fri, 2002-12-06 at 12:29, Schnitzer, Jeff wrote: > FYI, no it doesn't, it just causes the (Sun, at least) JVM to dump a > list of threads and their stacks to stderr. Note that it's the real > stderr, not System.err. This is a JVM feature. It can be done anytime > and is a *really* useful debugging feature. > > Jeff > > > -Original Message- > > From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 06, 2002 8:01 AM > > To: Tomcat Users List > > Subject: RE: Thread dump > > > > Beg your pardon? would that not actually kill the process, rather than > > displaying the thread dump? > > > > And what if one wants to see the thread dump right from the moment > tomcat > > starts up? > > > > Thanks, > > manav. > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 06, 2002 9:18 PM > > To: Tomcat Users List > > Subject: Re: Thread dump > > > > > > > > kill -3 > > > > RS > > > > > > > > "Manavendra > > Gupta" To: "Tomcat Users > > List" > > <[EMAIL PROTECTED]> > > <[EMAIL PROTECTED]> > >cc: > > 12/06/02 09:53 AMSubject: Thread dump > > Please respond to > > "Tomcat Users > > List" > > > > > > > > > > > > > > I have tomcat 4.1 running on Linux. How do i see the thread dump? The > > startup.sh on linux just starts it in the background, while i could > use > > startup.bat on windows and get the thread dump. > > > > thanks, > > manav. > > > > > > -- > > 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]> > > > > > > -- > > To unsubscribe, e-mail: <mailto:tomcat-user- > > [EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:tomcat-user- > > [EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: Does web.xml inherit?
On Tue, 2002-11-26 at 09:01, [EMAIL PROTECTED] wrote: > hey i am facing they same problem > sometime we are facing session time outs > in spite of me setting session to never expire on first jsp page > session.setMaxInactiveInterval (-1); > DO U THINK I SHOULD CHANGE THIS Conf/web.xml Possibly. Timeouts can be a tricky business because of all the issues involved. In conf/web.xml there is a session properties where the default session timeout is 30 minutes. If that is not long enouhg, you can change it there. It does work; we tested it thoroughly (setting it to one minute, 30 minutes, and 60 minutes. It worked). Ben Ricker Wellinx.com > > -Original Message----- > From: Ben Ricker [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 9:49 AM > To: Tomcat Users List > Subject: RE: Does web.xml inherit? > > > On Tue, 2002-11-26 at 04:19, Roberts, Eric wrote: > > As far as I know the sequence is: > > > > Default Context > > App Context > > /conf/web.xml > > /WEB-INF/web.xml > > > > So your /WEB-INF/web.xml has the final say, provided that overrides to the > previous settings have been allowed. > > Actually, we found that this is not correct. The "Default Session > Configuration" section is only definable in the /conf/web.xml. We tried > putting it into the /WEB_INF/web.xml and it did nothing to change the > session timeout. > > I did not try removing the session timeout parameter, however. Anyway, > at least for the session parameters, the /conf/web.xml has the final > say. > > Thanks for the help, > > Ben Ricker > Wellinx.com > > > > -Original Message- > > From: Ben Ricker [mailto:[EMAIL PROTECTED]] > > Sent: Montag, 25. November 2002 23:24 > > To: Tomcat Users List > > Subject: Does web.xml inherit? > > > > > > I am running Tomcat 4.0.6 on Solaris. We are getting complaints of > > session timeouts from users. Looking around I found the "Default Session > > Configuration" section of the web.xml in the /conf directory. The app is > > in its own context defined by its own web.xml. > > > > So my question is: does the web.xml inherit the values from the web.xml > > in the /conf directory (let us call it the "main" web.xml)? Or are the > > default values listed in the main web.xml the default values for ALL > > other contexts if they are not explicitely changed in the other > > contexts? > > > > Thanks, > > > > Ben Ricker > > Wellinx.com > > > > > > > > > > -- > > 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]> > > > > > > > > > > -- > 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]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>