简体   繁体   中英

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. However, I'm unsure how to read the memory of a java applet that is running inside a browser? Has anyone tackled this before?

Thanks.

Since 6u10 the default Java PlugIn runs outside of the browser process(es). The process should be readily identifiable as a Java executable with PlugIn classes added to the bootstrap class path.

If the JVM is executing as part of the browser process, I suspect you won't be able to do this easily. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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