Bugs item #1029606, was opened at 2004-09-16 19:02 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1029606&group_id=22866
Category: JBossCX Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Elias Ross (genman) Assigned to: Nobody/Anonymous (nobody) Summary: jdbc.WrapperDataSource.getConnection is slow Initial Comment: I've been profiling JMS code. When a JMS message is added to the server, the persistence manager locates an appropriate DataSource. Out of the time spent in org.jboss.mq.Connection.sendToServer, about 28% of the time is getting the database connection through jdbc.WrapperDataSource.getConnection to do its work. This is after the pool has been initialized, etc. (40% is actual persistence, though most of it is the message serialization.) I suspect a lot of the work is calculating a hashCode on the javax.security.auth.Subject. SubjectCriKey and SubjectKey should have this value cached. Ideally, when one is accessing the local DB, none of this auth stuff should have to take place. Looking at the source for Subject.java, the hash code is not kept. BaseConnectionManager2.allocateConnection %CPU=27.949 %Time=27.963 calls=411 Allocations I've seen: JBossManagedConnectionPool$SubjectActions is created 3284 times (for 411 getConnection calls) java.util.Properties (1642 times) (Disclaimer: This was done through JBoss profiler, which may or may not create real numbers. It does look, though, that CX is pretty slow for some operations.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1029606&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
