Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 6 of 6

Thread: Release hung shared memory or semaphores

  1. #1
    Senior Member fid509's Avatar
    Join Date
    Feb 2002
    Location
    Brussels
    Posts
    381

    Default Release hung shared memory or semaphores

    To view the shares memory and semaphores in Unix you can type the command:
    Code:
    ipcs
    This shows you the following:
    Code:
    IPC status from <running system> as of Mon Feb 17 14&#58;24&#58;39 CET 2003
    T         ID      KEY        MODE        OWNER    GROUP
    Message Queues&#58;
    Shared Memory&#58;
    m      14021   0x784a7d00 --rw-rw-rw-   smtscd helpdsks
    m         82     0             --rw-rw-rw-     root     root
    Semaphores&#58;
    s    1900563   0x784a7d00 --ra-ra-ra-   smtscd helpdsks
    s         80       0             --ra-ra-ra-     root     root
    Now you can release the semaphore by typing
    ipcrm -s 1900563
    or the shared memory with
    ipcrm -m 14021

  2. #2
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    And You can even combine the 2 last commands:

    Code:
    ipcrm -s 1900563 -m 14021
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  3. #3
    Junior Member jherold's Avatar
    Join Date
    Jan 2003
    Location
    Akron, OH
    Posts
    3

    Default What causes this situation?

    I've needed to use the ipcs command to release semaphores on my system but I haven't been given a reason from support about why it happens.

    Does anyone have any idea?

    Jim :-?

    SC 5.0.1
    HP-UX 11

  4. #4
    Administrator tommy's Avatar
    Join Date
    Nov 2001
    Location
    Copenhagen
    Posts
    4,272

    Default

    The command IPCS does not release them it only displays them

    It is IPCRM that releases them and it is normally only required if sc crashes or processes are killed manually.
    Best regards Tommy
    Blog - - ITIL certified - Accredited Integration Specialist – HP OpenView Service Management

    Want to keep this site alive? Consider making a donation. Click here.

  5. #5
    Junior Member
    Join Date
    Mar 2005
    Location
    Belgium, Elsene-Ixelles
    Posts
    16

    Default scenter -shutipc

    You can kill them with this command:

    scenter -shutipc

  6. #6
    Junior Member
    Join Date
    Dec 2005
    Posts
    9

    Default

    what version of SC does this happen in and what does semaphores do to SC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts