Re: Ignorance about some things.

2008-09-01 Thread Ronald Klop
My experience is also that java likes more memory on 64-bit systems. But I can't prove or explain it. Ronald. On Mon Sep 01 13:41:18 CEST 2008 Tomcat Users List users@tomcat.apache.org wrote: Subject: Ignorance about some things. Date: Mon Sep 01 13:41:18 CEST 2008 From: Manuel Trujillo

Re: NIO 100% CPU usage

2008-10-16 Thread Ronald Klop
Filip, How do your top or ps commands relate to threads in the thread dump? Are there shared ids or shared names in there? I'm searching for this for some time, so am really interested in what you mean. Ronald. Op woensdag, 15 oktober 2008 om 20:22 uur schreef Tomcat Users List

Re: Memory leak from threadlocal for hot deployment

2008-10-17 Thread Ronald Klop
As far as I know the threads from the connector are shared between webapps. So how would Tomcat know which objects in the threadlocals are from which webapp? Or should Tomcat destroy all threadlocals of webapp A if I reload webapp B? Ronald. Op vrijdag, 17 oktober 2008 om 8:19 uur schreef

RequestDispatcher and sendfile()/java.nio

2008-10-23 Thread Ronald Klop
Hi, Does Tomcat 5.5 or maybe 6.0 use java.nio/sendfile() to send static content? So is it more prefered to use RequestDispatcher.forward(myfile) than copy a FileInputStream to ServletOutputStream by hand? I already have the copying part, but would like to know if it is worth the trouble to

Re: Suspending Servlet Request Acceptance?

2008-10-24 Thread Ronald Klop
I'd suggesting implementing a filter. http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/Filter.html Ronald. Op vrijdag, 24 oktober 2008 om 12:21 uur schreef Tomcat Users List users@tomcat.apache.org: Subject: Suspending Servlet Request Acceptance? Date: Fri Oct 24 12:21:31

Re: Obfuscating a Servlet

2008-10-24 Thread Ronald Klop
What is the risk? Do you deploy it in your own Tomcat environment where only you have access or do you distribute your class files? Ronald. Op vrijdag, 24 oktober 2008 om 12:28 uur schreef Tomcat Users List users@tomcat.apache.org: Subject: Obfuscating a Servlet Date: Fri Oct 24 12:28:50

RE: [***SPAM*** Score/Req: 20.50/05.00] Re: Hot deployment of a new version of war file while users are still working on the old one.

2008-10-27 Thread Ronald Klop
You don't give much details about your problems. But I think you have some long-living big datastructures which are hold in the session, so you can't cluster your sessions. You could redesign your application to make it more scalable. In the end that is your problem, so it's the solution

Re: Tomcat Performance

2008-11-10 Thread Ronald Klop
2 Instances don't compete for locking between threads. So possibly your application depends a lot on locking? Ronald. Op maandag, 10 november 2008 om 7:26 uur schreef Tomcat Users List users@tomcat.apache.org: Subject: Tomcat Performance Date: Mon Nov 10 07:26:21 CET 2008 From: Nishi Kant

Re: Tomcat threads

2008-11-12 Thread Ronald Klop
Op woensdag, 12 november 2008 om 9:56 uur schreef Tomcat Users List users@tomcat.apache.org: Subject: Re: Tomcat threads Date: Wed Nov 12 09:56:01 CET 2008 From: André Warnier [EMAIL PROTECTED] Filip Hanik .. and many others - Dev Lists wrote: [...] Thanks for all the answers, very

Re: Different session timeout for local and external users

