Posts

Showing posts from February 28, 2016

SSL Configuration steps for Apache

First make sure that apache installations and SSL changes have done, Below steps to configure SSL certificates: Step 1 : Move to "extra" directory of apache. Ex: cd /APACHE_HOME/conf/extra Step 2 : Generate Private Key on the Server Running Apache + mod_ssl Ex: openssl genrsa -des3 -out  .key 4096 So your result will be :  .key Step 3 : Generate a Certificate Signing Request (CSR) Ex: openssl req -new -key  .key –out  .csr So your result will be :  .csr Step 4: Generate a Self-Signed SSL Certificate Ex: openssl x509 -req -days 365 -in  .csr –signkey  .key -out  .crt So your result will be :  .crt Step 5: Generate a CA file Ex: openssl req -new -x509 -days 365 -key in  .key -out in  .ca So your result will be :  .ca Step 6: Generate a DER file Ex: openssl x509 -in  .crt -out  .der.crt -outform DER So your result will be :  .der.crt Step 7: Removal of Passphrase (Optional if you want to remove passphrase) Ex:...

What is a Thread dump in unix/linux and windows:

A thread dump is a snapshot of all threads currently active in a Java Virtual Machine (JVM), showing their state and stack traces. It's invaluable for diagnosing performance issues, deadlocks, and bottlenecks. It shows the current state (e.g.,  RUNNABLE ,  WAITING ,  BLOCKED , etc.) and the stack trace for each thread. Thread dumps are crucial for diagnosing  performance issues ,  deadlocks ,  thread contention , or  application hangs . 🧵  Why Take a Thread Dump? To analyze CPU spikes or hangs. To identify deadlocks or blocked threads. To investigate thread pool behaviour To troubleshoot memory and performance issues. 📌 How to Take a Thread Dump Using  kill -3  command: Sends a  SIGQUIT  signal to the JVM process. Output goes to the standard output ( stdout ) or log file (e.g.,  catalina.out  for Tomcat). Using Process Explorer  (GUI method): Right-click Java process → Create Dump → Create Thread Dump Using too...

What is Proxy server ?Types of proxy server

Proxy Server: In general words proxy server is nothing but an mediator(ex: bus, if you want to go to your home by using bus you can reach your destination) the same way we are using proxy server in weblogic.  Proxy Server is an intermediary server between your web browser (client) which requests for some information/data and your server (web server/Application server) that process the data. Types of Proxy Server:   They are three different types of proxy servers. They are as follows      1)   Forward Proxy Servers : Forward Proxy Server is a server which forwards the request from the intranet clients (web browser) to the internet servers. These proxy servers are present in the same network of your client.      2)Open Proxy Server: An open proxy is a proxy server which is accessible by any Internet user. Any proxy server that doesn’t restrict its client base to its own set of clients and allows any other client to connect...

WebLogic server Life Cycle:

Starting state: During the starting state that instances ready the domain configuration data from its configuration directory. Whereas the Manager server will get their configuration data from Admin server. It is in this state that the instance the basic services such as the kernal and execute queues, the container service for logging and Node manager service. The server also deploy during this phase. Stand by:   In this state the server Instance will allow you to issue just to administrative requests. You can me the server state either running or shutdown state. Normally the server instance will automatically transition through the stand by state to next stage unless you start the instance with the start in stand by command. Note: All ports are closed in this stat. But you can quickly transition to a running state. Admin mode:  The admin mode permits only Administrative task, deploying applications with those applications being able to only request from user...

What is boot.properties file and how to create

Boot.properties is a file, it containing  weblogic server username and password . If your server is in production mode then only you have to create manually this boot.properties file. If your server is in Development then you no need to create this file because server it self create this file while creating Domain. A boot identity file contains the user credentials for starting and stopping an instance of WebLogic Server. An administration server or managed server can refer to this file for user credentials instead of prompting at the command line to provide them. To Create boot.properties: Go to below location Win :   C:\Oracle\Middleware\user_projects\domains\test_domain\servers\AdminServer\ Linux : Oracle\Middleware\user_projects\domains\test_domain\servers\AdminServer\ 1.First you have to create security folder under AdminServer 2.Create boot.properties file under security folder. 3.Open notepad and write the below two lines username=********** password=*****...

