Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7827847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:04:01+00:00 2026-06-02T10:04:01+00:00

I have a problem with EF 4.1. We found a performance issue in the

  • 0

I have a problem with EF 4.1. We found a performance issue in the project in one method, I started using dotTrace for resolving the issue, and I’ve found such strange behavior:
enter image description here

When application starts – everything is ok, first calls to the method work fine but later the time spent in Monitor.Enter grows each time I perform some actions on site.

I understand that the problem is with locking, and it means that something blocks the calls, but I don’t have any idea what is happening there. If I had sources of the EF 4.1 I could try to debug the whole thing, but it’s the last thing I would do.
Could you please give me some tips where to look, and what can probably influence such behavior? The first thing I thought are transactions of course but I couldn’t find any transactions used in this project, at least explicitly!
You’re welcome to write any idea you have, cause I can’t find any similar issue on the internet.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:04:03+00:00Added an answer on June 2, 2026 at 10:04 am

    I’ve found an issue in our code. It was, as always, small cause that had huge impact on everything.

    As I’ve already said, in the application there was strange issue – every call to the MVC application and therefore to the EntityFramework was in separate AppDomain. EF CodeFirst builds and compiles model once per AppDomain and in my case it was building and compiling the model every time, cause it was a separate AppDomain. The cause was simple, someone in other team have added filesystem logging to the assembly that was called, and every call to the class of that assembly changed the file and WebServer was restarting the application. I have just turned off the logging and it fixed the problem. Now I don’t have this performance issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a problem using the Catch Clipboard Events code found on this link
We have encountered a very strange class not found problem in our web app
I'am currently working on GWTs Activity-Place implementation. Now I have found problem with the
i have problem with libhid . i found that there 2 way 4 accessing
I have problem with text drawing around Circle. I found great sample in C#
Hi i have problem with this code, i found it on the internet and
i have this problem: ms-access could not delete and i found a potential solution
I have two branches: trunk, production. I have found a problem in trunk, made
i have a little problem, i'm searching, but i can't found what i need,
I have found a minor problem when i install my application on real android

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.