Solved

inet cache expiry affecting response times

Posted on 2013-01-23
3
370 Views
Last Modified: 2013-04-15
Hey guys/gals.
Have another .net issue.

When testing my system under load, and the inet cache is turned on, with an inet cache expiry set to 60 mins, after 60 mins, we get a massive drop in transaction response times, and then a spike again to where it was, and this goes on for another hour.

We've done a bunch of digging around and have no idea why its doing this. If anything, the response times should spike when it dumps its cache and has to go back to the database to get the objects again....

Here is what the response times look like.

Response times with caching.

Note : When we turn off the inet cache, we don't get this behavior, response times are stable, however a little worse (as expected) due to no caching.

These are 2 response times on the graph.
0
Comment
Question by:samabdelhamid
  • 2
3 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 38815425
Not a .NET guy, but I could there be some type of "cache" cleanup?  Sort of like garbage collection in Java?
0
 

Author Comment

by:samabdelhamid
ID: 38817555
Yeah, there's GC in .net.
In fact, GC originated with .NET,  then it became standard in java, and that's how it got big...

What we see in that graph, is GC.
Everything makes sense ie., Gen 0,1 and 2 heap size all drop, GC goes up, etc.
However, it shouldn't affect it that much. The drop in response times are significant. In fact they are huge....
We can't understand why the drop is so high, or why it affects the response times so much.

Could we be caching too much and it's having a massive impact when the cace expires..?
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 38818680
I know in some of our early Java apps when GC ran it impacted performance drastically.  

I was not directly involved and this was 10 years ago, but IIRC we were led to believe is that it was due to a combination of things  various things.

The amount of memory the JVM was allowed to use along with the amount of things we were caching and what programs were not cleaning up.

When GC ran if there was a lot of stuff to clean up thrashing started as things were "re-cached."  The people that set it up originally limited the amount of memory the JVM was allowed to use because of limited physical RAM and they did not want to do any paging.

Since I not a .net guy, I can only suggest things based on Java.  So, I would suggest you look at how much you are caching, how much memory .net is using, and how much it is allowed to use.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question