Re: Why "/ 1000 * 1000

2005-09-14 Thread Tom Anderson
I'm assuming ifModifiedSince is already a multiple of 1000 (these are times in msec). In that case, the following comparison would do the same thing: if (ifModifiedSince < (lastModified - 999)) or if (ifModifiedSince <= (lastModified - 1000)) But I suppose that /1000*1000 might be

Re: cvs commit: jakarta-tomcat-connectors/jk/native/common jk_lb_worker.c jk_shm.h jk_status.c

2005-06-13 Thread Tom Anderson
Mladen, I appreciate you addressing this issue. But isn't this fix just delaying the problem? An IEEE double has 52 bits of mantissa versus 32 bits for size_t. So the problem will now occur at 4 PB (petabytes). Sure, that's a lot of bytes and my webservers would never see this kin

Re: mod_jk glitches

2005-06-09 Thread Tom Anderson
at should last about 1000 days before rolling over. I suggest that maybe doubles would be better for the read/write bytes. Although I still prefer a model that doesn't break at rollover (reset all counters or moving averages for example). On Jun 9, 2005, at 8:13 PM, Tom Anderson wrote:

Re: mod_jk glitches

2005-06-09 Thread Tom Anderson
f requests Wr Number of bytes transferred Rd Number of bytes read Busy Current number of busy connections Max Maximum number of busy connections Hoping this time it's readable... On Jun 9, 2005, at 8:13 PM, Tom Anderson wrote: I hope that the below "snapshot"

mod_jk glitches

2005-06-09 Thread Tom Anderson
I hope that the below "snapshot" of my jkstatus shows up okay. This is from my current setup using mod_jk 1.2.13 and using the method=Traffic setting. What's not obvious from this static snapshot is that the middle webserver (webl6) is currently getting all requests. This is in spite

Re: Sudden Shutdown - EXCEPTION_ACCESS_VIOLATION

2005-03-11 Thread Tom Anderson
I've been getting this behavior on exactly one of our several web servers. I haven't narrowed it down but suspect a possible hardware issue (RAM?). It always occurs within the jvm (jvm.dll in your case) so it could be a bug in the JVM too I suppose. We're going to try to move our disk

Re: JDBCStore Downgrade (Tomcat4 vs. Tomcat 5)

2005-01-05 Thread Tom Anderson
It looks like the list stripped the image attachments. Let me know if you're interested and I'll forward you the original email with the pictures. ~Tom On Jan 5, 2005, at 4:59 PM, Tom Anderson wrote: FYI, We applied the 2 patches described in this thread with dramatic effects on o

Re: JDBCStore Downgrade (Tomcat4 vs. Tomcat 5)

2005-01-05 Thread Tom Anderson
volunteer to make the patch to whatever branches it's needed on. ~Tom p.s. I hope sending a picture to the list isn't taboo... if so, sorry. On Dec 30, 2004, at 8:53 PM, Tom Anderson wrote: And to fix the loading of too many sessions while processing expires, I suggest the attached pat

Re: JDBCStore Downgrade (Tomcat4 vs. Tomcat 5)

2004-12-30 Thread Tom Anderson
h Tomcat 5. Hopefully you will accept one or both to make Tomcat more robust! Let me know if you want me to apply either or both patches to the HEAD (or whatever). And I would also be willing to do doc patches as needed. Thanks, ~Tom On Dec 29, 2004, at 7:16 PM, Tom Anderson wrote: I woul

Re: JDBCStore Downgrade (Tomcat4 vs. Tomcat 5)

2004-12-30 Thread Tom Anderson
Frequency; > support.firePropertyChange("storeChecksFrequency", >new Integer(oldStoreChecksFrequency), >new Integer(this.storeChecksFrequency)); > > } ~Tom On Dec 29, 2004, at 7:16 PM, Tom Anderson wrote: I would like to share m

JDBCStore Downgrade (Tomcat4 vs. Tomcat 5)

2004-12-29 Thread Tom Anderson
I would like to share my experiences in upgrading from Tomcat 4 to Tomcat 5 and offer some suggestions for improvement (to Tomcat 5) based on them. This message got a little long but I hope somebody in the know will find the time to read it and help me figure out how to rectify my problems so

Re: [VOTE] 4.1.31 maintenance release

2004-08-20 Thread Tom Anderson
The 4.1.31 maintenance release should happen: [ X ] Yes [ ] No I would benefit directly from many of the fixes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Where's 4.1.31?

2004-08-20 Thread Tom Anderson
Patching Tomcat 4.1.30 is pretty much what I have done. I spent a lot of effort getting our installation working in a stable way. And a lot of that effort was in applying patches similar to the ones that are in the baseline but have never been released. As far as moving to Tomcat 5.x, I hav

Where's 4.1.31?

2004-08-19 Thread Tom Anderson
There have been some important bug fixes in the baseline since April that haven't made it to a release version yet. Are there plans to release another version of Tomcat 4.1? The changes I am interested in some fixes that were done by Glenn and Markt but some thought they might be too risky.

Re: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session JDBCStore.java PersistentManagerBase.java StandardManager.java StandardSession.java StoreBase.java

2004-04-30 Thread Tom Anderson
I'm just a list lurker (so my opinion doesn't "count") but I'm really happy to see these fixes. I have had to override JDBCStore and PersistentManagerBase at my site to make similar fixes so that things work acceptably (yes, I submitted patches but they weren't accepted). Having these fixes

Re: [PATCH] JDBCStore-howto.html Updated

2003-08-26 Thread Tom Anderson
elease docs anymore. The JDBCStore is documented in /webapps/tomcat-docs/config/manager.xml . And those docs are up to date. Perhaps this file should be removed from CVS. Regards, Glenn Tom Anderson wrote: I noticed that the JDBCStore-howto.html no longer reflects reality so I updated it

