I have a J2EE application, deployed in JBoss6 application server in Windows (Vista 32 bit) platform. My database is "PostgreSQL 9.0.4" and I am using JDBC driver: "postgresql-9.0-801.jdbc4.jar".
In my ds.xml file, I have defined max-pool-size = 75 and min-pool-size = 40. i am using JPA/Hibernate as well as using javax.sql.DataSource.
In windows "Task Manager", I find that when PostgreSQL server starts up it creates 6 "postgres.exe" processes. Now when I deploy/start my J2EE application in JBoss, I find a total of 66 "postgres.exe" processes. So that means another 60 postgres processes were spawned (or launched) because of my application started.
If I change the max-pool-size to be 40 then I notice that I have a total of 46 postgres.exe processes. In both cases the no. of postgres processes comes down to 6 when I stop my J2EE application.
So my question, is this normal? Are those extra processes spawned/launched because of 'connection pooling' (used by Hibernate)?