Home Oracle Weblogic Solving slow weblogic startup in Linux
Solving slow weblogic startup in Linux PDF Print E-mail
Written by Schelstraete Bart   
Friday, 31 July 2009 21:35

Sometimes you can have a lot of propblems starting Weblogic under linux.  It can sometimes take ages before the Weblogic really starts.

 


<Mar 12, 2009 12:35:34 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3  Fri Jul 25 16:30:05 EDT 2008 1137967 >
<Mar 12, 2009 12:46:37 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>


Turns out Weblogic uses random number generator during start up.

Because of the bug in java it reads ‘randomness’ from /dev/random. /dev/random is very good random numbers generators but it is extremely slow.

It can take sometimes 10 minutes or more to generate one number. /dev/urandom is not that good, but it is instant.


Java somehow maps /dev/urandom file to /dev/random. That’s why default settings in $JAVA_HOME/jre/lib/security/java.security are useless.

Possible solutions:

 

  • Add  “-Djava.security.egd=file:/dev/./urandom” (/dev/urandom does not work) to java parameters.
  • mv /dev/random /dev/random.ORIG ; ln /dev/urandom /dev/random
  • Best solution is to change $JAVA_HOME/jre/lib/security/java.security

Replace securerandom.source with

securerandom.source=file:/dev/./urandom

 

Then try to start the web

 

Comments
Search
Only registered users can write comments!

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

Last Updated on Saturday, 01 August 2009 10:24
 

Login