Friday, 28 November 2014
Seeing slow startup of SOA OSB and other Java based application then verify Entropy
We faced slow startup of Domain Creation, slow startup of Domain and resolved using proper Entropy settings:
You should be able to select the faster-but-slightly-less-secure /dev/urandom on Linux using:
Default /dev/urandom is configured, but as mentioned this is ignored by Java.
-Djava.security.egd=file:/dev/urandom
However, this doesn’t work with Java 5 and later (Java Bug 6202721). The suggested work-around is to use:
-Djava.security.egd=file:/dev/./urandom(note the extra ‘/./’)
You can also set in your environment like below in setDomainEnv.sh
References:
http://theheat.dk/blog/?p=1539
http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom
You should be able to select the faster-but-slightly-less-secure /dev/urandom on Linux using:
$JAVA_HOME
/jre/lib/security/java
.security
Default /dev/urandom is configured, but as mentioned this is ignored by Java.
-Djava.security.egd=file:/dev/urandom
However, this doesn’t work with Java 5 and later (Java Bug 6202721). The suggested work-around is to use:
-Djava.security.egd=file:/dev/./urandom(note the extra ‘/./’)
You can also set in your environment like below in setDomainEnv.sh
if
[
"${USER_MEM_ARGS}"
!=
""
] ;
then
MEM_ARGS="${USER_MEM_ARGS}
export
MEM_ARGS
fi
MEM_ARGS=
"${MEM_ARGS} -Djava.security.egd=file:/dev/./urandom"
Or at runtime:
export
CONFIG_JVM_ARGS=
"-Djava.security.egd=file:/dev/./urandom"
/u01/app/oracle/product/fmw/wlserver_12
.1
/common/bin/config
.sh
References:
http://theheat.dk/blog/?p=1539
http://stackoverflow.com/questions/137212/how-to-solve-performance-problem-with-java-securerandom
How to uninstall/remove EM12c Agent
./emctl stop agent
/opt/app/oracle/agent12c/core/12.1.0.3.0/perl/bin/perl /opt/app/oracle/agent12c/core/12.1.0.3.0/sysman/install/AgentDeinstall.pl -agentHome /opt/app/oracle/agent12c
rm -Rf /opt/app/oracle/agent12c
From host where emcli is installed:
emcli delete_target -name="test.example.com:1836" -type="oracle_emd" -delete_monitored_targets –async
Reference:
https://docs.oracle.com/cd/E24628_01/install.121/e24089/deinstall_agent.htm#CBBCEJHG
Check any left out info:
select target_name,target_type from MGMT_TARGETS_DELETE where DELETE_COMPLETE_TIME is null
select target_name,target_type from MGMT_TARGETS_DELETE where target_name like '%spare%' and target_type='oracle_emd'
You can try:
exec mgmt_admin.delete_target('target_name','target_type');
If the agent install fails to register with OEM than try:
cd /opt/app/oracle/agent12c/agent_inst/bin/
/opt/app/oracle/agent12c/agent_inst/bin/emctl secure agent
/opt/app/oracle/agent12c/agent_inst/bin/emctl start agent
/opt/app/oracle/agent12c/agent_inst/bin/emctl config agent addInternalTargets
/opt/app/oracle/agent12c/agent_inst/bin/emctl upload
/opt/app/oracle/agent12c/core/12.1.0.3.0/perl/bin/perl /opt/app/oracle/agent12c/core/12.1.0.3.0/sysman/install/AgentDeinstall.pl -agentHome /opt/app/oracle/agent12c
rm -Rf /opt/app/oracle/agent12c
From host where emcli is installed:
emcli delete_target -name="test.example.com:1836" -type="oracle_emd" -delete_monitored_targets –async
Reference:
https://docs.oracle.com/cd/E24628_01/install.121/e24089/deinstall_agent.htm#CBBCEJHG
Check any left out info:
select target_name,target_type from MGMT_TARGETS_DELETE where DELETE_COMPLETE_TIME is null
select target_name,target_type from MGMT_TARGETS_DELETE where target_name like '%spare%' and target_type='oracle_emd'
You can try:
exec mgmt_admin.delete_target('target_name','target_type');
If the agent install fails to register with OEM than try:
cd /opt/app/oracle/agent12c/agent_inst/bin/
/opt/app/oracle/agent12c/agent_inst/bin/emctl secure agent
/opt/app/oracle/agent12c/agent_inst/bin/emctl start agent
/opt/app/oracle/agent12c/agent_inst/bin/emctl config agent addInternalTargets
/opt/app/oracle/agent12c/agent_inst/bin/emctl upload
Subscribe to:
Posts (Atom)