Hi,
We are having a performance issue in our CRM 2011 due to no of concurrent instances created for IOrganizationService service.
We have CRM 2011 installed with IFD ADFS configuration. There are around 100 users using the CRM application.
Our client will organize and manage Events in CRM.
We have a separate web portal for allowing public users to register for the events in CRM. Its a ASP.NET web application with forms authentication. The portal will create an instance of IOrganizationService and retrieve the events from CRM and display in the portal. Then the user will select some events and click the submit to register for the events. the registration is recorded in CRM. So all the retrieve, cerate, update is happening through IOrganizationService instance.
Now the problem is when the no if users using the portal is high the portal becomes very slow or even sometimes throw an error when creating an instance for IOrganizationService. It throws error as "Metadata contains a reference that cannot be resolved". This happens only when the no of users using the portal is very high. This also affects the CRM application performance.
Please advice on how to proceed with this issue. I knew IOrganizationService is not thread safe so for each update, create, delete new instance is created for a single session. So for 5000 users there will be 20,000 instances of IOrganizationService created approximately. Is this the correct way to handle the IOrganizationService. Is there any limit for the no of instances for IOrganizationService. As I said after certain limit the application throws error while initiating the IOrganizationService object. The application is accessible intermittently. Please help of how to resolve the issue.