Wow!, a simple synchronized of a global map killed performance. The ConcurrentReaderHashMap version was over 60% faster with 200 concurrent threads. My bet is that it would be even better with more concurrent threads.
Bill
Scott M Stark wrote:
Under that kind of contention its certainly possible. Use the thread analyzer to see if the waiting corresponds to the time spent in the suspected hotspot.
xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
Bill Burke wrote:
I've been optimizing marshalling by extending ObjectInputStream and OutputStream, and overriding readClassDescriptor and writeClassDescriptor, only marshalling the classname rather than the whole shabang. I even keep a local cache of ObjectStreamClasses for readClassDescriptor to lookup at well (a ConcurrentHashMap).
Under load(150 threads), OptimizeIt is still showing readNonProxyDesc as a significant bottleneck (18% in some cases). I'm pretty sure that the problem is in ObjectStreamClass.load(Class, boolean) as there is a global cache for ObjectStreamClass and it is synchronized. Could OptimizeIt be lieing here? Would a simple get of an ObjectStreamClass Map with synchronized access really be such a culprit? To remove this, I have to totally pull and make copies of all affected files to change the cache to a ConcurrentReaderHashMap as non of this stuff is extendible as everything is either package protected or private.
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development
-- ================ Bill Burke Chief Architect JBoss Group LLC. ================
------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
