That makes sense for the weird timing observations. I tried the value object pattern with a local ejbHome method. Utilizing a finder this reduced my time from ~2200ms to ~1600, then i tried an ejbSelect which took it down to ~1400ms.
Then i tried your suggestion (bulk getter) and was able to get the time to about ~1200ms. A lot better then the original 2200, but can this still be acceptable for reading ~10 fields from 750ejbs that are 100% cached? Also, the first time though (uncached), is still very long >11,000 ms for the exact same code and data...course a bit of this is creating db pool connections. .peter -----Original Message----- From: Dan Christopherson [mailto:danch@;nvisia.com] Sent: Monday, October 21, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Entity Bean Performance Tuning Help Luttrell, Peter wrote: > basically pass in a reference to the ejb and call most of the methods on it. > The trace dumps out the total time the constructor took. I noticed a weird > pattern. Most of the constructions took 0ms, but every 5th or so it took > 15-16ms, which is where all of my time is going. Note that it is not exactly > 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms > 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms > 18:46:06,855 INFO [STDOUT] displayBean construction took 15 ms > 18:46:06,855 INFO [STDOUT] displayBean construction took 0 ms Assuming you're using System.currentTimeMillis(), this might just be the granularity that this method uses: in the past, I've noticed it returning only multiples of 10 under windows. One thing that this method is doing is it's calling through the entire container stack for each attribute that needs to be copied to the data object. Can you instead give the entity a factory method (bulk getter)? That might help by reducing overhead. -danch ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576298;k? http://www.sun.com/javavote _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all information and reserve the right to publish or disclose any information you share with us. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user