Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle HTTP Server and Node Manager

user9531869May 4 2015 — edited May 4 2015

Hi,

I installed Oracle HTTP Server with Node Manager. I set "CrashRecoveryEnabled=true" in the nodemanager.properties. It works fine when I reboot the machine, but when I kill the root process (kill -9), the new process can not be started as the previous process does not have enough time to die and still uses the ports. I tried to run "nmGenBootStartupProps" in wlst, or set the

RestartMax=2

RestartDelaySeconds=5

variables in "[domain_name]/servers/[server_name]/data/nodemanager/startup.properties" - no success.

Any ideas, how to set the number of retries and the delay between restarts?

Versions:

Oracle HTTP Server: version="12.1.3.0.0"

java version "1.7.0_79"

OHS log:

[2015-05-04T11:43:48.0653+02:00] [OHS] [NOTIFICATION:16] [OHS-9999] [mod_weblogic.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18651] [tid: 140166670751552] [user: app] [VirtualHost: main]  WebLogic Server Plugin version 12.1.3 <WLSPLUGINS_12.1.3.0.0_LINUX.X64_140421.1459>

[2015-05-04T11:43:48.0854+02:00] [OHS] [NOTIFICATION:16] [OHS-9999] [core.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18651] [tid: 140166670751552] [user: app] [VirtualHost: main]  Oracle-HTTP-Server-12c/12.1.3.0.0 (Unix) mod_ssl/12.1.3.0.0 OtherSSL/0.0.0 mod_plsql/11.1.1.0.0 configured -- resuming normal operations

[2015-05-04T11:48:53.9584+02:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18838] [tid: 140103489120064] [user: app] [VirtualHost: main] (98)Address already in use:  make_sock: could not bind to address 192.168.0.226:80

[2015-05-04T11:48:53.9585+02:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18838] [tid: 140103489120064] [user: app] [VirtualHost: main]  no listening sockets available, shutting down

