hi, sorry there are a few errors in my description, its postgres.exe, not pgadmin. and one thing to add, im using Netbeans as development IDE. i researched a little after this post and i now think
the config should be correct. im using dcpd pooling instead of c3p0, and this line <property name="maxActive"> <value>4</value> </property> is dcpd way of setting max connection=4. so technically the program cannot create more than 4 connections.
i studied in depth how the thing happens, and it appears that, every time a WEBPAGE that includes CERTAIN NUMBER of hibernate database operations is reqeusted, exactly 2 postgres.exe is created. no matter how many database operations there are on a single page, 1,2, or 10, its exactly 2 postgres.exe created. and this keeps happening like a plague until too many threads eats up my memory and i cant do anything. However, the very strange thing is, even i shut the browser, these processes are not released at all, they are releaesd when i shut down netbeans.... no wonder i have to restart netbeans every 4-5 runs...
im very confused now, is it a netbeans's problem or my problem? whats your opinion?
any ideas are greatly appreciated!
|