Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I built a web site and besides the repositories functions which are part of the instance, I basically declared all other functions in the site as static. I guess this what I knew from the other place I used to work in. Now I try to make this site production and I noticed the site's IIS process's Ram is accumulating quickly and the site get stuck from the time to time on same functions that are normally quick. Do my static functions can be the cause of that? what are the downsides of this method? any ideas for improvements would be greatly appreciated...

share|improve this question
2  
It entirely depends on what your static functions do. – Grant Thomas 12 hours ago
Try measuring what's using the RAM – doctorlove 12 hours ago
The technical guideline is that when a function can be static it should be static. This should not impact the memory use at all. But it sounds a bit strange to have "all other functions static". – Henk Holterman 12 hours ago
I guess your methods are not thread safe and some variable is not disposed correctly. But without code, nobody can verify. – Nullius 2 hours ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.