I am working on a ASP.net application, which basically use huge excel document to do some calculations and finally extract the output from excel to the page. The normal excel document size could be more than 15 MB. So i am forced to put a limit at the application that it should serve only 5 users at one point of time (To keep the memory usage under control so that other web applications run on same server will not get affected). Hence all other users has to wait in a queue to get served. The Excel used for calculation is Cached in the server and when a new request come, the application will clone the cached excel and use that for calculation. Once the calculation is done, the used excel is disposed. (I can't reuse the excel used for other's calculation)
So my question is "How can we put a limit to the excel usage ?". This limit should be application wide (not session wide).