Apache access log timestamp issue

2005-05-02 Thread Simon Zeng
Hi all, I have a question about what timestamp means in access.log files. It says it's the time when apache server finish process the request from the client in the online document. However I found the following entries in the access.log: xxx.xxx.xxx.xxx [01/May/2005:11:41:45 -0400] "GET ..."

CoyoteConnector

2005-04-07 Thread Simon Zeng
Hi, I am in the process of changing my JK connector from Ajp13Connector to CoyoteConnector. I have encountered some weird behaviors with the new Connector that never happens with the old one. Since I do a lot of Applet-Servlet communication via HttpURLConnection, I've getting StreamCorruptedExce

content_length/content_type

2005-03-21 Thread Simon Zeng
Hi, Does anyone know what is the default behavior on "Content-Length" header for tomcat? If I do not set it in the http request will tomcat still able to handle the binary data in the content correctly? I do set the "Content-Type" to "application/octet-stream" btw. Thanks, Simon --

invalid stream header

2005-03-21 Thread Simon Zeng
Hi, I've been getting the following exception on tomcat when I tried to send serialized data via HttpURLConnection to the servlet from applet. java.io.StreamCorruptedException: invalid stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737) at jav

RE: multiple tomcat instance and log4j

2004-10-13 Thread Simon Zeng
ral batch files that do this for various clients. Of course, once you have a "merged" and sorted log file, any log processor should analyze it. Hope this helps. Bob On Tue, 2004-10-12 at 14:20, Simon Zeng wrote: > Thanks for the quick response. Seperate logs for each tomcat was my p

RE: multiple tomcat instance and log4j

2004-10-12 Thread Simon Zeng
Thanks for the quick response. Seperate logs for each tomcat was my proposal too. But people like to have an easy way to view them as a whole. A nice merge tool would be nice. The first and minumum requirement for the tool is to merge and sort all log records by time so that it can really be viewed

RE: multiple tomcat instance and log4j

2004-10-12 Thread Simon Zeng
answer my questions below, that will be greatly appreciated. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 6:32 PM To: 'Tomcat Users List' Subject: multiple tomcat instance and log4j Hello, I have a question here. Our a

multiple tomcat instance and log4j

2004-10-11 Thread Simon Zeng
Hello, I have a question here. Our application is running under multiple tomcat intance. We have our own plan logging mechanism. We are moving to use log4j to replace in-house one. 1. Would it be better to keep one log for each tomcat instance or all share the same log? a. If former, how can we c

problems with apache/tomcat

2004-09-30 Thread Simon Zeng
Hello, This has gradually become a nightmare here. So I turned to here for help. We are 24 X 7 service provider and using apache/tomcat as our application server. We have one apache and 3 tomcat in a clutering/load balancing environment. Very frequently, we saw exceptions like "java.io.S

Does anyone here know any applet user group?

