Q on Tomcat + Apache sessions

2003-07-16 Thread joseph lam
Tomcat)? Joseph Lam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

JK2 performance tuning

2003-07-17 Thread joseph lam
I just got JK2 2.0.2 installed and working with Apache 2.0.47. Since my site will have high traffic and lots of concurrent connections, what parameters should I fine tune (other than the min/maxProcessor in server.xml) ? How does Apache manage its jk2 connections to Tomcat? Joseph Lam

Re: JK2 performance tuning

2003-07-17 Thread joseph lam
So nothing related to the jk2 connection between Apache and TC can be tuned? How many connections will Apache make? Auto grow? Joseph Lam Simon Pabst wrote: You can tune CoyoteConnector acceptCount and timeout values. acceptCount=10 should be fine, though you never know (test test test

Re: JK2 performance tuning

2003-07-18 Thread joseph lam
Apache manage its jk2 connections to Tomcat? Joseph Lam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: heap size

2003-07-24 Thread joseph lam
Is there a rule-of-thumb for setting the heap size based on how many concurrent Tomcat processors/threads? Mine are mostly basic jsps and servlets generating HTML. As I'll be running several Tomcat instances for different apps, I need to allocate my 512M RAM to each Tomcat. Joseph Shapira,

how to get tomcat's tmp dir path?

2003-08-14 Thread joseph lam
any way to get the absolute path to my $CATALINA_BASE or $CATALINA_BASE/temp directory? Thx. Joseph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tomcat 4.1.18/24 unstable (UPDATE)

2003-05-27 Thread joseph lam
. That seems to confuse Tomcat. After fixing the Javascript the problem is largely gone. Joseph joseph lam wrote: I also had the same problem with both 4.1.18 and 24. Now I resort to setting a high maxProcessor (e.g. 800) and restart the tomcat once the connections are reaching that. I also found

Re: How to detect expired session vs. no session? (Solved)

2004-12-10 Thread Joseph Lam
Steve Kirk wrote: By default: 1. getSession(true)!=null 2. getSession(false)!=null But if a JSP page contains the tag %@ page session=false %, then: 1. getSession(true)!=null 2. getSession(false)==null In the last of these 4 cases, do you mean that the implicit JSP session object returns

Cluster: how to set mcast interface for dual LAN card?

2005-02-17 Thread Joseph Lam
Hi, If I have two LAN cards and I want my Tomcat to mcast through one of them, what parameter should I set? Regards, Joseph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cluster: Is session's lastAccessedTime got replicated?

2005-02-23 Thread Joseph Lam
Hi, It seems that in my 4-node cluster (TC 5.5.8), the session.getLastAccessedTime() only returns the last accessed time in each particular node only. Is this normal? How can I get the last accessed time of a session across the whole cluster? Regards, Joseph Lam

Re: Cluster: Is session's lastAccessedTime got replicated?

2005-02-23 Thread Joseph Lam
Found that only when a replication is explicitly triggered by set/removeAttribute(), the other nodes' session.getLastAccessedTime() will be synchronized. Joseph On Thu, 24 Feb 2005, Joseph Lam wrote: Hi, It seems that in my 4-node cluster (TC 5.5.8), the session.getLastAccessedTime() only

Re: Cluster: how to set mcast interface for dual LAN card? (SOLVED)

2005-02-23 Thread Joseph Lam
Lists wrote: there is an attribute mcastBindAddr that allows you to bind to the interface. Joseph Lam wrote: Hi, If I have two LAN cards and I want my Tomcat to mcast through one of them, what parameter should I set? Regards, Joseph

Cluster: will session listeners got called again after replication?

2005-02-23 Thread Joseph Lam
Anyone knows when a session is replicated to other nodes, will the HttpSessionBindingListener and HttpSessionAttributeListener objects be notified again? On the receiver nodes, how can I detect when a session from the sender node comes in so that I can do something with it? Joseph

JSP page buffering problem

2005-02-23 Thread Joseph Lam
In my JSP pages, I have already set a page buffer size sufficiently large so that it can hold the whole page before having to flush. However, I still occasionally got exceptions when I try to forward the request in the middle, complaining that it can't forward the request as some content is

workers.properties: cache_timeout/socket_timeout/...

2005-02-24 Thread Joseph Lam
Anyone familiar with the tuning of the timeout settings? cache_timeout socket_timeout recycle_timeout prepost_timeout connect_timeout reply_timeout There are so many timeout settings but the doc online is a bit confusing to me. I don't know which value is used under different situations... e.g.:

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-27 Thread Joseph Lam
when the session is replicated, the session still lives on the other Tomcat machines. Sorry for my sometimes bad English ;) //Jesper -Ursprungligt meddelande- Från: Joseph Lam [mailto:[EMAIL PROTECTED] Skickat: den 24 februari 2005 08:44 Till: Tomcat Users List Ämne: Cluster

Production cluster crashed with SEVERE: TCP Worker thread... error

2005-07-14 Thread Joseph Lam
/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster Regards, Joseph Lam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Production cluster crashed with 'SEVERE: TCP Worker thread...' error

2005-07-14 Thread Joseph Lam
/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster Regards, Joseph Lam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional