Peter Johnson wrote:Sorry, but I don't know Jersey, you are on your own there.
You might try taking a thread dump when there are two requests in process - you should see two threads processing the requests. Look at the code shown in the thread call stacks, that should give you a clue. (Depending on how quickly your code processes the requests you might have to take multiple thread dumps before you catch the culprit.)
Peter Johnson wrote:You have not limited the number of http connections, and 75 connections for the database is more than enough. So the problem has to be either in your code (locking, overuse of synchronized) or with Jersey.
Aditi agarwal wrote:hi
my problem is bit typical to understand sopls feel free to ask if any doubts in that
actually i have 3 files one.jsp, two.jsp, three.jsp
i want to call
three.jsp after clicking one submit button of one.jsp but in between the action of two.jsp should also be called
please reply about this query
Marco Ehrentreich wrote:Well, since you are really experiencing incompatibility issues during the migration process it may make sense to use two Tomcat versions meanwhile.
Basically you have to take care that each Tomcat uses a few ports (depending on the configuration). So you have to deal with conflicting ports, i.e. choose different one for each Tomcat instance, if you plan to run Tomcat on the same machine.
If you have a look at the Tomcat startup script in $TOMCAT_HOME/bin/catalina.sh you will quickly see that Tomcat recognizes quite some environment variables. So usually it should be enough to point JAVA_HOME and JRE_HOME to right JDK location in your init script or before you startup Tomcat. Depending on your OS and/or Linux distribution the startup and initialization process might work slightly different but the basics should be as described.
I hope this helps to solve your problem!
Additional note: According to the Tomcat documentation Tomcat 6 should be able to run with Java 5 and 6! So at least you don't have to deal with different Tomcat versions to use Java 5 and Java 6.