Solved

Shared memory instances

Posted on 2011-03-22
1
336 Views
Last Modified: 2012-06-21
Hello experts,

I m quite new to Sun solaris, and I have SUN vFire 240 series server used for an application and recently the application created an error report stating that there was a problem with certain shared memory locations

     ID    Size
      0
    414   54307   /db/sports_aps2_q10
    315   54011   /db/sports_aps2
    118   54011   /db/sports_aps2
     29   54011   /export/data/db/sports_aps2
     30   54307   /export/data/db/sports_aps2_q10

Now the application owner asked me if I could kill/free up the shared memory locations going by ID. I had no clue how to do it.However the issue was fixed by tuning the application itself.

Though i would like to know how could i administer share memory as a root user and clear it if required.

Thanks in advane
0
Comment
Question by:Peddu_bhanu
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 35189645
Hi,

the appropriate command is "ipcrm".

Use "ipcrm -m ID for memory segments, "ipcrm -q ID for message queues and "ipcrm -s ID for semaphores.

The first column ("T") indicates the type - segment (m), queue (q) or semaphore (s).

wmp
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question