Splunk AppDynamics

Same set of functions called repetitively in appdynamics call stack without recursion

CommunityUser
Splunk Employee
Splunk Employee

Please see the attached screenshot of my call stack. We can see that in the root function, at the same level, two functions - load*Range and get*Collection  are called again and again despite the fact that the parent function has no type of recursion and hence, it should call each of these functions only once, not multiple times in the same order. Any idea on why the call stack shows this kind of trace?

image.png

Labels (1)
0 Karma

Peter_Holditch
Builder

Is the code retrieving some kind of large result set from the database?

If so, that would probably explain what you're seeing.

CommunityUser
Splunk Employee
Splunk Employee

Hi Peter,

Just in case you didn't receive my previous question, I just wanted to ask if you could explain your answer a bit more in detail? There is data retrieval from a big database, indeed.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi @Peter.Holditch Sorry for posting again (didn't know we can tag users like this). Could you please explain bit more clearly why there are repititions when the retrieval is from a large database?

Thanks,

0 Karma

Peter_Holditch
Builder

I suspect in this case that the exit to the database (which is the instrumented method) is being called multiple times within the higher levels of the database driver as it iterates across the large result set you are retrieving.

In that case, you see one entry in the snapshot per iteration.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
Yes, it indeed is accessing data from a large database. Could you please explain a bit clearly why is this happening?
0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...