We have an app that under high load we are seeing significant CPU use attributed to java.lang.Object wait() when making Web Service calls waiting for a response. My understanding is that wait() shouldn't be a consumer of CPU - is that correct or is there something about how dynaTrace attributes CPU use to what is basically a native code call? We are using an IBM 1.7 JVM
This is an example of what I'm referring to - is wait() actually using 759.65ms of CPU?
Thanks,
Dean
Answer by Andreas G. ·
Hi Dean
Thats an interesting observation. You are right that wait should spend most of its time in actual wait. I just googled for that and found some intereseting discussions on stackoverflow, e.g: http://stackoverflow.com/questions/8656912/cpu-usage-and-object-wait, http://stackoverflow.com/questions/15990779/high-cpu-within-object-wait
I will bring this to the attention of our engineers. Maybe they have an explanation for this
Andi
JANUARY 15, 3:00 PM GMT / 10:00 AM ET