<?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: Analyzing hanging process in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221389#M62294</link>
    <description>&lt;BR /&gt;Ideally, but unlikely, the application has an interface to activate the debugger (lib$signal ss$_debug).&lt;BR /&gt;&lt;BR /&gt;SHOW PROC/CONT is a crude, but OK, first step to get an impression on what the process might be doing. Watch the 'state' and PC, the snapshot you posted shows an x80xxxxxx : system space! So in that instance it is nor running user code. But watch it for a while and you'll catch user space adddresses which can be translated back by using "run/debu &lt;IMAGE&gt;", set mode hex, exa/inst &lt;PC&gt;. By watching for a while, &lt;BR /&gt;with an eye on the IO counters, state and PC your soon get an impression what the process might be doing (or no doing).&lt;BR /&gt;&lt;BR /&gt;Next good tool is ANAL/SYST. As replied before, set proc, show proc/stack and so on.&lt;BR /&gt;System address, like you captured, are valies in all contexts, so you can just do for example:&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; exa/inst 8014DC54&lt;BR /&gt;F11BXQP_NPRO+01C54: LDQ             R27,#X0058(R2)&lt;BR /&gt;&lt;BR /&gt;This was done on my box, running 7.1, unlikey to match yours.&lt;BR /&gt;To get a more exact picture try:&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; read/exec&lt;BR /&gt;SDA&amp;gt; exa/inst 8014DC54&lt;BR /&gt;MAKE_DIRINDX_C+00360:   LDQ             R27,#X0058(R2)&lt;BR /&gt;&lt;BR /&gt;There is a series of SDA extentions 'clue' and 'trc' that open up a wolrd of debugging help, but that's too much for here now.&lt;BR /&gt;&lt;BR /&gt;Any chance you can join the OpenVMS bootcamp?&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/symposium/index.html" target="_blank"&gt;http://h71000.www7.hp.com/symposium/index.html&lt;/A&gt;&lt;BR /&gt;There is a whole session and tehn soem dedicated to this subject! "Troubleshooting Hung and Looping Processes, course M405".&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/symposium/may_2004/M405.html" target="_blank"&gt;http://h71000.www7.hp.com/symposium/may_2004/M405.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See you there?!&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PC&gt;&lt;/IMAGE&gt;</description>
    <pubDate>Thu, 18 Mar 2004 22:00:22 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2004-03-18T22:00:22Z</dc:date>
    <item>
      <title>Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221384#M62289</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need a bit help with analyzing a hanging process. This process is hanging sporadically. &lt;BR /&gt;So, I've got a process with a subprocess. The subprocess seems to hang in a mailbox&lt;BR /&gt; SDA&amp;gt;show proc/chann&lt;BR /&gt;&lt;BR /&gt;  0020  7FF30020  00000000  Busy        MBA5953:&lt;BR /&gt;&lt;BR /&gt;The mailbox is empty. So we think, that this process waits for something that the main process should send him. Can I see exactly where the main process hangs at the moment? A show proc/chann didn't show something busy. But he must wait for something and we want to know what he is waiting for.&lt;BR /&gt;We have the problem that we know not enough about the product that we use (SAS) to analyze this deeper.&lt;BR /&gt;Perhaps I've explained it in a wrong way, but it is really difficult do explain it.&lt;BR /&gt;&lt;BR /&gt;In the attachment I wrote down a show sys of the main and the child process. Perhaps this helps you.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Kirsten&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Mar 2004 08:14:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221384#M62289</guid>
      <dc:creator>Kirsten Knüttel</dc:creator>
      <dc:date>2004-03-17T08:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221385#M62290</link>
      <description>the EFWM in SDA will show you which event flag the process is waiting for. &lt;BR /&gt;SHOW STACK for the processes may show you PC addresses that can be matched to a MAP for the image.</description>
      <pubDate>Wed, 17 Mar 2004 09:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221385#M62290</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-03-17T09:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221386#M62291</link>
      <description>Also try SDA show proc to check the quotas of both processes.</description>
      <pubDate>Wed, 17 Mar 2004 10:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221386#M62291</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-03-17T10:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221387#M62292</link>
      <description>Hello Kirsten,&lt;BR /&gt;&lt;BR /&gt;if this is SAS as in SAS Institute software, then what exactly are you doing with mailboxes?&lt;BR /&gt;&lt;BR /&gt;IIRC these transports were deprecated years ago. Also if you do have a reprodcuer do make sure this gets escalated to the HQ in Cary, SAS Germany in Heidelberg does not have the resources to investigate a problem like this.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin&lt;BR /&gt;&lt;BR /&gt;P.S. Who used to have business cards from SI in a former life ;-)</description>
      <pubDate>Wed, 17 Mar 2004 22:44:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221387#M62292</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-03-17T22:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221388#M62293</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;In my experience an outstanding QIO on a mailbox is shown as busy using SHO PROC/CHAN.&lt;BR /&gt;&lt;BR /&gt;Its a pity really that its third party software. My approach to software hangs/tight loops (mutex and processes in COM) is to extract a number of PC values. You can SHO PROC/CONT and from ANAL/SYS use SHO CALL and SHO CALL/NEXT (Look at the return address on the stack).&lt;BR /&gt;&lt;BR /&gt;With a good number of values run the image up under debug (doesn't need to start running or even be a debug image). Then from the debug prompt just&lt;BR /&gt;&lt;BR /&gt;SET RADIX HEX&lt;BR /&gt;SET MODU/ALL&lt;BR /&gt;EX &lt;PC_VALUES&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on how its been compiled you may get useful information (modules and approximate line numbers) which can be used to escalate the problem.&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;&lt;BR /&gt;Brian&lt;/PC_VALUES&gt;</description>
      <pubDate>Thu, 18 Mar 2004 03:15:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221388#M62293</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2004-03-18T03:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221389#M62294</link>
      <description>&lt;BR /&gt;Ideally, but unlikely, the application has an interface to activate the debugger (lib$signal ss$_debug).&lt;BR /&gt;&lt;BR /&gt;SHOW PROC/CONT is a crude, but OK, first step to get an impression on what the process might be doing. Watch the 'state' and PC, the snapshot you posted shows an x80xxxxxx : system space! So in that instance it is nor running user code. But watch it for a while and you'll catch user space adddresses which can be translated back by using "run/debu &lt;IMAGE&gt;", set mode hex, exa/inst &lt;PC&gt;. By watching for a while, &lt;BR /&gt;with an eye on the IO counters, state and PC your soon get an impression what the process might be doing (or no doing).&lt;BR /&gt;&lt;BR /&gt;Next good tool is ANAL/SYST. As replied before, set proc, show proc/stack and so on.&lt;BR /&gt;System address, like you captured, are valies in all contexts, so you can just do for example:&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; exa/inst 8014DC54&lt;BR /&gt;F11BXQP_NPRO+01C54: LDQ             R27,#X0058(R2)&lt;BR /&gt;&lt;BR /&gt;This was done on my box, running 7.1, unlikey to match yours.&lt;BR /&gt;To get a more exact picture try:&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; read/exec&lt;BR /&gt;SDA&amp;gt; exa/inst 8014DC54&lt;BR /&gt;MAKE_DIRINDX_C+00360:   LDQ             R27,#X0058(R2)&lt;BR /&gt;&lt;BR /&gt;There is a series of SDA extentions 'clue' and 'trc' that open up a wolrd of debugging help, but that's too much for here now.&lt;BR /&gt;&lt;BR /&gt;Any chance you can join the OpenVMS bootcamp?&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/symposium/index.html" target="_blank"&gt;http://h71000.www7.hp.com/symposium/index.html&lt;/A&gt;&lt;BR /&gt;There is a whole session and tehn soem dedicated to this subject! "Troubleshooting Hung and Looping Processes, course M405".&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/symposium/may_2004/M405.html" target="_blank"&gt;http://h71000.www7.hp.com/symposium/may_2004/M405.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See you there?!&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PC&gt;&lt;/IMAGE&gt;</description>
      <pubDate>Thu, 18 Mar 2004 22:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221389#M62294</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-03-18T22:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221390#M62295</link>
      <description>(off topic)&lt;BR /&gt;&lt;BR /&gt;Any chance you can join the OpenVMS bootcamp?&lt;BR /&gt;&lt;BR /&gt;I'm still looking for a sponsor....&lt;BR /&gt;&lt;BR /&gt;Willem</description>
      <pubDate>Fri, 19 Mar 2004 08:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221390#M62295</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-03-19T08:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221391#M62296</link>
      <description>Hello Hein,&lt;BR /&gt;&lt;BR /&gt;while generally speaking your analysis is very valuable (as usual ;-), in this particular case I do not think it should be the customers problem to perform this analysis. SAS is a very very complex application and comes with a  considerable yearly license fee to cover new releases and support. So all there should be to do really is to get the pertinent information to the right people and let the engeneers in Cary do their work. &lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Fri, 19 Mar 2004 22:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221391#M62296</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-03-19T22:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221392#M62297</link>
      <description>I fully agree Martin. I fact, that is usually my line! I don't know why I did not stick that one in this time :-).&lt;BR /&gt;&lt;BR /&gt;Actually, I looking back at the topic I do know. The customer was already going in that direction, proven by the screenshots that were attched. I was lining out possible futher steps loosing sight of the fact that this is a major, supported app, not homegrown.&lt;BR /&gt;&lt;BR /&gt;An of  course there is nothing like 'being there', and a little pre-work by the customer with active overvations while the problem is happening will allow to bring a much more problem clear case to report.&lt;BR /&gt;&lt;BR /&gt;Instead of 'it's stuck', they can hopefully indicate it is stuck in module xyx calling service abc with filesuch and so open.&lt;BR /&gt;&lt;BR /&gt;It makes the suggestion for that particular tringin session more relevant. It'll be too late for an immediate problem but it would be a god skill in the back pocket should this happen again.&lt;BR /&gt;&lt;BR /&gt;Kirsten, you did call in the SAS troops for support right?!&lt;BR /&gt;(hmmm, I know an HP person or two (Susan, Carl) who work on site at SAS in North Carolina. In fact, up untill half a year they were in the same group I am in! :-)&lt;BR /&gt;&lt;BR /&gt;Sorry, I'm rambling, Have a great weekend you all !&lt;BR /&gt;(already well under way for half the world :-)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein.</description>
      <pubDate>Sat, 20 Mar 2004 01:17:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221392#M62297</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-03-20T01:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221393#M62298</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;hopy you had a nice weekend and many thanks for all of your help.&lt;BR /&gt;&lt;BR /&gt;Normally we contact SAS for their help. But the problem at this time ist that the error is not reproducable. The procedure runs every 2 days and normally everything is O.K. But from time to time it hangs. And we don't know the circumstances that makes the procedure hanging. So it is very difficult to make a call for it.&lt;BR /&gt;So we wanted to find these circumstances. But I think now that we've got collected enough to call SAS (resp. a collegue has the contacts).&lt;BR /&gt;&lt;BR /&gt;@Martin:&lt;BR /&gt;Yes, it is this SAS. And we really don't know what it is doing with these mailboxes. It was the first time that we've seen that SAS uses mailboxes&lt;BR /&gt;&lt;BR /&gt;@Hein:&lt;BR /&gt;An exa/inst brings:&lt;BR /&gt;EXE_STD$SYNCH_LOOP_C+00084:     BLBC            R0,#X000050&lt;BR /&gt;&lt;BR /&gt;Perhaps it helps SAS a bit more.&lt;BR /&gt;And I really have no chance to join the OpenVMS bootcamp. I have no sponsor for it. I even don't get UNIX training courses although we want to migrate to UNIX (sorry, we must migrate to UNIX).&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Kirsten&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Mar 2004 01:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221393#M62298</guid>
      <dc:creator>Kirsten Knüttel</dc:creator>
      <dc:date>2004-03-22T01:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221394#M62299</link>
      <description>Long time ago, I had SAS with VMS 6.2.&lt;BR /&gt;&lt;BR /&gt;It used the whole pagefilequota is was assigned. If you increased the pagefilequota, it used the increased value also completely. You had to specify somewhere in a config file how much it should reserve for other operations. May be, the value reserved for other operations is simply to low.&lt;BR /&gt;&lt;BR /&gt;Of course, if you checked the quotas already, you can ignore this posting.</description>
      <pubDate>Mon, 22 Mar 2004 03:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221394#M62299</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-03-22T03:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing hanging process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221395#M62300</link>
      <description>Hello Kirsten,&lt;BR /&gt;&lt;BR /&gt;assuming  the code does not contain any confidential information, would you mind posting an example of the failing code? Do you use Access/Share/Connect in there?&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Mon, 22 Mar 2004 14:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/analyzing-hanging-process/m-p/3221395#M62300</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-03-22T14:59:29Z</dc:date>
    </item>
  </channel>
</rss>

