Making Debugging Possible with OHS Server:
When we hook our component with an OHS (Oracle HTTP Sever) web server which is an apache based web server, we might get into a situation where we want to debug our hooked code.
Thus in such scenario's we will notice that the OPMN automatically restarts the OHS Web Server.
It will bring out the httpd.worker processes out of the debug mode after a while. And thus we won't be able to debug properly.
Basically it is due to the OPMN service running into the background. It is the one who is tightly looking into the httpd.worker process, that whether it is running properly or not. If not than restart it. It keeps on pinging the workers to get the know how of it.
How OPMN comes to know which managed process it needs to ping?
All this is mentioned in the opmn.xml file, which is located at
<MiddlewareHome>/Oracle_WT1/instances/<instance_name>/config/OPMN/opmn/opmn.xml
opmn.xml
file shows you which system components OPMN is managing on your system.
You will find following similar kind of configuration in opmn.xml file:
<ias-instance id="instance1" name="instance1">
<environment>
<variable id="TEMP" value="/tmp"/>
<variable id="TMP" value="/tmp"/>
</environment>
<ias-component id="ohs1">
<process-type id="OHS" module-id="OHS2">
<module-data>
<category id="start-parameters">
<data id="start-mode" value="ssl-enabled"/>
</category>
</module-data>
<process-set id="OHS" numprocs="1"/>
</process-type>
Comment the <process-set> directive & add below mentioned 2 lines in its place:
<!-- <process-set id="OHS" numprocs="1"/> -->
<ping interval="0" />
<process-set id="OHS" numprocs="1" restart-on-death="false" />
Note:
By doing this configuration we ensures that the OHS won't get restarted in debug mode anymore.
Enjoy :-)
<ias-instance id="instance1" name="instance1">
<environment>
<variable id="TEMP" value="/tmp"/>
<variable id="TMP" value="/tmp"/>
</environment>
<ias-component id="ohs1">
<process-type id="OHS" module-id="OHS2">
<module-data>
<category id="start-parameters">
<data id="start-mode" value="ssl-enabled"/>
</category>
</module-data>
<process-set id="OHS" numprocs="1"/>
</process-type>
Comment the <process-set> directive & add below mentioned 2 lines in its place:
<!-- <process-set id="OHS" numprocs="1"/> -->
<ping interval="0" />
<process-set id="OHS" numprocs="1" restart-on-death="false" />
Note:
- restart-on-death=false To disable automatic restarting of terminated managed processes set the attribute to false.
- process-set=1 Specifies the number of processes for OPMN to start for the process-set.
By doing this configuration we ensures that the OHS won't get restarted in debug mode anymore.
Enjoy :-)
No comments:
Post a Comment