Monday, August 15, 2016

Starting OHS 12c via startComponent takes several minutes on a Linux Virtual Machine - SOLVED

I recently started working with Oracle HTTP server on a Linux VM. On trying to start the OHS using the startComponent script I was surprised to observe the startup duration was over 8 minutes! The same took seconds in 11g version of the same software. After few research on metalink I could solve the issue. I am providing the solution below.

Issue Applies To

The issue described and solution offered applied to below Oracle FMW Components.

Oracle HTTP Server 12.2.1 Installed on RHEL 6 Virtual Machine. The same issue/solution applies to OHS 12.1. and later.

Issue Description

Starting from OHS 12C, the OHSservices are monitored/managed by Node Manager. Once the Node manager is started ,the OHS service is started using startComponent script.While trying to do the script gets stuck  for minutes (8 Minutes in my case!)

$DOMAIN_HOME/bin/ ohs1

    Starting system Component ohs1 ...

    Initializing WebLogic Scripting Tool (WLST) ...

    Welcome to WebLogic Server Administration Scripting Shell

    Type help() for help on available commands

    Reading domain from
     Here it just sits for several minutes 
    Connecting to Node Manager ...
    Successfully Connected to Node Manager.
    Starting server ohs1 ...


The problem is due to random number generation (entropy) on the Linux VM. More on the entropy issues can be found in Metalink note NOTE:1574979.1.The vm was running out of entropy. After changing where Java got its random numbers from, the startup time came down manifold!


1) Stop OHS ohs1

2) Backup and edit

3) Change securerandom.source
(In 12.2.1 this is securerandom.source=file:/dev/random)

4) Start OHS ohs1


Hurray! The startup time for OHS now takes close to 25 seconds compared to 8 minutes earlier!


NOTE:2006106.1 - Starting OHS 12c via startComponent takes several minutes on a Virtual Machine

NOTE:1574979.1 - How to Diagnose a Linux Entropy Issue on WebLogic Server Instances


  1. Great and useful blog. Creating content regularly is very tough. Your points are motivated me. Excellent blog after reading this I am impressed a lot.
    Oracle Fusion HCM Technical Training

  2. BlueHost is definitely the best hosting provider for any hosting services you need.

  3. Thanks for sharing nice information, Hope you will post many more articles like this.

    Oracle Fusion Financials Online Training

  4. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    oracle fusion scm online training

  5. Thnx saved me probably hours of research, migrated to wls 12.2 installed on fedora 26 and working ok in produciton was centos 7 and had this problem...
    Great blog.

  6. It 's amazing article and useful for developers
    Oracle SOA Online Training