Differences b/w Development and Production Env

SSL: Development Mode: You can use the demonstration digital certificates and the demonstration keystores provided by the WebLogic Server security services. With these certificates, you can design your application to work within environments secured by SSL. Production Mode: You must not use the demonstration digital certificates and the demonstration keystores. If you do so, a warning message is displayed. Deploying applications: Development Mode: WebLogic Server instances can deploy and update applications that reside in the domain_name/autodeploy directory automatically. It is recommended that this method be used only in a single-server development environment. Production Mode: The auto-deployment feature is disabled; so, you must use the WebLogic Server administration console, the weblogic.Deployer tool, or the WebLogic Scripting Tool. Log file rotation: Development Mode: By default, when you start the WebLogic Server instance, the server automatically renames (rot...

Change Heap in SOA

If you want to change default Memory Settings in SOA and Customize them according to your Admin and Managed Servers. Increase Heap size memory in SOA Server follow below steps: Backup for setSOADomainEnv.sh (/user_projects/domain/<soa_domain_name>/bin/setSOADomainEnv.sh Update setSOADomainEnv.sh Find - Below Values in setSOADomainEnv.sh: DEFAULT_MEM_ARGS="-Xms512m -Xmx1024m" PORT_MEM_ARGS="-Xms768m -Xmx1536m" Replace With - Below Custom Values: # line to specify different Xmx and Xms values to soa_server. if [ "${SERVER_NAME}" = "soa_server1" ] ; then DEFAULT_MEM_ARGS="-Xms2048m -Xmx2048m" PORT_MEM_ARGS="-Xms2048m -Xmx2048m" elif [ "${SERVER_NAME}" = "" ] || [ "${SERVER_NAME}" = "AdminServer" ]; then DEFAULT_MEM_ARGS="-Xms512m -Xmx512m" PORT_MEM_ARGS="-Xms512m -Xmx512m" fi 3. Restart Admin and Managed Servers, Check new ...

Change JDK and configuration of new JDK in Weblogic Server

Install the New JDK Steps: Download the JDK: Obtain the desired JDK version (e.g., JRockit) from the official Oracle Technology Network (OTN). Transfer the Installer: Use FTP or another method to transfer the installer to your server. Set Permissions and Install: Make the installer executable chmod 755 jrockit-jdk1.6.0_29-R28.2.2-4.1.0-linux-x64.bin Run the installer: ./jrockit-jdk1.6.0_29-R28.2.2-4.1.0-linux-x64.bin Install the JDK to your desired location,  e.g.,  /u01/Oracle/jrockit-r28.2.2 2. Update WebLogic Configuration to Use the New JDK Steps: Shutdown WebLogic Servers: Ensure all managed servers in the WebLogic domain are stopped. Backup Configuration Files: Navigate to the domain's  bin  directory cd /u01/Oracle/Middleware/user_projects/domains/<domain_name>/bin cp setDomainEnv.sh setDomainEnv.sh.bak Open the file in a text editor. Locate and comment out existing  JAVA_HOME  and  JAVA_VENDOR  settings: Navigate to the WebLogic comm...

Oracle weblogic Patch

Image
A  patch  is a piece of software designed to update a computer program or its supporting data, to fix or improve it. This includes fixing security vulnerabilities and other bugs, with such  patches  usually called bugfixes or bug fixes, and improving the usability or performance. Weblogic patch: For every quarter oracle will release patches in 2015 oracle released 3 patches for weblogic ,find the below Jan - 12UV --- search for more info for this bug in oracle April - YUIS --- search for more info for this bug in oracle July - EJUW --- search for more info for this bug in oracle Applying the patch in the linux environment.For windows environment use .cmd instead of sh. Step :1 Check the weblogic version Go to the below location and execute setEnv /oracle/.../.../wlserver_10.3/server/bin After executing set env check  weblogic version  by using  java weblogic.version Step 2:  Go to the below location and copy patch file ...