Amusingly MOSS

...It's funny how difficult some stuff is when it really shouldn't be

  Home  |   Contact  |   Syndication    |   Login
  29 Posts | 0 Stories | 34 Comments | 0 Trackbacks

News

Twitter












Tag Cloud


Archives

Post Categories

Wednesday, September 16, 2009 #

I've been troublshooting some Application Log issues for a client today, and found multiple instances of Commerce Server error 4116, which all message that goes something like this:

The Commerce Server runtime has detected that more than # instances of the SiteConfigReadOnlyFreeThreaded object have been created. Creating many SiteConfigReadOnlyFreeThreaded instances will negatively affect the performance of the site. Please refer to the Commerce Server documentation for the recommended use of the SiteConfigReadOnlyFreeThreaded object.

After a quick google search for "SiteConfigReadOnlyFree", I came across Tom Shultz's Blog which clearly identified that the warnings were coming from one of two places:

  1. Your site is configured to use the CommerceDataWarehouseAuthenticationModule (in which case, this problem was resolved in SP1, so it really shouldn't be this problem, seeing how SP2 has been out for a long time now)
  2. You're creating new instances of Commerce System Context objects, each of which create new SiteConfigReadOnlyFree in memory.  This happened to be the case for us.

The correct practice here is to only use the CommerceContext.Current object (as opposed to creating new ones each time), and this will avoid creating new SiteConfigReadOnlyFree objects over and over in memory.


We've all been there... It's the feeling you get the first time you walk into a large social networking event.  You're like a tadpole in a pool of sharks, all of whom are leagues smarter and more experienced than you, and they are all waiting for the right moment to eat you - or worse - humiliate you when you say something that might disagree with their pedigree.

The truth is that nobody knows anybody (except, perhaps, the speakers.... but generally speaking, they didn't get to speak because they bullied their way to the podium), and they are all just as nervous as you.  For all they know, you're the next Joel Oleson, and they are scared of you.

It's because of this pervasive fear that I thought I'd share this great 5-minute video on lifehacker.com that I saw today on how to be social amongst large groups of people you don't know.  The video is geared towards parties in general, but the concepts remain relevant to help you get over the fear of networking.