Java Platform, Standard Edition Troubleshooting Guide
Contents    Previous    Next

16.4 Development Tips

For Java Web Start applications and applets, you can use most of techniques available to debug and profile standalone applications, except you will need to use the attach mechanism instead of direct launch.

Note: Both plugin and Java Web Start will spawn additional java or javaw processes that will actually run the JVM executing the application or applet. You need to attach to those processes to be able to collect information about your applet. For example, if you want to get a memory dump of your applet, then first you need to figure out the process id for the java process executing the PluginMain class. For example, use theThe jps Utility utility from the JDK and then use The jmap Utility to get a memory dump.

The following are development tips for debugging applets.

Contents    Previous    Next

Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved.