Solved

Shared memory instances

Posted on 2011-03-22
1
337 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

733 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