[2015-05-04T11:48:53.9585+02:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [host_id: dev-oep-soalb-1] [host_addr: 192.168.0.226] [pid: 18838] [tid: 140103489120064] [user: app] [VirtualHost: main]  Unable to open logs

Node Manager log:

<May 4, 2015 11:37:50 AM CEST> <INFO> <Loading domains file: /opt/app/soalb_domain/nodemanager/nodemanager.domains>

<May 4, 2015 11:40:18 AM CEST> <INFO> <Loading identity key store: FileName=/opt/app/soalb_domain/security/DemoIdentity.jks, Type=jks, PassPhraseUsed=true>

<May 4, 2015 11:40:18 AM CEST> <INFO> <Loaded NodeManager configuration properties from '/opt/app/soalb_domain/nodemanager/nodemanager.properties'>

<May 4, 2015 11:40:18 AM CEST> <INFO> <Node manager v12.1.3 #1604337>

<May 4, 2015 11:40:18 AM CEST> <INFO> <soalb_domain> <soalb_server1> <Startup configuration properties loaded from "/opt/app/soalb_domain/servers/soalb_server1/data/nodemanager/startup.properties">

<May 4, 2015 11:40:19 AM CEST> <INFO> <Secure socket listener started on port 5556, host localhost/127.0.0.1>

<May 4, 2015 11:43:53 AM CEST> <INFO> <soalb_domain> <soalb_server1> <The server 'soalb_server1' is running now.>

<May 4, 2015 11:48:53 AM CEST> <INFO> <soalb_domain> <soalb_server1> <The server 'soalb_server1' with process id 18672 is no longer alive; waiting for the process to die.>

<May 4, 2015 11:48:53 AM CEST> <INFO> <soalb_domain> <soalb_server1> <Server failed so attempting to restart (restart count = 1)>

<May 4, 2015 11:48:54 AM CEST> <SEVERE> <soalb_domain> <soalb_server1> <Unexpected error while monitoring server>

java.io.IOException: Failed to start the server soalb_server1

Check log file /opt/app/soalb_domain/system_components/OHS/ohs_nm.log

Check log file /opt/app/soalb_domain/servers/soalb_server1/logs/soalb_server1.log

        at oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl.buildIoException(Unknown Source)

        at oracle.ohs.plugin.nodemanager.OhsProcessManagementPlugin$ProcessImpl.start(Unknown Source)

        at weblogic.nodemanager.server.DecoratedSystemComponentManager$DecoratedProcess.start(DecoratedSystemComponentManager.java:129)

        at weblogic.nodemanager.server.ServerMonitor.startProcess(ServerMonitor.java:441)

        at weblogic.nodemanager.server.ServerMonitor.runMonitor(ServerMonitor.java:406)

        at weblogic.nodemanager.server.ServerMonitor.run(ServerMonitor.java:295)

        at java.lang.Thread.run(Thread.java:744)

ohs_nm.log:

<2015-05-04 11:48:53> <INFO> <OHS-0> <The server 'soalb_server1' with process id 18672 is no longer alive; waiting for the process to die.>

<2015-05-04 11:48:53> <INFO> <OHS-0> <Server failed so attempting to restart (restart count = 1)>

<2015-05-04 11:48:53> <INFO> <OHS-4018> <Starting server soalb_server1>

<2015-05-04 11:48:53> <INFO> <OHS-0> <Running /opt/app/ohs12c/wlserver/../ohs/bin/httpd.sh httpd.worker -k start -f /opt/app/soalb_domain/config/fmwconfig/components/OHS/instances/soalb_server1/httpd.conf>

<2015-05-04 11:48:53> <INFO> <OHS-0> <[Mon May 04 11:48:53 2015] [warn] Errors will be logged into /opt/app/soalb_domain/servers/soalb_server1/logs/soalb_server1.log>

<2015-05-04 11:48:54> <INFO> <OHS-0> </opt/app/ohs12c/wlserver/../ohs/bin/httpd.sh httpd.worker -k start -f /opt/app/soalb_domain/config/fmwconfig/components/OHS/instances/soalb_server1/httpd.conf: exit status = 1>

<2015-05-04 11:48:54> <INFO> <OHS-4005> <Check the instance log file for more information: /opt/app/soalb_domain/servers/soalb_server1/logs/soalb_server1.log>

<2015-05-04 11:48:54> <SEVERE> <OHS-0> <Failed to start the server soalb_server1>

<2015-05-04 11:48:54> <SEVERE> <OHS-0> <Unexpected error while monitoring server>

Node Manager properties:

#Wed Apr 29 18:31:26 CEST 2015

#Node manager properties

#Wed Apr 29 17:18:21 CEST 2015

DomainsFile=/opt/app/soalb_domain/nodemanager/nodemanager.domains

LogLimit=0

PropertiesVersion=12.1.3

AuthenticationEnabled=true

NodeManagerHome=/opt/app/soalb_domain/nodemanager

JavaHome=/opt/app/jdk1.7.0_79

LogLevel=INFO

DomainsFileEnabled=true

StartScriptName=startWebLogic.sh

ListenAddress=localhost

NativeVersionEnabled=true

ListenPort=5556

LogToStderr=true

SecureListener=true

LogCount=1

StopScriptEnabled=false

QuitEnabled=false

LogAppend=true

StateCheckInterval=5000

CrashRecoveryEnabled=true

StartScriptEnabled=true

LogFile=/opt/app/soalb_domain/nodemanager/nodemanager.log

LogFormatter=weblogic.nodemanager.server.LogFormatter

ListenBacklog=50

Startup properties:

#SSLArguments=-Dweblogic.security.SSL.ignoreHostnameVerification\=false -Dweblogic.ReverseDNSAllowed\=false

RestartMax=2

RestartDelaySeconds=5

FileTimeSpan=24

RestartInterval=3600

FileTimeSpanFactor=3600000

RotatedFileCount=7

RotationType=bySize

#AdminURL=http\://192.168.0.224\:7001

NumberOfFilesLimited=true

AutoRestart=true

RotationTimeStart=00\:00

FileSizeKB=500

Regards,

András

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2015
Added on May 4 2015
0 comments
1,746 views