[PATCH] JDBCStore-howto.html Updated

2003-08-25 Thread Tom Anderson
I noticed that the JDBCStore-howto.html no longer reflects reality so I updated it. Here's my patch. ~Tom Index: JDBCStore-howto.html === RCS file: /home/cvspublic/jakarta-tomcat-4.0/catalina/docs/JDBCStore-howto.html,v retrieving

Re: StandardSession class question

2003-03-06 Thread Tom Anderson
I agree. It also messes with session persistence. On Wednesday, March 5, 2003, at 06:21 PM, Michael Tildahl wrote: It looks like the StandardSession class, in the 4.x line, uses two variables thisAccessedTime and lastAccessedTime to keep track of the sessions last accessed time. The method a

Re: TC on Suse 8.1, urgent, please

2003-03-06 Thread Tom Anderson
Have you read this document? http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html On Thursday, March 6, 2003, at 09:58 AM, Uros Kotnik wrote: Hi I know this is for tomcat-user but maybe I can get faster answer here. I'm using TC 4.1.18 I developed app in W2K environment, but

Re: UTF-8 characters

2003-03-04 Thread Tom Anderson
It would be nice if Tomcat detected the encoding. I posted a similar question with no response. Here's how I think you should handle this. // call before getting anything from the reqest request.setCharacterEncoding("UTF-8"); Then all strings will be pulled as UTF-8 which is equivalent to the

Character encoding

2003-02-26 Thread Tom Anderson
I have a question about the Tomcat implementation of the Java Servlet Spec (2.3) with regards to request character encoding. Section 4.9 of the spec reads as follows: SRV.4.9 Request data encoding Currently, many browsers do not send a char encoding qualifier with the Content- Type header, le

[PATCH] Added "app" column to tomcat$sessions

2003-02-12 Thread Tom Anderson
I wrote a patch to JDBCStore.java that adds a new column to the tomcat$sessions table to hold information about the webapp that is trying to save the session. The need for this comes when you run multiple webapps which each may have classes in session that are unique to the webapp. As written,

session persistence with multiple webapps

2003-02-10 Thread Tom Anderson
I just discovered another feature of the the JDBCStore. If your webapps save their own classes in the Session (as webapps are wont to do), then when JDBCStore runs its checks to clean the database, it will try to pull in ALL sessions including those from other webapps. Becasue the classes fro

Re: immediate Session backup

2003-02-09 Thread Tom Anderson
On Saturday, February 8, 2003, at 10:59 PM, Tom Anderson wrote: I would like the PersistentManagerBase to immediately backup a session if the maxIdleBackup parameter is zero. The reason I want this behavior is that, in a load-balanced architecture, the next request might go to another

multiple session backups

2003-02-09 Thread Tom Anderson
I've been noticing that sessions are backed up over and over until they are swapped out, even if they haven't been accessed since the first backup. This could put a pretty heavy burden on the database (or file) store, especially if the checkInterval is low. I put a "hack" into my version to c

StandardSession.getLastAccessedTime()

2003-02-09 Thread Tom Anderson
Can anyone explain to me why the getLastAccessedTime() method returns the PREVIOUS accessed time? The Java docs for HttpSession suggest this should be the "last time the client sent a request associated with this session". To me, that means it should be updated to the current time when acces

immediate Session backup

2003-02-08 Thread Tom Anderson
I would like the PersistentManagerBase to immediately backup a session if the maxIdleBackup parameter is zero. The reason I want this behavior is that, in a load-balanced architecture, the next request might go to another machine which would need to pull it out of store. Does this sound like a

Re: [TOMCAT 4.1.18] StandardSession.setId() found incohesive

2003-02-05 Thread Tom Anderson
I'm not quite sure why it does but I am finding the implementation of this class in particular to be somewhat flawed. For example, the recycle() method doesn't remove a session from memory (via the Manager) but expire() does. So, when something is recycled, it is actually left on the list o

[PATCH] JDBCStore.keys() doesn't scale well

2003-02-04 Thread Tom Anderson
As currently written, JDBCStore pulls session IDs from the database using a query of the form: SELECT COUNT(s.id), c.id FROM tomcat_sessions s, tomcat_sessions c GROUP BY c.id; While this query is a clever way to get the count back as part of the query, it does not scale well to larger numbers

Re: MacOS X - mod_jk.so

2003-02-03 Thread Tom Anderson
Looks like you may need the dlcompat stuff. Check out this URL: http://www.geektimes.com/macintosh/os/x/10_0/and/tomcat_install.html On Sunday, February 2, 2003, at 09:01 PM, Ro wrote: Hi, i am doing Java JSP coding and I installed TOMCAT 4.1.18. Now I would like to link it with apache. I've

Re: JDBCStore Connection Pooling

2003-01-30 Thread Tom Anderson
19 +847,14 @@ } } -try { -conn.close(); -} catch (SQLException e) { -; -} - this.preparedSizeSql = null; this.preparedKeysSql = null; this.preparedSaveSql = null; t

Re: JDBCStore Connection Pooling

2003-01-30 Thread Tom Anderson
connection pooling, etc. Glenn Tom Anderson wrote: I have been trying to use the JDBCStore stuff and found it to be a little unstable especially when the database connections have problems (or when the database is bounced). So, I decided to make some modifications that would allow it to drop

JDBCStore Connection Pooling

2003-01-30 Thread Tom Anderson
I have been trying to use the JDBCStore stuff and found it to be a little unstable especially when the database connections have problems (or when the database is bounced). So, I decided to make some modifications that would allow it to drop connections on SQLExceptions and maintain a small