Posts

Showing posts from August, 2013

Icon appearing on the Taskbar for a second

Image
After a recent patch, I started seeing an icon appear every minute or so on the taskbar and vanishing within a second. This was quite annoying while typing or watching full screen videos as it removed focus from my active window. To check what is causing the problem, I opened Task Manager (Ctrl+Shift+Esc) and sorted the processes by CPU. As soon as the icon reappeared, I notice  UI0Detect.exe showing on the top. UI0Detect.exe is an "Interactive Services Detection" that helps with user interaction if required by Windows services. Whatever UI this service was trying to present was not helping me as it popped up only for a fraction of a second, so I decided to disable it. The following steps helped me: Right-click on "Computer" icon on desktop and select "Manage" Expand "Services and Applications" Click on "Services" Right-click on "Interactive Services Detection" from the list Select "Stop" Right-click

Java Thread Stack Size Parameter -XssM

Each thread in the JVM stores method call arguments, return addresses and other information in a dedicated stack of its own. If a JAVA thread processes a large number of structures (example as a result of recursive calls) the stack size may not be sufficient to hold the information. The thread crashes with StackOverflowError . In such cases increase the stack size using the JVM parameter Xss. If the thread size is too large, the JVM runs into a risk of crashing with  OutOfMemoryError - unable to create new native thread (too many threads, each thread has a large stack). You need to decrease the Xss. To adjust this parameter on SAP J2EE engines, start Config Tool Select the Instance in the left side navigation pane On the right side pane, go to "VM Parameters" tab and then to the sub tab "Additional" Click on "New" if this is the first time you are adding Xss parameter Add -Xss<jvm-thread-stack-size>M (example -Xss3M) in the "Name&quo

SAP Oracle Database Refresh - Control file creation

Image
SAP refresh requires database to be restored and recovered on the target system. One of the most important steps in Oracle DB restore/recovery is the control file creation on the target system as the file locations and SID of the database change. Here are the steps to create control file: Generate the control file trace on the source system: 1. Ensure that the source DB is on open or mounted mode by running the following command select open_mode from v$database; The output should be MOUNTED or READ WRITE 2. Write the control file to trace by running the following command alter database backup controlfile to trace; 3. Find out where the trace is written by running the following show parameter dump; The location is most likely  /oracle/<SID>/saptrace/diag/rdbms/<sid>/<SID>/trace for SAP-Oracle database. Check the latest trace file. 4. Open the file and copy the section resembling the following as a new file ex: createcontrolfile.sql by removing all li

SAP J2EE dispatcher running but no server connected

If you call SAP application through browser and get the error " Dispatcher running but no server connected " and jcmon tool shows server nodes in Running status, check the following: Ensure that the joinPort (5NN20) is not used by any other process in the OS Ensure that the server node is not set in debug mode. The dispatcher will not route the requests to the server node that is running on debug mode. Check the parameter elements in the service r3setup. Ensure that the value is not 0. It should be equal to the number of server nodes clustered with the dispatcher Check if there are repeated full GCs running on the server node

How to deploy SCA files offline

New component deployment or applying fixes require the J2EE engine to be online. Assuming, you made a mistake that took J2EE offline and the only way to fix it is to apply a patch, you obviously need to get SAP's help. But if the system is a training or sandbox system, you can use batchdeployer to apply that fix while J2EE engine is offline. Go to /usr/sap/<SID>/<Instance>/j2ee/cluster/bootstrap/scripts Deploy the SCA using the following command syntax: batchdeployer.sh -sdu <absolute-path>/SCA-file.SCA

Brief Description of SAP Executable

Here is a list of SAP executables that you may find on your SAP systems. If you know of SAP exe files missing in from list, please leave a comment: R3check This is a tool that can check Cluster-Tables for errors. R3ldctl The tool for exporting all table structures to the file system during an OS/DB-Migration. R3load The table import & export tool of SAP during Installation, Upgrade and Migration. R3szchk The tool for determine the sizes of the different tables in the target database during the import in an OS/DB-Migration. R3ta Split large tables for export and import R3trans This is the tool, that does the real work for tp. tp controls the import and export of changes and r3trans does them using scripts, that were generated from tp. R3trans_164-20000978.SAR R3trans_164-20000978.SAR' is a compressed archive with the latest version of R3trans fr

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