2004-08-10 Thread Simon Zeng
Hi all, Sorry to disturb those who are not interested in this. I know this is not the place to ask applet question. Please anyone tell me where to find a good applet user/news group so I can post my questions, sorry and thanks again, -Simon -Original Message- From: Shapira, Yoav [mailto:

RE: Applet in tomcat clustering

2004-07-13 Thread Simon Zeng
clustering turned on and working properly, you should be good to go Filip - Original Message - From: "Simon Zeng" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday, July 12, 2004 2:40 PM Subject: RE: Applet in tomcat clustering

RE: Applet in tomcat clustering

2004-07-12 Thread Simon Zeng
: Re: Applet in tomcat clustering you will need to send up cookies just like the HTTP protocol says in order to keep state Filip - Original Message - From: "Simon Zeng" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday,

RE: Applet in tomcat clustering

2004-07-12 Thread Simon Zeng
My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate between applet and server. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:51 PM To: 'Tomcat Users List' Subject: Applet in tomcat clustering

Applet in tomcat clustering

2004-07-12 Thread Simon Zeng
Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sen

logrotate and cronolog for log rotation

2004-05-24 Thread Simon Zeng
Hi, Is there anyone here using cronolog and/or logrotate? I could use them for access.log but could not make them work for mod_jk.log and haven't tried error_log and all ssl logs yet. Any experience and insights would be greatly appreciated. Thanks, -Simon

workers.properties question

2004-05-21 Thread Simon Zeng
Hi, I have a question about workers.properties setting In mod_jk.log, I have JkMount /* loadbalancer In workers.properties, I have worker.list = worker1, worker2, loadbalancer(1) #worker1 configuration #worker2 configuration #---Load balancer worker --

RE: aparche log backup and cleanup

2004-05-20 Thread Simon Zeng
log backup and cleanup Hi, Logrotate: http://www.rt.com/man/logrotate.8.html. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Simon Zeng [mailto:[EMAIL PROTECTED] >Sent: Thursday, May 20, 2004 10:05 AM >To: 'Tomcat Users List' >Subj

aparche log backup and cleanup

2004-05-20 Thread Simon Zeng
Hello, Our aparche access.log is getting bigger & bigger. I would like to put in a script to check the size and do a backup & cleanup without shutdowning Apache. But it won't allow me to do that because other process(Apache) is using it. Is there any way to work around this. Or if Aparch has simi

upgrade to Tomcat 5.0+

2004-05-19 Thread Simon Zeng
Hi, Does anyone have the experience using Tomcat 5 in a production(24 X 7) environment (NT, Linux)? Is it stable? We are interested in tomcat clustering with session memory duplication coming with Tomat 5. Is it easy to configure and stable? Thanks, -Simon --

RE: How to detect tomcat down

2004-05-19 Thread Simon Zeng
Look for that in Tomcat docs. In short: JkMount /* balancer worker.balancer.type=lb worker.balancer.workerlist=tomcat1worker,tomcat2worker (I am not sure about the "workerlist" word. It might be "workers" or "list"... Search for an example in your sample workers

RE: How to detect tomcat down

2004-05-19 Thread Simon Zeng
/testworker1page tomcat1worker JkMount /testworker2page tomcat2worker -Tim Simon Zeng wrote: > Could you please explain what do you mean special (hidden) and how to do it? > Currently I only define on JkMount for loadbalancer. Thanks, -Simon > > -Original Message- > From: T

RE: How to detect tomcat down

2004-05-19 Thread Simon Zeng
tomcat down For the load balanced tests, have a special (hidden) JkMount for each tomcat in the cluster. -Tim Simon Zeng wrote: > I can come up with a WatchDog to do the monitoring/restart. But We have a > few tomcat instance runing in load balance mode with one Apache dispatching >

show tomcat instance name in mod_jk.log

2004-05-18 Thread Simon Zeng
Another issue, I am running tomcat load balancing with mod_jk. I would like to know from mod_jk.log (or anywhere else?) which tomcat instance the logged message is for so that if there is a problem, i can quickly go to that tomcat. But I could not find how to put the information there. Those flag

RE: How to detect tomcat down

2004-05-18 Thread Simon Zeng
Gibby Simon Zeng wrote: >I can come up with a WatchDog to do the monitoring/restart. But We have a >few tomcat instance runing in load balance mode with one Apache dispatching >request to them. How could we figure out if one/more(not all) tomcat >instances down and how to decide whi

RE: How to detect tomcat down

2004-05-18 Thread Simon Zeng
, Simon Zeng wrote: : I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to : monitor the tomcat : server and restart it automatically if it is detected down. I did a lot : research but could not find any convincing way to do it. Some commercial monitoring products perform a request

How to detect tomcat down

2004-05-18 Thread Simon Zeng
Hi, I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to monitor the tomcat server and restart it automatically if it is detected down. I did a lot research but could not find any convincing way to do it. Another issue, I am running tomcat load balancing with mod_jk. I would