2008-11-13 Thread Ronald Klop
Use HttpSession.setMaxInactiveInterval(int). if (request.getRemoteHost().startsWith(192.168.)) { // or something more advanced request.getSession().setMaxInactiveInterval(100); } Ronald. Op donderdag, 13 november 2008 om 15:21 uur schreef Tomcat Users List users@tomcat.apache.org:

Re: Optimized memory Parameter in Tomcat.

2008-12-19 Thread Ronald Klop
This totally depends on what your application does. So nobody on this list can say something about it based the information you give. 2GB is quite a lot of memory, so I think your application has plenty of memory unless it is a very memory hungry program. On 32 bits machines 2GB is a maximum

Re: Tomcat logging - Persistence of Logs

2005-11-02 Thread Ronald Klop
Move the file to a new name in your startup script. On Mon Oct 31 12:59:07 CET 2005 Tomcat Users List users@tomcat.apache.org wrote: I have a problem with log files. I have a customer who has Tomcat 5.0.28 running on Windows 2003 Server. The main output is being logged to stdout.log in the

reason for beta vote (5.5.13)?

2005-12-05 Thread Ronald Klop
Hello, I'm searching the net for a message with the reason for the beta status of 5.5.13 in stead of stable. And I can't really find it. Any pointers? Ronald.

Re: [ANN] Clustering broken 5.5.10-5.5.14

2005-12-28 Thread Ronald Klop
Is there any info about when an updated release is scheduled? On Fri Dec 23 19:45:11 CET 2005 Tomcat Users List users@tomcat.apache.org wrote: I've been getting a good amount of emails regarding the clustering system being broken in Tomcat 5.5, so I thought I make the announcement here

How stable is 5.5.15?

2006-01-05 Thread Ronald Klop
Hello, Sorry for pushing, but how stable can I expect Tomcat 5.5.15 to be in a clustered server? (4 nodes) We are running 5.0.28 now and it has some issues which seem to be solved in 5.5.x. Are there people running 5.5.15 in a production environment already? Ronald.

NotSerializableException in Tomcat 5.5.15

2006-01-11 Thread Ronald Klop
Hello, I'm seeing this exception in catalina.out of Tomcat 5.5.15 (2 node cluster). This is Tomcat code, so I'm wondering if I should fix something or if the problem is inside Tomcat? Ronald. SEVERE: Unable to serialize delta request for sessionid [F63F9EDF02547D7610359C7A990650A7]

Re: Tomcat 1.1 - release date

2007-11-06 Thread Ronald Klop
On Wed Oct 31 18:13:30 CET 2007 Tomcat Users List users@tomcat.apache.org wrote: This may sound corny but I am just wondering. It looks like I am going to be supporting a web app that is installed under Tomcat 1.1 Does anyone know what the release date of the Tomcat 1.1 was or the most recent

Re: Tomcat becomes non-response for ~30 seconds

2007-11-28 Thread Ronald Klop
Are you swapping during garbage collection? Ronald. On Tue Nov 27 19:58:24 CET 2007 Tomcat Users List users@tomcat.apache.org wrote: Folks: We're having an intermittent problem with Tomcat becoming non-responsive for a while (between 30 seconds and several minutes) and then recovering

Re: best practices for WAR deployment in a cluster?

2008-03-04 Thread Ronald Klop
On Tue Mar 04 16:53:40 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: I apologize if this has been asked before or if it's mentioned in a FAQ (that I haven't found yet) but what are the best practices for deploying webapps across a cluster? The situation I will soon have is 6

Re: Trouble with java.util.Timer in Tomcat 5.5

