开发者

Could loading a DLL into java result in increased CPU usage in java.exe?

开发者 https://www.devze.com 2023-04-10 11:22 出处:网络
I have a java applet that loads a dll.The dll is used to interface with a third party piece of software.The dll launches the third party software and then is used to send data to and receive data from

I have a java applet that loads a dll. The dll is used to interface with a third party piece of software. The dll launches the third party software and then is used to send data to and receive data from that software. We occasionally are seeing a spike in CPU usage once the dll is loaded. The spike is associated with java.exe not with the third party software. But, the spike only occurs after the dll is loaded. 开发者_高级运维 This is a lot of explanation for a very simple question. Is it possible, that dll, itself could be consuming CPU and that this would show up on the system console as java.exe consuming a lot of CPU?

In other words, given a state where java.exe appears to be consuming a lot of CPU, could this be caused by a loaded dll?

Thank you,

Elliott


Yes, when a dll is loaded, it is loaded 'into' a process. Any memory or CPU used by the dll is reported as part of the process that loaded it. If a dll function spikes the CPU when processing received data, it will be reported under the application that loaded the dll.

If you have process explorer, you can open the properties of a process. Right-click a process and choose properties, then go to the threads tab of the properties dialog. This can show the CPU usage per thread, and each thread is identified by the image (exe or dll) and its entry point.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号