Re: Log analysis with Apache, mod_jk and 2 Tomcat instances

2006-09-12 Thread Marc Richards
Also you can configure Apache to log the value of the session cookie (if you're using session cookies -- LogFormat "%{JSESSIONID}C..."), which includes the lb route so that you even know which instance of Tomcat took the request. -marc --- Tim Funk <[EMAIL PROTECTED]> wrote: > If apache is servi

Re: Persistent session after browser restart, cookie expiration

2006-09-11 Thread Marc Richards
Could be wrong, but it doesn't sound like you really want to use sessions for this usage because session attributes are stored in memory in Tomcat (unless you're using a backup manager). In time, you will have many sessions and cap your physical memory. It sounds like you just need to use a regul

Re: configuration setting to disable URL sessions?

2006-09-08 Thread Marc Richards
If you're using apache httpd as a front end you can handle this with a rewrite rule: RewriteRule (.*);jsessionid.* $1 I do this for a different reason - when my users go to the top level url they are redirected to a login page that includes the jsessionid in the new url. They then bookmark the p

RE: Session cookie location?

2006-08-11 Thread Marc Richards
By default, session cookies don't get stored on disk. If the max age attribute of a cookie is 0 or less, the cookie resides only in a browser's memory and disappears entirely once the browser session is ended. In order to make it get stored to disk, you have to modify the cookie to have a longer

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Marc Richards
Supposing that your secure area is using a constantly different URL path than your non-secure pages you could create a filter to modify the default path for the jsessionid cookie to be valid only for non-secure pages. For example, if your non-secure site is at http://mysite.com/public/... and you

Re: BOOBIES!

2006-07-26 Thread Marc Richards
Dude. If you don't like boobies so much, stop sending them to everybodys' mailboxes. Have your little war outside of my inbox so I can work. -marc --- Dakota Jack <[EMAIL PROTECTED]> wrote: > With the huge number of issue covered in the past > and what I consider to be > very good documentatio

RE: Running multiple instances of 5.5x as Win services

2006-07-10 Thread Marc Richards
Thanks for the quick answer Peter, this was my suspicion - glad to have it confirmed. -marc --- Peter Crowther <[EMAIL PROTECTED]> wrote: > > From: Marc Richards [mailto:[EMAIL PROTECTED] > > Also, can someone explain the difference between > > CATALINA_HOME and C

Re: Running multiple instances of 5.5x as Win services

2006-07-10 Thread Marc Richards
mailing list archives here: > http://www.nabble.com/Tomcat---User-f342.html > or here: > http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2 > > -- > Len > > On 7/10/06, Marc Richards <[EMAIL PROTECTED]> wrote: > > Hi again, sorry, but I forgot to m

Re: Running multiple instances of 5.5x as Win services

2006-07-10 Thread Marc Richards
environment variables? Thanks, -marc --- Marc Richards <[EMAIL PROTECTED]> wrote: > Hi all, I would like to run multiple instances of > Tomcat on a single Windows box for the purposes of > instantiating multiple jvm's (to keep the heap small > and use more of the system's avail

Running multiple instances of 5.5x as Win services

2006-07-10 Thread Marc Richards
Hi all, I would like to run multiple instances of Tomcat on a single Windows box for the purposes of instantiating multiple jvm's (to keep the heap small and use more of the system's available memory and cpu) and then balance between them. I currently have one instance setup as a service - this wa

Re: JNDI Datasource Problem

2006-02-20 Thread Marc Richards
> enableLookups="false" > redirectPort="8443" protocol="AJP/1.3" /> > > > > > > > > > > > > > > > > > > > className="org.apache.catalina.realm.UserDataba

Re: JNDI Datasource Problem

2006-02-20 Thread Marc Richards
I didn't see any mention of the Tomcat version here, but in 5.5 the part of the config is no longer used. All paramters go in the tag with name="value" format just like name and auth from your example below. i.e. maxIdle="30". -marc --- Mark Whitby <[EMAIL PROTECTED]> wrote: > Hey guys, > >

Re: Manually setting up Tomcat5.0 as service on Windows server 2003 : some questions

2006-01-23 Thread Marc Richards
Wouldn't you find it easier to just install Tomcat with the 'run as a service' option? Then all you have to do is change the service that is created for you to run as a secure user and you're done. -marc --- ZedroS Schwart <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to manually setting up T

