1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Tech-talk Digest, Vol 16, Issue 712 |
From: | William F Badgett Jr via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 18 Jan 2023 16:38:08 +0000 |
I will reply to my own message from Dec 12, 2022: The CentOS 9 server was converted
to AlmaLinux 9, and the alarm-server now works fine. I have no theory how/why a Java application would care about this...
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of tech-talk-request at aps.anl.gov <tech-talk-request at aps.anl.gov>
Sent: Monday, December 12, 2022 4:34 PM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Tech-talk Digest, Vol 16, Issue 712 Send Tech-talk mailing list submissions to
tech-talk at aps.anl.gov To subscribe or unsubscribe via the World Wide Web, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.aps.anl.gov_mailman_listinfo_tech-2Dtalk&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=TmOxd9LEM2p3Idbj7H58XVsFRnBlW4aab9p3yuHVBwI&e= or, via email, send a message with subject or body 'help' to tech-talk-request at aps.anl.gov You can reach the person managing the list at tech-talk-owner at aps.anl.gov When replying, please edit your Subject line so it is more specific than "Re: Contents of Tech-talk digest..." Today's Topics: 1. Phoebus Alarm Server on CentOS 9? (William F Badgett Jr) 2. Re: Ways to know if instrument connected via TCP/IP through StreamDevice has lost connection (Wang, Andrew) 3. Checking CPU and memory usage for an IOC (Wang, Andrew) 4. Re: Checking CPU and memory usage for an IOC (Simon Rose) ---------------------------------------------------------------------- Message: 1 Date: Mon, 12 Dec 2022 20:45:57 +0000 From: William F Badgett Jr <badgett at fnal.gov> To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> Subject: Phoebus Alarm Server on CentOS 9? Message-ID: <DM6PR09MB5607749F6E24E2C4DC56D20ACAE29 at DM6PR09MB5607.namprd09.prod.outlook.com> Content-Type: text/plain; charset="iso-8859-1" I'm trying to get the Phoebus alarm-server to run on CentOS 9 here, and it launches, connects to Kafka OK, but it cannot "see" the EPICS channel access PVs. From the command line before launching alarm-server, I can "caget" the variables, but in alarm-server it shows "disconnected" Java 13, CentOS 9 5.14.0-183.el9.x86_64 The alarm-server works fine on SL7 servers and can "see" EPICS IOCs Ideas? William Badgett Accelerator Division Controls Neutrino Division Operations Fermi National Accelerator Lab Kirk and Wilson Roads BTE-214 Booster Tower East Room 214 Batavia, IL 60510 U.S.A. badgett at fnal.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_1bfe4994_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=3eGhPpS5OdvaS0XvqCBgfaeoUQq_mLMgiDk7pJ201Lg&e= > ------------------------------ Message: 2 Date: Mon, 12 Dec 2022 22:11:28 +0000 From: "Wang, Andrew" <wang126 at llnl.gov> To: Mark Rivers <rivers at cars.uchicago.edu>, EPICS tech-talk <tech-talk at aps.anl.gov> Subject: Re: Ways to know if instrument connected via TCP/IP through StreamDevice has lost connection Message-ID: <BY3PR09MB81945E11CD3D0BCAEAD923D282E29 at BY3PR09MB8194.namprd09.prod.outlook.com> Content-Type: text/plain; charset="us-ascii" Mark, This is extremely helpful. I will let you know if I have follow up questions. Andy ________________________________ From: Mark Rivers <rivers at cars.uchicago.edu> Sent: Thursday, December 8, 2022 6:51 PM To: EPICS tech-talk <tech-talk at aps.anl.gov>; Wang, Andrew <wang126 at llnl.gov> Subject: Re: Ways to know if instrument connected via TCP/IP through StreamDevice has lost connection Hi Andy, > I feel like there is a better way than me trying to use a calcout record and check if any record has its STAT field set to COMM. Like, is it possible to monitor for connection status without needing to process a record whose device type is StreamDevice and check its STAT field? Yes, there is a better way. First, you probably want to use this line in your startup script: asynSetOption("$(PORT)",0, "disconnectOnReadTimeout", "Y") That will cause the port to disconnect if there is a timeout. If you don't do that then the asyn won't know that the port is disconnected for a very long time on Linux, it will just keep giving "temporarily unavailable" messages. In your startup script load an asyn record that is connected to that asyn port. Here is an example: dbLoadRecords("$(ASYN)/db/asynRecord.db", "P=IOC:, R=asyn1, PORT=ARIES1, ADDR=0, OMAX=256, IMAX=256") You can monitor the IOC:asyn1.CNCT field, which will either be "Connect" or "Disconnect". Mark ________________________________ From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Wang, Andrew via Tech-talk <tech-talk at aps.anl.gov> Sent: Thursday, December 8, 2022 8:21 PM To: EPICS tech-talk <tech-talk at aps.anl.gov> Subject: Ways to know if instrument connected via TCP/IP through StreamDevice has lost connection Hi all, Basically, I was wondering if there is a better way to know if communication to an instrument has been lost. I understand that this can be done either by simplying looking at the IOC shell for disconnection errors or checking if the STAT field is set to COMM. I was wondering if there is another method of determining if the instrument is still connected or not besides the two methods described above. Additionally, I would like to have a record called "is_instrument_connected", that holds a value like 1 to indicate the instrument is connected and a 0 if it is not. I feel like there is a better way than me trying to use a calcout record and check if any record has its STAT field set to COMM. Like, is it possible to monitor for connection status without needing to process a record whose device type is StreamDevice and check its STAT field? Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_b45bb99d_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=qHRQGiCsAbr5CzTlsinIOaUd77za3vna-MkxJba6PnQ&e= > ------------------------------ Message: 3 Date: Mon, 12 Dec 2022 22:13:29 +0000 From: "Wang, Andrew" <wang126 at llnl.gov> To: EPICS tech-talk <tech-talk at aps.anl.gov> Subject: Checking CPU and memory usage for an IOC Message-ID: <BY3PR09MB819412B9EC493B3E541D5D3582E29 at BY3PR09MB8194.namprd09.prod.outlook.com> Content-Type: text/plain; charset="iso-8859-1" All, This is a very general question, but I was curious if people here have been able to monitor CPU and memory usage of a particular IOC as it ran. If so, what was the approach you took to do so? Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_5583a2f7_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=o2V2mQkuVwXZJ3yMdBcydk4wFK5Nbo8K5JwBxHDBO3c&e= > ------------------------------ Message: 4 Date: Mon, 12 Dec 2022 22:34:06 +0000 From: Simon Rose <Simon.Rose at ess.eu> To: "Wang, Andrew" <wang126 at llnl.gov>, EPICS tech-talk <tech-talk at aps.anl.gov> Subject: Re: Checking CPU and memory usage for an IOC Message-ID: <45E594FF-D6DE-4272-9D0A-7CF7431986E4 at ess.eu> Content-Type: text/plain; charset="utf-8" Hi Andy ? There is the iocStats module that might do what you are looking for: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_epics-2Dmodules_iocStats&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=MYLwjAZ7todFqhQxET171vSWJu04AIucD8Dxedy6Xkk&e= . In particular, there is a record that specifically monitors CPU usage: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_epics-2Dmodules_iocStats_blob_master_iocAdmin_Db_ioc.template-23L130&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=epdhYOowPFxhHltfuC37GNBGq3BdE2xZctk9ug2iPww&e= (as well as one for memory usage). Cheers, Simon From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "Wang, Andrew via Tech-talk" <tech-talk at aps.anl.gov> Reply to: "Wang, Andrew" <wang126 at llnl.gov> Date: Monday, 12 December 2022 at 23:13 To: EPICS tech-talk <tech-talk at aps.anl.gov> Subject: Checking CPU and memory usage for an IOC All, This is a very general question, but I was curious if people here have been able to monitor CPU and memory usage of a particular IOC as it ran. If so, what was the approach you took to do so? Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.aps.anl.gov_pipermail_tech-2Dtalk_attachments_20221212_16a75125_attachment.html&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=sp4klXWm9uVRgBpiCt_uDlrvYW-EkOfJxBivcgvfDfQ&e= > ------------------------------ Subject: Digest Footer _______________________________________________ Tech-talk mailing list Tech-talk at aps.anl.gov https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.aps.anl.gov_mailman_listinfo_tech-2Dtalk&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=rFOy-ydFEnpKcV3qYX1tt7JonnG1Pzrsmr398l7QSm4&m=uCbIidZWhQIOD-BoyeOvNjOU1mpW0410IHM8JGvBYDCKytPy0zF2Cpn7knZKU_zb&s=TmOxd9LEM2p3Idbj7H58XVsFRnBlW4aab9p3yuHVBwI&e= ------------------------------ End of Tech-talk Digest, Vol 16, Issue 712 ****************************************** |