简体   繁体   English

读取运行在浏览器中的Java applet的内存

[英]Read memory of Java applet running inside browser

I use C# to program and use ReadProcessMemory to read the memory of other processes running on the system. 我使用C#进行编程,并使用ReadProcessMemory读取系统上运行的其他进程的内存。 However, I'm unsure how to read the memory of a java applet that is running inside a browser? 但是,我不确定如何读取在浏览器中运行的Java小程序的内存? Has anyone tackled this before? 有人解决过吗?

Thanks. 谢谢。

Since 6u10 the default Java PlugIn runs outside of the browser process(es). 从6u10开始,默认Java插件在浏览器进程之外运行。 The process should be readily identifiable as a Java executable with PlugIn classes added to the bootstrap class path. 该过程应易于识别为Java可执行文件,并将PlugIn类添加到引导类路径中。

If the JVM is executing as part of the browser process, I suspect you won't be able to do this easily. 如果JVM是作为浏览器过程的一部分执行的,我怀疑您将无法轻松地执行此操作。 The closest you'll be able to get is to measure the browser memory consumption. 您将获得的最接近的结果是衡量浏览器的内存消耗。

However you could measure the memory consumption of the standalone applet viewer whilst running your applet, and then perhaps derive the applet memory consumption from that. 但是,您可以在运行小程序时测量独立小程序查看器的内存消耗,然后从中得出小程序的内存消耗。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM