limit of connections with database and number of java threads in an application

Posted by Jyoti on Stack Overflow See other posts from Stack Overflow or by Jyoti
Published on 2010-06-17T05:08:10Z Indexed on 2010/06/17 5:13 UTC
Read the original article Hit count: 235

Filed under:

Hi,

I am working to develop a JMS application(stand alone multithreaded java application) which can receive 100 messages at a time , they need to be processed and database procedures need to be called for inserting/updating data. Procedures are very heavy as validations are also performed in them. Each procedure is taking about 30 to 50 seconds of time to execute and they are capable to run concurrently. My concern is to execute 100 procedures for all 100 messages and also send reply within time limit of 90 seconds by jms application. No application server to be used(requirement) and database is Teradata (RDBMS)

I am using connection pool and thread pool in java code and testing code with 90 connections. Question is :

(1) What should be the limit on number of connections with database at a time? (2) How many threads at a time are recommended?

Thanks, Jyoti

© Stack Overflow or respective owner

Related posts about java