Posts

Showing posts with the label java tools

Deploying .ear files

The standard deployment tool JSPM does not have an option to deploy a .ear file. The requirements to deploy ear files on SAP NetWeaver JAVA can be met using alternative tools: Using Telnet Call the telnet tool using the following command telnet localhost 5NN08 (Replace NN with the instance number. Example if your instance number is 00, the telnet port will be 50008) You will be prompted for username/password, logon with a J2EE admin user (ex: J2EE_ADMIN or Administrator) List down the server nodes using the following lsc Take note of a server node and jump to any server node using the following jump <server node> (Usually jump 0) Go to deploy application add deploy Deploy the ear file deploy <full path to ear file> on_deploy_error=stop You can also use guiconsole script located at /usr/sap/<SID>/J<nr>/j2ee/console. This script connects to telnet port and deploys the file. Using Deploy Script Change your directory to the location where dep...

Java Memory Leak Analysis Tool: Step-by-step procedure to install Eclipse Memory Analyzer

Image
I have been dealing with OutOfMemory Errors on SAP J2EE applications and have used a few tools to analyze the reasons for JVM crash. I have finally settled at using Eclipse Memory Analyzer Tool. A step-by-step tutorial to install Eclipse Memory Analyzer Tool was published earlier. The menu options have changed slightly on MAT 1.3 (the latest version available to-date). Here are the instructions for MAT 1.3: Download required files to install Memory Analyzer Download Memory Analyzer from http://www.eclipse.org/mat/downloads.php If you are analyzing heap dump generated by SAP NetWeaver J2EE, download the Memory Analyzer Extension Pack zipped update site from https://www.sdn.sap.com/irj/scn/index?rid=/webcontent/uuid/c065b342-285c-2d10-559b-dffbb1aa5904 (requires access to SCN which is free). This update site contains information about SAP deployment locations. This file is not required if you are not analyzing an SAP application. If analyzing .phd files, download IBM's Dia...