2007-07-02 Thread Ronald Klop
Could it be the Timer is waiting for a previous action to finish? Maybe the FTP connect 'hangs'. Ronald. On Fri Jun 29 16:41:13 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: I have an app running in Tomcat 5.5.12, with jre 1.5.0_12 (explicitly specified in the service

Re: PDF Delivery switching to byte ranges for slower connections.

2007-07-18 Thread Ronald Klop
Is this static content or served by a custom servlet? If you can set the content-length of the response it shouldn't use chunked encoding. Ronald. PS: I'm not a Tomcat developer, so I could be wrong about this. On Wed Jul 18 14:45:42 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote:

Re: Interrupting tomcat threads.

2007-07-20 Thread Ronald Klop
On Fri Jul 20 15:23:45 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Christopher Schultz-2 wrote: So, multiple simultaneous AJAX requests are considered illegal? Exactly. All requests that modify the session state will be synchronized. Christopher Schultz-2 wrote: I

Re: memory leaks (Tomcat 5.5.20 and JDK 1.6)

2007-08-14 Thread Ronald Klop
Do you monitor the memory usage over time? Is it steadily increasing? Or does it peak at one moment? Ronald. On Fri Aug 10 20:36:44 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Hello Tomcat Users , Our web application uses Tomcat 5.5.20 with Java 1.6. The application's front end

Re: ClientAbortException / Broken Pipe?!

2007-08-15 Thread Ronald Klop
ClientAbortException means the user canceled the download (the 'client aborted'). There is nothing you can do about that on the server. Ronald. On Tue Aug 14 15:57:25 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Folks; still messing around with an error like this: In our

Re: Tomcat on FreeBSD

2007-08-20 Thread Ronald Klop
What java version are you running? Ronald. On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Hi, I have installed Tomcat 5.5.23_1 on FreeBSD 6.2. I have used Servlets a lot in the past but have not used ant. I am now trying to get this development

Re: Tomcat on FreeBSD

2007-08-22 Thread Ronald Klop
On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: What java version are you running? Ronald. On Fri Aug 17 16:00:41 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Hi, I have installed Tomcat 5.5.23_1 on FreeBSD 6.2. I

Re: Delete Tomcat logs

2007-08-22 Thread Ronald Klop
On Wed Aug 22 10:58:13 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Do you know some Windows script to delete Tomcat logs after 5 days? Thanks a lot Windows has a scheduler. Put 'DEL c:\Tomcat\logs\*.*' in it every 5 days. Ronald.

Re: 20 Tips for Using Tomcat in Production

2007-08-22 Thread Ronald Klop
See the table in this page. On Windows on i586 java always defaults to client runtime. (amd64 or ia-64 are different) http://java.sun.com/docs/hotspot/gc5.0/ergo5.html If you can set JAVA_OPTS=-server java starts with it. Print System.getProperties() and you can see what runtime is used.

Re: Tomcat on FreeBSD

2007-08-22 Thread Ronald Klop
On Wed Aug 22 14:47:04 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: On Wed Aug 22 04:09:29 CEST 2007 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: What java version are you running? Ronald. On Fri Aug 17 16:00:41 CEST 2007

Re: Is Tomcat being hacked by curl ?

2007-08-23 Thread Ronald Klop
Curl is a command line http client. It is available for almost all unix/linux platforms. It is easy to use in scripts to download stuff from http servers. It is not a hacking tool. You should look at what people are downloading/requesting with it. Ronald. On Thu Aug 23 09:25:51 CEST 2007

cluster problem (sessions lost)

2008-03-17 Thread Ronald Klop
Hello, I have this problem in which there is very little data to get to a solution. - Running a 5 node cluster of 5.5.23 on java 1.5.0_10. Debian 4.0 and kernel 2.6.22.18-SMP. - It runs behind a Linux LVS which balances the connections over the cluster. - Attached is my server.xml. - Sessions

expiring sessions upon shutdown

2008-03-18 Thread Ronald Klop
Hello, My Tomcat's (5.5.26) currently print 'INFO: Manager [] expiring sessions upon shutdown' on shutdown. This triggers my SessionListeners which prints a lot of these lines. [nl.base.servlets.SessionListener] Logout: [EMAIL PROTECTED] [userid=43321] [nl.base.servlets.SessionListener] Logout:

ArrayIndexOutOfBoundsException in ClusterListenThread-2

2008-03-18 Thread Ronald Klop
I have this in my logs. Running tomcat 5.5.26. Exception in thread ClusterListenThread-2 java.lang.ArrayIndexOutOfBoundsException: 1024 at org.apache.catalina.cluster.io.XByteBuffer.toInt(XByteBuffer.java:222) at org.apache.catalina.cluster.io.XByteBuffer.countPackages(XByteBuffer.java:163) at

Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-03-20 Thread Ronald Klop
On Wed Mar 19 23:13:33 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Rajeev Angal wrote: I misspoke - this is happening on Tomcat 6.0.16 only . 6.0.10 is working fine on all browsers. Any pointers highly appreciated. It is a known issue in 6.0.16. A patch is currently under

Re: IE and Mozilla issue with Cookies with setVersion(1)

2008-03-20 Thread Ronald Klop
On Thu Mar 20 14:00:55 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop wrote: On Wed Mar 19 23:13:33 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Rajeev Angal wrote: I misspoke - this is happening on Tomcat 6.0.16 only . 6.0.10 is working fine on all

sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-03-20 Thread Ronald Klop
Hello, When I shutdown a node in my cluster (tomcat 5.5.26) sessionDestroyed is called on all SessionListeners on that node. But I'm running a cluster, so one node stopping doesn't mean the session is destroyed. My understanding is that expireSessionsOnShutdown=false by default and I don't

Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-03-21 Thread Ronald Klop
: It's expected behavior, sessions will always expire on the local node during a graceful shutdown. expireSessionsOnShutdown=false simply means that we don't expire sessions in the remote nodes Filip Ronald Klop wrote: Hello, When I shutdown a node in my cluster (tomcat 5.5.26

jmx gives ConcurrentModificationException

2008-03-21 Thread Ronald Klop
Hi, I'm doing listSessionIds by JMX on Tomcat 5.5.26. Sometimes I get this exception. Is this only harmful to my jmx client or can it also harm the running Tomcat? Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841) at

lock wait endless in FastAsyncSocketSender

2008-03-21 Thread Ronald Klop
Hello, I have this on one of my cluster nodes. Is this normal? We are running Tomcat 5.5.26 on linux 2.6.22.1. On all nodes netstat gives full send and receive buffers on the tcp connections of the replication. Cluster-FastAsyncSocketSender-6 daemon prio=1 tid=0x08d16af0 nid=0x78d7 in

Re: lock wait endless in FastAsyncSocketSender

2008-03-21 Thread Ronald Klop
On Fri Mar 21 14:46:03 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Hello Ronald, Ronald Klop schrieb: Hello, I have this on one of my cluster nodes. Is this normal? We are running Tomcat 5.5.26 on linux 2.6.22.1. On all nodes netstat gives full send and receive buffers

more info Re: cluster problem (sessions lost)

2008-03-21 Thread Ronald Klop
Hi, I am using the FastAsyncSocketSender. Ngrep show me it sends a session and than receives 3 bytes (ack?). These 3 bytes are never read by the FastAsyncSocketSender, so the recv buffer of Linux is filling up. If the recv buffer is full. The send buffer on the other side is filled up after

Re: lock wait endless in FastAsyncSocketSender

2008-03-22 Thread Ronald Klop
On Fri Mar 21 15:40:32 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Ronald Klop schrieb: On Fri Mar 21 14:46:03 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Hello Ronald, Ronald Klop schrieb: Hello, I have this on one of my cluster nodes. Is this normal

Re: Top mail servers

2008-03-31 Thread Ronald Klop
On Fri Mar 28 16:11:21 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Folks, I am in the process of hosting a site on Tomcat on Ubuntu. I will be also running a mail server. As per your experience which are the top mail servers? While googling I came to know these names : Sendmail

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Ronald Klop
I've had a problem with send/receive buffers filling up because FastAsyncSocketSender doesn't read the Ack from the other cluster node. Does netstat -n give you full buffers on the cluster tcp connections (port 8015 I think)? This might cause Tomcat to stack up a lot of session data in its

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Ronald Klop
See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for FastAsyncSender you should set sendAck=false on the receiving side. Ronald. On Mon Mar 31 02:07:51 CEST 2008 Tomcat Users List

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-04-01 Thread Ronald Klop
On Mon Mar 31 21:13:25 CEST 2008 Tomcat Users List users@tomcat.apache.org wrote: On Mon, Mar 31, 2008 at 3:38 AM, Ronald Klop [EMAIL PROTECTED] wrote: See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Ronald Klop
Reverse DNS lookup which always fails? Ronald. On Mon Apr 14 23:46:23 CEST 2008 Tomcat Users List users@tomcat.apache.org wrote: Am running a Tomcat 6.0 server that is distributing a client program using Java WebStart. The client program communicates to the server using an RMI HTTP

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Ronald Klop
Do you have a firewall which does DNS lookups? Ronald. On Tue Apr 15 08:58:18 CEST 2008 Tomcat Users List users@tomcat.apache.org wrote: Thanks Ronald, I've got enableLookups=false in the server.xml file and Wireshark shows no signs of DNS lookups. Also, all of the Webstart stuff

Re: test all nodes in cluster

2008-04-17 Thread Ronald Klop
We use JMX to check if all sessions are available on all nodes. This is some info to do that from ant: http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html It is also very easy to program it from Java. This has helped us a lot detecting and debugging a session-sync problem a few weeks ago.

Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-04-17 Thread Ronald Klop
@tomcat.apache.org wrote: Hello, I have the same problem. please let me know if you have got any solution to this. sanjeev Ronald Klop wrote: In sessionDestroyed I register the user as logged out. How can I know if sessionDestroyed is called from session.invalidate() from the real

Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-04-18 Thread Ronald Klop
2008 Tomcat Users List users@tomcat.apache.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, Ronald Klop wrote: | In sessionDestroyed I register the user as logged out. | | How can I know if sessionDestroyed is called from session.invalidate() | from the real expiration

Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-04-18 Thread Ronald Klop
On Fri Apr 18 14:16:33 CEST 2008 Christopher Schultz [EMAIL PROTECTED] wrote: Ronald, Ronald Klop wrote: Yes, I know how to work around the problem. But I don't like workarounds. All implementations I can think of are very fragile. What if somebody stops my Tomcat with kill one day

Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

2008-04-18 Thread Ronald Klop
On Fri Apr 18 15:29:16 CEST 2008 Christopher Schultz [EMAIL PROTECTED] wrote: Ronald, Ronald Klop wrote: But why does the client still have the same session after one node shuts down. The session doesn't live on one node. It lives as long as the cluster lives. That's a good point. I

Re: tomcat disappearing...

2008-04-29 Thread Ronald Klop
Is there System.exit(0) in your code? Ronald. On Thu Apr 24 16:11:58 CEST 2008 Tomcat Users List users@tomcat.apache.org wrote: Hi Mark, thanks for your reply. My linux boxes have 4GB RAM available and there is no trace about a out of memory error. In fact, i run 7 tomcats instances on

5.5.15 exception about key 'standardSession.setAttribute.ise'

2006-02-22 Thread Ronald Klop
Hello, I get this exception sometimes in my 2 node cluster. (tomcat 5.5.15) The tomcat source learns me, the session is invalid at that point, but what else can I learn from this exception? Ronald. HTTP Status 500 - type Exception report message description The server encountered an

5.5.15: is the context of the webapp clustered?

2006-03-21 Thread Ronald Klop
Hello, I'm running a 4 node cluster of 5.5.15. The session replication works ok. I am looking for a distributed way of sharing global data (non-session) between the nodes. Is the ServletContext clustered? Is there another good clustering method for global data in my application? If the

Re: Performance issue with Tomcat 5.0

2006-04-13 Thread Ronald Klop
Do 'kill -QUIT pid-of-process' and look in your logs for the stacktraces about what thread is doing what. Or run 'jstack pid-of-process'. This works on Unix/Linux. I don't know how to do this on Windows. Ronald. On Thu Apr 13 09:27:36 CEST 2006 Tomcat Users List users@tomcat.apache.org

Re: Performance issue with Tomcat 5.0

2006-04-13 Thread Ronald Klop
Do this a couple of times and see which thread stays the same and which one changes it stack. That's probably the one which is doing things. Ronald. On Thu Apr 13 11:01:01 CEST 2006 Tomcat Users List users@tomcat.apache.org wrote: I already done that dump using that kill quit command

Re: 5.5.17 cluster doesn't sync sessions on startup

2006-11-15 Thread Ronald Klop
manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 I believe this is documented on the website Filip Ronald Klop wrote: No, one node is restarting, while the other three keep running. Ronald. On Wed Sep 06 19:18:14 CEST 2006 Tomcat Users List users

from my logs: WARNING: overload existing session 9DA817797795B2108549802B4F52F472

2006-11-15 Thread Ronald Klop
Hello, I fixed my cluster sync problem. But now I find a lot of these lines in the logs. What is the reason of this? Should I fix it? Or is it harmless? I searched in google, but didn't find anything. Can I provide more info? Greetings, Ronald. Nov 15, 2006 12:22:34 PM

Re: 5.5.17 cluster doesn't sync sessions on startup

2006-11-15 Thread Ronald Klop
@tomcat.apache.org wrote: On Today at 1:13pm, RK=Ronald Klop [EMAIL PROTECTED] wrote: RK Ok. It took a while, but I finally had the time to try this. RK RK The chunking of data looks promissing. The timeout is still 60 seconds in my RK config, but the servers have all the session in 1-3 seconds now

Re: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-19 Thread Ronald Klop
It helped us to upgrade to java 1.5.0_10. There are fixes for memory leaks in native memory. They do not show up in the java heap. Ronald. On Wed Feb 07 23:34:45 CET 2007 Tomcat Users List users@tomcat.apache.org wrote:

Re: The body of the request is lost when you send the POST method !

2009-10-02 Thread Ronald Klop
Op vrijdag, 2 oktober 2009 10:30 schreef Eugene johnba...@gmail.com: Please, help me with bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=47797 and http://www.jboss.org/index.html?module=bbop=viewtopict=161900 -- Best Regards, Eugene Batogov Hi, It's a coincidence, but

POST request with timeout acts weird

2009-10-02 Thread Ronald Klop
Hello, I have made the servlet which I include below. If I send this request to it: telnet localhost 8080 POST /timeout HTTP/1.1 Host: crm.ronald.base.nl Content-Type: application/x-www-form-urlencoded Content-Length: 100 But I don't send any data. My servlet than waits in

Re: POST request with timeout acts weird

2009-10-02 Thread Ronald Klop
Op vrijdag, 2 oktober 2009 15:20 schreef Ronald Klop ronald-mailingl...@base.nl: Hello, I have made the servlet which I include below. If I send this request to it: telnet localhost 8080 POST /timeout HTTP/1.1 Host: crm.ronald.base.nl Content-Type: application/x-www-form

Re: POST request with timeout acts weird

2009-10-05 Thread Ronald Klop
Op maandag, 5 oktober 2009 00:47 schreef André Warnier a...@ice-sa.com: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 10/2/2009 9:20 AM, Ronald Klop wrote: But I don't send any data. My servlet than waits in getParameterMap(), because that try's

Re: POST request with timeout acts weird

2009-10-05 Thread Ronald Klop
Op zondag, 4 oktober 2009 22:23 schreef Christopher Schultz ch...@christopherschultz.net: Ronald, On 10/2/2009 9:20 AM, Ronald Klop wrote: But I don't send any data. My servlet than waits in getParameterMap(), because that try's to read the inputstream and parse the parameters

FOO / HTTP/1.1

2009-10-12 Thread Ronald Klop
Hi, If I send this to my Tomcat it responds with HTTP/1.1 200 OK and calls my servlet. :-) telnet localhost 8080 FOO / HTTP/1.1 Host: localhost What is this suppost to do? Ronald.

Re: FOO / HTTP/1.1

2009-10-12 Thread Ronald Klop
method. Probably this is ok. Ronald. Op maandag, 12 oktober 2009 12:01 schreef André Warnier a...@ice-sa.com: Ronald Klop wrote: Hi, If I send this to my Tomcat it responds with HTTP/1.1 200 OK and calls my servlet. :-) telnet localhost 8080 FOO / HTTP/1.1 Host: localhost What

