To profile Java code from the command line, type:
For a Java applet
Purify [<Purify options>] /java <applet viewer> [<applet viewer options>] <applet>
For a Java class file
Purify [<Purify options>] /java <Java viewer> [<Java viewer options>] <class>
For a Java JAR file
Purify [<Purify options>] /java <Java viewer> [<Java viewer options>] <JAR switch> <JAR file>.jar <class>
For Java code launched from a container program
Purify [<Purify options>] /java <exename> [<arguments to exename>]
For example, to profile a local Java applet using the Sun JVM and save the memory profiling data, you can type:
purify /SaveData=index.pmy /java appletviewer file:///"C:\Program Files\MyJavaProjects\index.html"
Purify launches the applet index.htm, and saves the collected memory profile data to the Purify memory profiling data file (.pmy) index.pmy, without opening the memory profiling user interface.
To profile a Web applet in Microsoft Internet Explorer, you can type:
purify /java <path to IE>\iexplore -new http://www.mydomain.com/javadev/myjavaprojects/index.html
Notes:
§ For information about configuring your Java Runtime Environment for PurifyPlus, click .
§ When profiling Java applets launched by Internet Explorer 4.0 with the Active Desktop installed, you must pass the -new argument to Internet Explorer. Otherwise, memory data is not collected for your applet. To check whether the Active Desktop is installed, right-click your desktop and choose Properties from the shortcut menu. If the Active Desktop component is installed, the Properties dialog box has a Web tab.
(C) Copyright IBM Corporation 1992, 2010.