Posts

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 ...