loading a CharsetProvider via WebappClassLoader

2009-10-29 Thread Ronald Klop
Hi, I have this jar (jutf7.jar) which should register itself with the CharsetProvider of Java. If I put it in the WEB-INF/lib directory it is ignored by Java. I understand that this is because of order in which the WebappClassLoader asks all other classloaders for a class. How can this be

Re: loading a CharsetProvider via WebappClassLoader

2009-11-02 Thread Ronald Klop
, the code for Charset seems to clearly be using ClassLoader.getSystemClassLoader()... On Thu, Oct 29, 2009 at 10:51 AM, Ronald Klop ronald-mailingl...@base.nl wrote: Hi, I have this jar (jutf7.jar) which should register itself with the CharsetProvider of Java. If I put it in the WEB-INF/lib

RE: MISC; Tomcat-5.5.12; After one Tomcat Cluster node shutdown, sessionDestroyed been called before contextDestroyed

2009-11-17 Thread Ronald Klop
Hi Imad, I think also that Tomcat should only invalidate the Session on shutdown if it is the last node in the cluster. But the developers of Tomcat think of it as invalidating the Session object (as in java Object) and you and me see it as invalidating the session of the user. Ronald. (The

RE: MISC; Tomcat-5.5.12; After one Tomcat Cluster node shutdown, sessionDestroyed been called before contextDestroyed

2009-11-17 Thread Ronald Klop
Hi Imad, You can do everything you like, but it will all be dirty. 1. Set a global variable in your webapp before shutdown of a node. To see If it is a planned shutdown or not. 2. Keep references about the nr. of clusternodes yourself. Can be done quite cleanly with JMX. 3. Do not really

Re: MISC; Tomcat-5.5.12; After one Tomcat Cluster node shutdown, sessionDestroyed been called before contextDestroyed

2009-11-17 Thread Ronald Klop
, but nice enough for me. Ronald. Op dinsdag, 17 november 2009 16:38 schreef Pid p...@pidster.com: On 17/11/2009 14:40, Ronald Klop wrote: Hi Imad, Ronald. (The Ronald of the link mentioned by Pid.) Did the code supplied therein, work for you Ronald? @Imad The Servlet Spec

Re: 64bit Tomcat for Windows

2009-11-19 Thread Ronald Klop
On Thu, 19 Nov 2009 13:30:19 +0100, Bruce Foster gis.fos...@gmail.com wrote: Hi List, I have another thread running and someone suggested to use 64bit JDK on my Windows 2003 server 64 bit. Wonder, if there is a 64 bit installer for Tomcat on Windows. I see my current tomcat is running x86

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-19 Thread Ronald Klop
On Thu, 19 Nov 2009 14:59:16 +0100, Karthik Nanjangude karthik.nanjang...@xius-bcgi.com wrote: Hi Can some body provide me a sample code for Socket (TCP / IP ) reading from a war application on Tomcat Can Listeners be made use of for the same? Reason: I need to Accept / Reply a

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-20 Thread Ronald Klop
. With regards KArthik -Original Message- From: Ronald Klop [mailto:ronald-mailingl...@base.nl] Sent: Thursday, November 19, 2009 9:06 PM To: Tomcat Users List Subject: Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat On Thu, 19 Nov 2009 14:59:16 +0100, Karthik

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-20 Thread Ronald Klop
on this list before and received help, no? You've read this before, yes? http://catb.org/~esr/faqs/smart-questions.html p With regards KArthik -Original Message- From: Ronald Klop [mailto:ronald-mailingl...@base.nl] Sent: Thursday, November 19, 2009 9:06 PM To: Tomcat Users List

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-20 Thread Ronald Klop
On Fri, 20 Nov 2009 14:22:57 +0100, André Warnier a...@ice-sa.com wrote: Ronald Klop wrote: On Fri, 20 Nov 2009 13:20:04 +0100, Karthik Nanjangude karthik.nanjang...@xius-bcgi.com wrote: Hi You mentioned XML - use some existing library that works with XML. A 3rd party Client S/w of C

Re: [ANN] Apache Tomcat Native 1.1.18 released

2009-11-24 Thread Ronald Klop
This changelog link works better. http://tomcat.apache.org/native-doc/miscellaneous/changelog-1.1.x.html Cheers, Ronald. Op maandag, 23 november 2009 21:59 schreef jean-frederic clere jfcl...@gmail.com: The Apache Tomcat team announces the immediate availability of Apache Tomcat Native

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Ronald Klop
Try insert some debug statements just before the out.write. System.out.println(bytesRead: + bytesRead) would be interesting. In fact this is kind of my-first-debugging and you don't even mention you did try it. Ronald. Op dinsdag, 24 november 2009 17:57 schreef geoff...@fileflow.com:

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Ronald Klop
. Input and OutputStream are not null, bytesRead is the correct size and the buffer is also filled. Any other ideas? Best Regards Geoffrey On 24 Nov 2009, at 18:13, Ronald Klop wrote: Try insert some debug statements just before the out.write. System.out.println(bytesRead: + bytesRead) would

Re: Tomcat Https loadbalancing??

2009-11-25 Thread Ronald Klop
Always make a drawing. client - https - tcp-loadbalancer - still same https connection- multiple tomcats client - https - http-loadbalancer (Apache, proxy) - new ajp/http(s) connection- multiple tomcats Normally the loadbalancer and tomcats are in the same private network. It is your choice

Re: Ignore http header if-modified-since

2009-12-16 Thread Ronald Klop
If it is 304 and not 404. You can implement the lastModified method on your Servlet and always return 0 or -1 (see the javadocs). Ronald. On Wed, 16 Dec 2009 15:47:33 +0100, Looijmans, Mike mike.looijm...@oce.com wrote: I assume you mean 304 (Not modified) instead of 404 (Not found).

Re: Tips on tracking down memory leaks

2010-01-13 Thread Ronald Klop
No. But historical results are not a guarantee for the future. It is very easy to make a heapdump with jmap and analyze it with MAT (http://www.eclipse.org/mat/) or other tools as suggested by others on this list. Ronald. Op woensdag, 13 januari 2010 11:44 schreef Greg McCane

Re: 6.0.19 feature to not swallow input if the connection is going to be closed

2010-01-15 Thread Ronald Klop
Hello, I think this is an interesting question. I wonder why there is no answer. Ronald. Op vrijdag, 8 januari 2010 17:20 schreef Lock Ian IC ian.l...@uk.fujitsu.com: Hi There was a feature introduced in 6.0.19 to not swallow the inputStream if the servlet throws an exception and

java6, jaf and multiple contexts in tomcat 5.5.27

2009-01-19 Thread Ronald Klop
Hi, I'm running a webapp which use jaf (java activation framework) for javamail. In the past it was possible to deploy different versions of our webapp in different contexts of one tomcat instance. Jaf always was a jar within our context. Since java 6 jaf is included in java 6 and we removed

Re: networkaddress.cache.ttl and networkaddress.cache.negative.ttl

2009-01-20 Thread Ronald Klop
Hi, I use -Dsun.net.inetaddr.ttl=3600 and left the negative.ttl as default (10?). Our network runs its own caching dns server. Never had any trouble with it. Ronald. Op dinsdag, 20 januari 2009 om 10:46 uur schreef Tomcat Users List users@tomcat.apache.org: Dear All, Do any of you

Re: 15 second for redeployment is to much

2009-04-19 Thread Ronald Klop
Fix for step 3. Don't wait for Tomcat to detect changes. See http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html or use org.apache.catalina.ant.ReloadTask (which uses the manager). My compile command automaticly calls this after a succesful compile. Another tip: test business logic

Re: Change thread name of HTTP worker threads at Runtime

2009-05-06 Thread Ronald Klop
Hi, At the company I work we are doing this for a couple of years already with Tomcat 4, 5 and now 6. Works very well. And makes threaddumps more easy to read. A filter is very ease to make. public class ThreadNameFilter implements javax.servlet.Filter { public void doFilter(ServletRequest

Re: Performance: switch vs if ... else if

2009-05-20 Thread Ronald Klop
As with the tips about usage of char in the switch you can also test using a char in the if ... else. if (myChr.length() != 1) { throw new RuntimeException(invalid length); } char ch = myChr.charAt(0); if (ch == 'c') { p += 1; } else if (ch == 'r') { p += 2; } ... Should make a difference

Re: server to client notification

2009-06-04 Thread Ronald Klop
client --- tomcatServer --- notificationServer 1. client sends request to tomcatServer 2. tomcatServer calls notificationServer.waitForEvent() (this can wait forever if there is no event) 3. tomcatServer get event and send response to the client. Warning: step 2 takes up 1 thread. You can

Re: Best practices for switching back/forth between java 1.5/1.6

2009-06-26 Thread Ronald Klop
Hi, Make sure you compile everything with Java 1.5 or javac -target 1.5. That wil run in java 1.5 and 1.6. Ronald. Op woensdag, 24 juni 2009 20:54 schreef Ken Bowen : Hi all, I failed at searching for this, even though I know it's been answered: Setting: Tomcat 6.0_20; Mac OS X 10.5.7;

Re: splitting thread pool

2009-06-29 Thread Ronald Klop
You can create a filter or run on separate Tomcat instances. NB: You are not solving the cause, but the effect. You don't have enough threads or cpu-power to handle the total load. Ronald. Op maandag, 29 juni 2009 07:12 schreef prashant sharma : Hi, I have the following attributes in the

Re: splitting thread pool

2009-06-29 Thread Ronald Klop
and the other that is allocated to the internal processing of the web application. Thanks! Prashant From: Ronald Klop ronald-mailingl...@base.nl To: Tomcat Users List users@tomcat.apache.org Cc: prashant sharma psharma_...@yahoo.com Sent: Monday, June 29, 2009 4:57:53 AM Subject: Re: splitting

NotSerializableException MemoryUser?

2009-07-03 Thread Ronald Klop
Hi, I'm running Tomcat 6.0.20 in a cluster on 3 nodes. If I restart one I get this exception: Caused by: java.io.NotSerializableException: org.apache.catalina.users.MemoryUser at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at

Re: NotSerializableException MemoryUser?

2009-07-09 Thread Ronald Klop
Op vrijdag, 3 juli 2009 17:48 schreef Mark Thomas ma...@apache.org: Christopher Schultz wrote: Ronald, On 7/3/2009 6:34 AM, Ronald Klop wrote: I'm running Tomcat 6.0.20 in a cluster on 3 nodes. If I restart one I get this exception: Caused by: java.io.NotSerializableException

Re: NotSerializableException MemoryUser?

2009-07-09 Thread Ronald Klop
Op donderdag, 9 juli 2009 14:22 schreef Mark Thomas ma...@apache.org: Ronald Klop wrote: Op vrijdag, 3 juli 2009 17:48 schreef Mark Thomas ma...@apache.org: Christopher Schultz wrote: Ronald, On 7/3/2009 6:34 AM, Ronald Klop wrote: I'm running Tomcat 6.0.20 in a cluster on 3 nodes

Re: Garbage collector

2009-08-18 Thread Ronald Klop
This can be quite informative. jstat -gc pid 5s Ronald. Op maandag, 17 augustus 2009 17:02 schreef hruesga lord_dyna...@hotmail.com: Listers: We are trying to enable the garbage collector log for jvm to see what happens with our leak memory issue, i've already try to export CATALINA_OPTS

Re: pump up memory usage

2009-08-19 Thread Ronald Klop
byte[] b = new byte[100]; Op woensdag, 19 augustus 2009 10:51 schreef Thomas G. Lau thomas@ntt.com.hk: Dear Tomcat Users, how could I pump up memory usage on tomcat? we want to test if tomcat having any problem when changed environment from 32 bit 2GB limitation to 64bit

  1   2   >