Re: PreparedStatement w/ Connection Pooling

2006-01-13 Thread Marc Richards
sing the main attribute to change is > the following: > > > poolPreparedStatements="true" > > > > > > Suppose that this is set to true, how do I > access these > > > pooled statement? My > > > setup is exactly as you described, so thi

RE: PreparedStatement w/ Connection Pooling

2006-01-12 Thread Marc Richards
If you're already using pooling then I imagine you already have a resource defined for the pool in either server.xml or in the context xml file. To pool prepared statements, which is desireable, you should configure it to look something like this in Tomcat 5.5: Note that in this example I'

Re: Apache/Tomcat security

2005-12-29 Thread Marc Richards
The best place to begin is with a security firm or consulting firm that provides security audits and has professionals who are already experienced with tomcat and apache httpd (along with your OS, DB and network architecture). It's never a good idea to skimp where security is concerned and there i

Re: Performance degradation under load

2005-12-16 Thread Marc Richards
Thanks - I'm actually looking at p6spy right now and am going to see if it will help to find out if my problem is in the statements themselves. But this would seem strange to me because remember that each page loads very quickly when there is no load on the web servers. It's only when I put some

Re: Performance degradation under load

2005-12-16 Thread Marc Richards
Yes, we do joins where appropriate and I guess I should clarify the inaccuracy of my initial statement - there is one connection per request (for each individual sql), rather then for each unique table. -marc --- Jess Holle <[EMAIL PROTECTED]> wrote: > Caldarale, Charles R wrote: > > >This real

Re: Performance degradation under load

2005-12-15 Thread Marc Richards
gt; something odd is definitely happening. at this > point, it sounds you've > exhausted all the obvious and not so obvious > options, so it's probably most > fruitful to profile it. > > peter > > > On 12/16/05, Marc Richards <[EMAIL PROTECTED]> wrote

Re: Performance degradation under load

2005-12-15 Thread Marc Richards
t the only way would be to start > tomcat using a profiler > and see exactly what is blocking. > > peter > > > On 12/15/05, Marc Richards <[EMAIL PROTECTED]> wrote: > > > > No, the db is actually our world-wide enterprise > > server. It's got

RE: Performance degradation under load

2005-12-15 Thread Marc Richards
hould I see when I run netstat directly after starting Tomcat and before I make any calls to the web app? Should I see 50 connections (I don't)? -marc --- "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > > From: "Marc Richards" <[EMAIL PROTECTED]> >

Re: Performance degradation under load

2005-12-15 Thread Marc Richards
several thousand > > DB connections. that seems a bit odd to me. > > > > peter lin > > > > > > On 12/15/05, Martin Gainty <[EMAIL PROTECTED]> > wrote: > >> > >> Marc- > >> what types of Coyote Point Equalizers are you > using? >

Re: Fw: Performance degradation under load

2005-12-15 Thread Marc Richards
thousand > DB connections. that seems a bit odd to me. > > peter lin > > > On 12/15/05, Martin Gainty <[EMAIL PROTECTED]> > wrote: > > > > Marc- > > what types of Coyote Point Equalizers are you > using? > > What does the Doc say about co

Performance degradation under load

2005-12-15 Thread Marc Richards
I have a performance issue that I'm having trouble with - perhaps somebody has seen this sort of thing before and can help me out. Problem: Under no load my page responses average about 1.2 seconds (according to jmeter tests), which is pretty good considering the heavy jdbc useage of my applicatio

Re: Connecting Tomcat and Apache using mod_jk and jni (deprecated?) or ajp13

2005-12-12 Thread Marc Richards
this figured out completely and truely understand what I'm doing I promise to spend some time contributing to the docs! ;-) Thanks for the tips - I'll try them out and keep my fingers crossed. -marc --- Bill Barker <[EMAIL PROTECTED]> wrote: > > "Marc Richards"

Connecting Tomcat and Apache using mod_jk and jni (deprecated?) or ajp13

2005-12-09 Thread Marc Richards
I have Apache 2.x and Tomcat 5.5 connected using mod_jk ajp13 workers (win32) and running fine. However, under heavy load (using jmeter) I start to get mod_jk errors indicating that the connection is closed and is unable to be reopened. This essentially results in a dead server for a while. The