I have this survey application which I have tested thoroughly and now its open for public. Some 5000 participants are hitting the server right now and I am getting random exceptions. I have also increased the maxThread value to 1000 from the default 150. But still the exceptions keep coming. Also this application uses mysql which allows 100 connections. If I increase the mysql connections will it be of any help? It will be great if anyone can give me some tips on how to manage this.
If this was my problem I would code checks for null before line 145 for every reference in that line of code. Bill
Joined: Jul 07, 2004
Thanks Bill for the reply.
I made sure there was no null pointer in my code. I am sure about that. Here is the line where the exception is occuring.
The persist happens fine and after that its trying to pull the next page in survey - and the exception happens. I am thinking of wrapping this with an try catch block, then if exception happens wait for a couple of seconds and then again try doing the forward. This is the first time I am seeing this big a load.
Also the server its hosted is a Mac OS 10.2 server. Does it have any limitations on the number of active connections?? I remember reading somwhere that Windows XP allows only 10 simultaneous connections?
Thanks for any inputs.
Author and all-around good cowpoke
Joined: Mar 22, 2000
I guarantee you that if a NullPointerException is thrown, there is a reference with a null value. Assuming that you are in doGet with typical use of "request" and "response" and that the line throwing the exception is correctly identified, then view = null;
The limit on TCP/IP connections either by the operating system or the Tomcat configuration would appear as either a refused connection, "unable to connect to" or similar message to the clien.