<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Monitoring Process Memory Usage &amp;amp; Stale Oracle Processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591079#M32906</link>
    <description>I hope someone has some more suggestions, I am having the same problem.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 15 Nov 2001 16:31:08 GMT</pubDate>
    <dc:creator>Tracey</dc:creator>
    <dc:date>2001-11-15T16:31:08Z</dc:date>
    <item>
      <title>Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591072#M32899</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Following on from a recent discussion in another thread I have determined that I have 2 memory leak problems on my machine:&lt;BR /&gt;&lt;BR /&gt;1. We have an in-house developed process that has a memory leak. This process is a CORBA server that provides an interface to an Oracle instance. &lt;BR /&gt;&lt;BR /&gt;3. If our in-house process crashes it does not clean up its connections to oracle, this leaves stale processes using memory until the instance is shut down. &lt;BR /&gt;&lt;BR /&gt;I was wondering if anyone had any thoughts on: &lt;BR /&gt;&lt;BR /&gt;a) How to monitor, in detail, the memory usage of a single process - not just the total used but when it is allocated/ freed etc. &lt;BR /&gt;&lt;BR /&gt;b) Given that I cannot shutdown the Oracle instance nightly or even weekly for cold backup how can I get rid of the stale oracle processes - or better still how can I avoid them in the first place ? I have read something in the forums that this situation can happen if the process is in the middle of IO when the controller process crashes... &lt;BR /&gt;&lt;BR /&gt;Many thanks in advance, Eddie</description>
      <pubDate>Mon, 08 Oct 2001 09:21:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591072#M32899</guid>
      <dc:creator>EDWARD WYNN_1</dc:creator>
      <dc:date>2001-10-08T09:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591073#M32900</link>
      <description>Hi there.&lt;BR /&gt;Tried glance already ?&lt;BR /&gt;That gives you a chance, to monitor everything on your system.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes</description>
      <pubDate>Mon, 08 Oct 2001 10:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591073#M32900</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2001-10-08T10:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591074#M32901</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Haven't installed glance - is this a freebie or do you need a codeword ? If it is a freebie do you happen to know which of the apps CD's it is on ?&lt;BR /&gt;&lt;BR /&gt;Thanks, Eddie</description>
      <pubDate>Mon, 08 Oct 2001 11:26:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591074#M32901</guid>
      <dc:creator>EDWARD WYNN_1</dc:creator>
      <dc:date>2001-10-08T11:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591075#M32902</link>
      <description>You can find a trial version on App. CDs.&lt;BR /&gt;&lt;BR /&gt;But if you like to know when... maybe tusc is the correct tool. The use of this tool means that you are familiar with system calls.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The other way is look into your oracle, v$process and v$session will help you (?).&lt;BR /&gt;Also, if you use listener for your connection, will can specify a timeout:&lt;BR /&gt;&lt;BR /&gt;From ORACLE_HOME/network/admin/samples/sqlnet.ora:&lt;BR /&gt;&lt;BR /&gt;########################                                                                                                            &lt;BR /&gt;#sqlnet.expire_time = 10                                                                                                            &lt;BR /&gt;########################                                                                                                            &lt;BR /&gt;#                                                                                                                                   &lt;BR /&gt;#Possible values: 0-any valid positive integer! (in minutes)                                                                        &lt;BR /&gt;#Default: 0 minutes                                                                                                                 &lt;BR /&gt;#Recommended value: 10 minutes                                                                                                      &lt;BR /&gt;#                                                                                                                                   &lt;BR /&gt;#Purpose: Indicates the time interval to send a probe to verify the                                                                 &lt;BR /&gt;#         client session is alive (this is used to reclaim watseful                                                                 &lt;BR /&gt;#         resources on a dead client)             &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2001 13:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591075#M32902</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-10-08T13:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591076#M32903</link>
      <description>I think I will install the trial version of glance.&lt;BR /&gt;&lt;BR /&gt;The expire_time line in sqlnet.ora sounds interesting, I do use a listener but the processes and connections in question are local ones and use the bequeth connection - do you know if there is a similar mechanism for these connections ?&lt;BR /&gt;&lt;BR /&gt;Thanks, Eddie</description>
      <pubDate>Tue, 09 Oct 2001 08:20:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591076#M32903</guid>
      <dc:creator>EDWARD WYNN_1</dc:creator>
      <dc:date>2001-10-09T08:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591077#M32904</link>
      <description>See:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x82f8c6af36b7d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x82f8c6af36b7d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Oct 2001 08:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591077#M32904</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-10-09T08:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591078#M32905</link>
      <description>Thanks for the input so far.&lt;BR /&gt;&lt;BR /&gt;I have tried the Oracle PROFILE method mentioned in the linked thread but unfortunately this does not do what I need.&lt;BR /&gt;&lt;BR /&gt;This mechanism only kills the oracle session if it is re-used after the IDLE timeout period has expired. I need something that will kill both the Oracle session and Unix process without the session having to be re-used.&lt;BR /&gt;&lt;BR /&gt;I would be very grateful if anyone has any further ideas on this.&lt;BR /&gt;&lt;BR /&gt;Thanks, Eddie</description>
      <pubDate>Thu, 11 Oct 2001 12:26:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591078#M32905</guid>
      <dc:creator>EDWARD WYNN_1</dc:creator>
      <dc:date>2001-10-11T12:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591079#M32906</link>
      <description>I hope someone has some more suggestions, I am having the same problem.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 15 Nov 2001 16:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591079#M32906</guid>
      <dc:creator>Tracey</dc:creator>
      <dc:date>2001-11-15T16:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring Process Memory Usage &amp; Stale Oracle Processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591080#M32907</link>
      <description>Hi Tracey,&lt;BR /&gt;&lt;BR /&gt;I thought I would let you know that I got no-where with this, I even raised a TAR with oracle in the end and they have confirmed that there is no-way of doing what I needed to do - although they do say that this situation should never happen when using BEQ connections.&lt;BR /&gt;&lt;BR /&gt;Here is the text of the TAR&lt;BR /&gt;### Detailed Problem Statement: ###&lt;BR /&gt;I have a problem with my database whereby occasionally our CORBA Server process&lt;BR /&gt;crashes and does not clean up its connections to Oracle. This means I am left&lt;BR /&gt;with dead processes that I cannot clean up - the only way to remove them is to&lt;BR /&gt;kill -9 them or shutdown the database - neither of which can be done easily in&lt;BR /&gt;my operating environment.&lt;BR /&gt;What I want to do is implement a form of dead connection detection such that&lt;BR /&gt;these dead processes can be killed off automatically.&lt;BR /&gt;The problem is that as this CORBA process is running on the same machine as&lt;BR /&gt;oracle it is using the BEQ protocol adapter to make its connections, it is also&lt;BR /&gt;using this protocol as it is much faster than TCP or IPC. However, my&lt;BR /&gt;understanding of DCD is that it only works with TCP and IPC connections.&lt;BR /&gt;I have tried using the PROFILE IDLE_TIME mechanism to get around this but this&lt;BR /&gt;relies on something re-using an idle connection before it closes the session -&lt;BR /&gt;in any case it does not kill the Unix process so it would not be any use to me.&lt;BR /&gt;In short I have 3 questions:&lt;BR /&gt;1) Is there anyway of killing off BEQ protocol connections like DCD does for&lt;BR /&gt;TCP and IPC ?&lt;BR /&gt;2) If (1) above cannot be done can you confirm if DCD would do what I require&lt;BR /&gt;(close the oracle session and kill the Unix process) after the expiry_time&lt;BR /&gt;elapses if I was to use the IPC protocol.&lt;BR /&gt;3) Have you any figures on relative/average database connection times using the&lt;BR /&gt;3 protocols available to me (BEQ, IPC and TCP) ?&lt;BR /&gt;.&lt;BR /&gt;### What were you trying to accomplish when the problem occurred? ###&lt;BR /&gt;See above explanation&lt;BR /&gt;.&lt;BR /&gt;### Has this ever worked? ###&lt;BR /&gt;No&lt;BR /&gt;.&lt;BR /&gt;### Can you reproduce the problem at will? ###&lt;BR /&gt;Yes&lt;BR /&gt;.&lt;BR /&gt;### Reproducible on other platforms, systems, environments? ###&lt;BR /&gt;No&lt;BR /&gt;.&lt;BR /&gt;### Known recent changes to your computer environment: ###&lt;BR /&gt;None&lt;BR /&gt;.&lt;BR /&gt;Contact me via : E-mail -&amp;gt; eddiew@oakleafconsultancy.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;11-OCT-01 16:57:32&lt;BR /&gt;=== Comments ===&lt;BR /&gt;Thank you for logging this TAR via Metalink. We have received your TAR and are&lt;BR /&gt;looking into it now. We will contact you shortly with our response.&lt;BR /&gt;Regards,&lt;BR /&gt;Marc CHARPENTIER&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;12-OCT-01 11:31:45&lt;BR /&gt;=== Analysis ===&lt;BR /&gt;1)DCD is only supported on IPC and TCP, there is no solution for BEQ connection&lt;BR /&gt;Because DCD has been implemented for network failure and client node crash&lt;BR /&gt;as BEQ are for localy connections these two cases could not exist.&lt;BR /&gt;When the client dies , it has to send a signal and the server process disapears&lt;BR /&gt;2)Normaly , the session is killed and the Unix process server disapears.&lt;BR /&gt;But sometime, the session is marked to kill and it can take time to rollback&lt;BR /&gt;or release the resources.&lt;BR /&gt;3)I don't have any comparative figure with the 3 protocols.&lt;BR /&gt;the fastest should be BEQ then IPc (unix domain Sockect) then TCP.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;12-OCT-01 11:37:23&lt;BR /&gt;For more explanation on DCD you could take a look at note 151972.1&lt;BR /&gt;Thanks to update and close these tar .Thanks Alain RICHY&lt;BR /&gt;(Without any news , I'll close these tar the 15/10/01 )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;12-OCT-01 12:09:02&lt;BR /&gt;=== Comments ===&lt;BR /&gt;Closed by customer&lt;BR /&gt;Many Thanks for your input, I kind of suspected that this would be your answer&lt;BR /&gt;-maybe I will raise an enhancement request for something to be done to kill off&lt;BR /&gt;stale BEQ connected processes.&lt;BR /&gt;&lt;BR /&gt;I have not tried using the IPC and TCP connections yet - but may do if this is still an issue in the future, although I cannot really afford the performance hit it will mean. &lt;BR /&gt;&lt;BR /&gt;Hope this helps someone !&lt;BR /&gt;&lt;BR /&gt;Eddie</description>
      <pubDate>Thu, 15 Nov 2001 16:41:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-process-memory-usage-amp-stale-oracle-processes/m-p/2591080#M32907</guid>
      <dc:creator>EDWARD WYNN_1</dc:creator>
      <dc:date>2001-11-15T16:41:53Z</dc:date>
    </item>
  </channel>
</rss>

