Solved

Shared memory instances

Posted on 2011-03-22
1
334 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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now