Middleware and DevOps

Tuesday, 31 May 2016

OAM not starting with JDK 1.7

After upgrading java from JRockit 1.6 to JDK 1.7 OAM is not starting and getting the below error.

 <Warning> <Coherence> <BEA-000000> <2016-05-31 03:13:05.834/31.552 Oracle Coherence GE 3.7.1.1 <Warning> (thread=PacketListener1, member=n/a): TcpDatagramSocket{bind=ServerSocket[addr=/192.168.0.1,localport=9097]}, exception regarding peer test1/192.168.0.1:9095, General SSLEngine problem; Certificates does not conform to algorithm constraints>

Solution:

Login the console and

Click on oam_server1 -- SSL -- Advanced -- and select JSSE SSL.

Also disable hostname verification to none.


Restart the OAM managed server.
Posted by Manoj Kinage at 08:37 3 comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: OAM

Saturday, 14 May 2016

Recovering the WebLogic Admin Password and datasource password using WLST

To recover the Admin password and data source password using the wlst, follow the below steps.

$ cd $DOMAIN_HOME/bin

$. ./setDomainEnv.sh

start wlst

$cd $WL_HOME/common/bin/wlst.sh

run the following command

from weblogic.security.internal import BootProperties .BootProperties.load(“/oracle/Middleware/user_project/domains/PROD_DOMAIN/servers/PROD_Adminserver/security/boot.properties”,false)
prop = BootProperties.getBootProperties()
print “username: ” + prop.getOneClient()
print “password: ” + prop.getTwoClient ()

the username and password will be displayed on the screen, using the same method we can recover the data source password also.
Posted by Manoj Kinage at 04:25 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: WebLogic

Enabling JRockit Mission Control Flight Recorder

    To enable to flight recording add the following server start parameter

-XX:FlightRecorderOptions=defaultrecording=true,disk=true,repository=./jfr/Prod_server01,
maxage=1440ms,size=100m

maxage and size value 0 = unlimited


 Generating the heap dump automatically on OOM ( Out Of Memory ) conditions

add the below argument in server startup parameter 

-XX:+HeapDumpOnOutOfMemoryError

heap file dump generating same like generating using jrcmd command

Posted by Manoj Kinage at 04:21 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: WebLogic

Thread Dumps

The thread dumps can be taken from the administration console, shell or using jrcmd command in weblogic

              a)   Using administration console

console — environment — servers– server name — monitoring — threads — Dump Thread Stacks

              b)   Using jrcmd

$ps aux | grep Prod_server01 | grep -v grep | awk ‘{print $2}

$jrcmd PID print_threads some_log_file

     c)   Using a shell command


$Kill -3 Server PID
Posted by Manoj Kinage at 04:17 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: WebLogic

Set page load time in access.log



Login to the Console —> lock & edit —> Environment —> servers —> managed server name  —> Logging – > http – > advanced —> extended —> format – > and type the logging format.

c-ip date time cs-method cs-uri sc-status bytes time-taken

save and activate changes, repeat the above procedure for all managed server
It will show you which pages or request taken longer time
Posted by Manoj Kinage at 04:10 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: WebLogic

Identity Store Configuration — Add multiple Authenticatior in WebLoigc


After Adding the multiple authentication provider  in WebLogic, we need to add some additional property.
To Add these property first login to the em and perform the below steps,

Expand the Domain Name –> Right Click on domain name –> Identity Store Configuration –> then add the below property

        1)  Virtualize –> true 

    2)   PROPERTY_ATTRIBUTE_MAPPING  –> GUID=uid

        3) user.login.attr    –> uid

       4)  CONNECTION_POOL_CLASS  –> oracle.security.idm.providers.stdldap.JNDIPool — This comes default

=====================================================================================================

After adding the virtualize=true property,the side effect is that your domain logs may capturing a high value of libOVD

warning messages.

To prevent that unwanted messages perform the following the steps

Connect to the SOA domain:

connect(‘<admin user>’,'<admin password>’,’t3://<admin host>:<admin port>’)

Run this command for each managed server:

setLogLevel(target='<managed server name>’,logger=’oracle.ods.virtualization’,level=’ERROR:1′,addLogger=1)

Connect to the WCP domain:

connect(‘<admin user>’,'<admin password>’,’t3://<admin host>:<admin port>’)

Run this command for each managed server:

setLogLevel(target='<managed server name>’,logger=’oracle.ods.virtualization’,level=’ERROR:1′,addLogger=1)


**Restarts are not necessary.**
Posted by Manoj Kinage at 00:19 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: WebLogic

Friday, 13 May 2016

Easy steps to resize partition on Linux using btrfs filesystem

The BRTFS file system has a advanced features from ext4 file system, Resizing of file file system with brtfs is very easy. In this case we are resizing /home directory to extend / partition

step 1 : Reduce the 200 G from /home partition

#btrfs filesystem resize -200G /home

step 2 :- check the /home partition is reduced

#btrfs filesystem show df /home

#btrfs filesystem df /home

#btrfs filesystem show

# btrfs filesystem resize -200G /home

Step 3: –

#lvdisplay

#lvreduce -L -200G /dev/mapper/vg_XXXXXX-lv_home

Extend The root partition: –

#lvextend -L +200G /dev/mapper/vg_XXXXXXX-lv_root

#btrfs filesystem resize +200G /

#df

#lvdisplay

#btrfs filesystem show

#btrfs filesystem df /

#btrfs filesystem df /home

There is no need to stop any process.
Posted by Manoj Kinage at 22:20 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Linux
Newer Posts Home
Subscribe to: Posts (Atom)

About Me

Manoj Kinage
View my complete profile

Blog Archive

  • ►  2022 (3)
    • ►  June (2)
    • ►  January (1)
  • ►  2020 (6)
    • ►  June (2)
    • ►  May (2)
    • ►  April (1)
    • ►  February (1)
  • ►  2019 (2)
    • ►  October (1)
    • ►  September (1)
  • ►  2018 (2)
    • ►  September (1)
    • ►  June (1)
  • ►  2017 (5)
    • ►  June (1)
    • ►  April (1)
    • ►  March (2)
    • ►  January (1)
  • ▼  2016 (17)
    • ►  December (1)
    • ►  November (1)
    • ►  September (1)
    • ►  July (1)
    • ►  June (6)
    • ▼  May (7)
      • OAM not starting with JDK 1.7
      • Recovering the WebLogic Admin Password and datasou...
      • Enabling JRockit Mission Control Flight Recorder
      • Thread Dumps
      • Set page load time in access.log
      • Identity Store Configuration — Add multiple Authen...
      • Easy steps to resize partition on Linux using btrf...
Watermark theme. Powered by Blogger.