Solaris 10 commands: How to clear Memory segments and Semaphores

We have a Solaris 10 box which hosts a Documentum docbroker and around 22 docbases. Frequently, due to high memory usage, docbases go down and everything stops working. This also happens when the backend database goes down.

To resolve this, I normally restart all the docbases and docbrokers after clearing the processes, memory segments and semaphores.

Here is the step by step process that I follow to restart the Documentum Server.

STEP 1: Kill all the docbase processes first.
1. Type
ps -ef grep documentum which will list out all the processes along with the process ids.
2. Copy the output(from console) of this command and paste it into an Excel sheet. (I use SSH Secure Shell to connect to Solaris from Windows)
3. Extract just the process ids and arrange them with spaces between them. There are many ways to do it, I use the Text Import Wizard in Excel to achieve this. You should have your process ids in format like this:
12345 234 12333 12356 123213
4. Type kill -9 and paste the above process id string and hit enter.
kill -9 12345 234 12333 12356 123213
5. All your documentum processes are killed now.

STEP2: shutdown the docbroker

STEP3: List all the semaphores and memory segments with command
ipcss -a.
1. This will list out both the semaphores and memory segments.
2. Copy the output as mentioned in STEP1 to an excel sheet.

STEP4: Kill the memory segments first.
3. Copy only the memory segment ids. Leave out the memory segments for root.
4. Prefix
ipcrm -m to each id. Your list should look like this:

ipcrm -m 435348
ipcrm -m 23465
ipcrm -m 23122
ipcrm -m 93747


5. Copy the above list and paste it into Solaris Console.
6. Memory segments are now killed.

STEP5: Kill the semaphores now
1. Copy only the semaphore ids. Leave out the semaphores for "root".
2. Prefix
ipcrm -s to each id. Your list should look like this:

ipcrm -s 435348
ipcrm -s 23455
ipcrm -s 99888
ipcrm -s 435345


3. Copy the above list and paste it into Solaris Console.
4. Semaphores are now killed.

STEP6: Start the docbroker
STEP7: Start the docbases

15 comments:

  Dan

4/07/2009 12:14 AM

To kill all documentation processes(or any group of processes that you can grep for), you could use awk to select the second column(PID) and pass that to kill:

kill -9 `ps -afe | grep documentation | grep -v grep | awk '{print $2}'`

  Anonymous

11/14/2009 8:35 PM

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

  Anonymous

11/20/2009 1:40 PM

It was certainly interesting for me to read the blog. Thanks for it. I like such themes and anything connected to this matter. I definitely want to read more soon.

  Anonymous

12/20/2009 11:33 AM

Can anyone recommend the robust MSP software for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central performance reporting
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

  Anonymous

1/19/2010 1:18 AM

[color=red]The Most Affordable XRUMER/BACKLINK SERVICE Online!
The EFFORTLESS and POWERFUL WAY TO BUILD MASSIVE # OF BACKLINKS
[color=black]
200,000 BLASTS of your URLs+ Anchor Tex, message, pictures (can be spinned) etc
$10 USD (shared with other clients like a carpool), or
$25/200k for exclusive!(you control EVERYTHING)
$50 Exclusive @ 500,000 blasts.
(Complete reports will be given to clients)

[IMG]http://img697.imageshack.us/img697/1540/arrowdownh.gif[/IMG]
For orders, questions or concerns? Email: [u]formless.void47 at gmail.com [/u]
Note:
1. For STRICT Whitehat sites, it is advised to create buffers to pass on linkjuice. i.e. social bookmarks, cloaked pages etc.
You can blast the site directly, but it entails risk.
Using buffers are 100% safe, speaking from experience.
2. Xrumer is a very technical tool. Just describe to me what sorts of effects you want and well make it happen!
If you want to buy Xrumer?
>>>>> http://cloakedlink.com/chzgykebsd <<<<<<

[color=black]
-------
CLIENT 2 SAMPLE SPACE FILLED WITH URLs,Pics and Keywords
consultant seo Buy Backlink los angeles seo company seo jobs in pune seo writing top seo company india seo southampton seo org seo articles india small business seo web design seochat buy sell link search engine strategies Xrumer Guide seo instruction Xrumer Hosting offsite seo seo jobs uk Buy High Pr Links seo service top search engine optimization seo marketing services Where To Buy Xrumer seo tips search engine optimization pricing buy d link rangebooster internet seo school Xrumer 30 buy mail order social seo boca raton seo freelance seo writer denver seo firm santa barbara seo cheap seo services india Xrumer Hrefer seo training uk search engines asp.net seo seo submitter search engine optimization tools online seo software Block Xrumer buy d link wireless router seo advertising seo lessons website promotion software Xrumer Tips seo cost

-----
CLIENT 3 SAMPLE SPACE
[url=http://provenheightincrease.co.cc/ebook/how-to-install-chain-link-fence]how to install chain link fence[/url] http://provenheightincrease.co.cc/ebook/how-to-install-chain-link-fence

[url=http://herpescures.co.cc/drugs/Cure-Herpes-2009-Meet-People-With-Herpes-First-Signs-Of-Genital-Herpes.html]cure herpes 2009 meet people with herpes first signs of genital herpes[/url]

http://www.ripoffreport.com/miscellaneous-companies/global-life-inc-d-b/global-life-inc-d-b-a-www-v-3f4mb.htm

http://buycoloradorivertoad3.wetpaint.com/rss2_0/pageReport/updated


-----
CLIENT 4 SAMPLE SPACE
[url=http://provenheightincrease.co.cc/ebook/how-to-increase-your-height]how to increase your height[/url] http://provenheightincrease.co.cc/ebook/how-to-increase-your-height

[url=http://growyourdick.co.cc/penile/penis-enlargment-surgery]penis enlargment surgery[/url] http://growyourdick.co.cc/penile/penis-enlargment-surgery

http://weedvaporizer-volcanovaporizer.info/hookah/vaporizer.php?on=hFRQ&h=off

http://buycheapplasmatv.info/cgi-bin/index.pl?=plasma-1080 [url=http://buycheapplasmatv.info/cgi-bin/index.pl?=plasma-1080]plasma 1080[/url]

[url=http://teethwhiteningstripsreviews.info/xr/Trois-Pistoles]teeth whitening risks teeth whitening denver colorado tweth whitening Saint Lucia Château-Richer home remedy to whiten teeth at home professional teeth whitening system Kanagawa reduction light teeth whitening[/url]

-----
CLIENT 5 SAMPLE SPACE
[url=http://cheapxrumerservice.co.cc]Cheap Xrumer Service[/url]
[url=http://cheapxrumerservice.co.cc]Cheapest Xrumer Service[/url]
[url=http://cheapxrumerservice.co.cc]Best Xrumer Service[/url]
--------
http://www.gather.com/viewArticle.action?articleId=281474977946385##Pleo A Ugobe Life Form Pleo Auction Pleo Best Pleo Dinosaur A Ugobe Life Form Pleo Dinosaur Price

http://cheaphdtvplasma.co.cc/television/vizio-37-lcd-hdtv [url=http://cheaphdtvplasma.co.cc/television/vizio-37-lcd-hdtv]vizio 37 lcd hdtv[/url]

  Anonymous

1/22/2010 8:39 PM

BTW, try GSM blocker to disable all secret transmitters in your home or office.

  Anonymous

1/28/2010 9:30 AM

Rather nice blog you've got here. Thanks for it. I like such themes and anything that is connected to this matter. I would like to read more soon.

  Anonymous

2/11/2010 6:48 PM

Great post you got here. I'd like to read something more concerning this matter. Thanks for giving that data.

  Anonymous

2/25/2010 8:10 PM

good afternoon fellas. I'm honestly into shoes and I have been looking for that meticulous brand. The prices for the shoes were about 220 dollars on every page. But completely I bring about this location selling them for the benefit of half price. I in reality love those [url=http://www.shoesempire.com]prada sneakers[/url]. I will absolutely order those. what do you think?

  Anonymous

2/25/2010 10:12 PM

free registration uk dating sites [url=http://loveepicentre.com/]dating for big people[/url] online dating service in uk http://loveepicentre.com/ nude dating

  Anonymous

2/26/2010 6:31 AM

[url=http://seghan.ru/go.php?sid=2][img]http://banners.servized.com/current/gif/tam_720x90_1.gif[/img][/url]

[url=http://old-drugstore.net/]What is/are Zovirax Tablets?[/url]
What are acyclovir tablets or capsules?
ACYCLOVIR (Zovirax®) treats unerring types of viral infections, specifically herpes infections. Acyclovir
intent not panacea herpes infections; it will cure the sores mend faster and workers to mitigate the annoyance or discomfort.
Sometimes acyclovir is confirmed to help avert the infection from coming back. Acyclovir also treats shingles
and chickenpox infections. Generic acyclovir tablets and capsules are available.

What should I communicate my fitness distress provider ahead I crook this medicine?
They destitution to recollect if you be suffering with any of these conditions:

•dehydration
•neurological condition
•kidney disorder
•seizures (convulsions)
•an unprecedented or allergic reaction to acyclovir, ganciclovir, valacyclovir, valganciclovir, other medicines, foods, dyes, or preservatives
•significant or disquieting to get pregnant
•breast-feeding



[url=http://best-drugstore.aoaoaxxx.ru/][img]http://i079.radikal.ru/0910/b9/3f666eb40896.jpg[/img][/url]
























[url= ]purchase Zovirax Australiapurchase Zovirax Austria [/url]
purchase Zovirax Argentinapurchase Zovirax Belgium
[url= ]purchase Zovirax Bulgariapurchase Zovirax Brasilia [/url]
purchase Zovirax Great britainpurchase Zovirax Hungary
[url= ]purchase Zovirax Germanypurchase Zovirax Greece [/url]
purchase Zovirax Denmarkpurchase Zovirax Egypt
[url= ]purchase Zovirax Koreapurchase Zovirax Hong Kong [/url]
purchase Zovirax Israelpurchase Zovirax Ireland
[url= ]purchase Zovirax Icelandpurchase Zovirax Italy [/url]
purchase Zovirax Cypruspurchase Zovirax Latvia
[url= ]purchase Zovirax Lithuaniapurchase Zovirax Malta [/url]
purchase Zovirax Mexicopurchase Zovirax Netherlands
[url= ]purchase Zovirax New Zealandpurchase Zovirax Norway [/url]
purchase Zovirax Polandpurchase Zovirax Romania
[url= ]purchase Zovirax Singaporepurchase Zovirax Slovakia [/url]
purchase Zovirax Sloveniapurchase Zovirax Saudi Arabia
[url= ]purchase Zovirax Spainpurchase Zovirax the United states [/url]
purchase Zovirax Finlandpurchase Zovirax France
[url= ]purchase Zovirax Croatiapurchase Zovirax Czech Republic [/url]
purchase Zovirax Switzerlandpurchase Zovirax Sweden

  Anonymous

2/28/2010 8:05 AM

They are becoming the enhancement option of choice for many men for several reasons. vimax pills is the best penis enlargement pills on the market today.
http://www.male-sexual.com/vimax-pills.html - http://www.youtube.com/watch?v=pobXsnw7CWs

  Anonymous

3/16/2010 9:32 PM

good evening fellas. I'm actually into shoes and I had been looking for the sake of that meticulous brand. The prices for the sneakers were all over 240 pounds on every page. But completely I bring about this area selling them as a remedy for half price. I in reality want these [url=http://www.shoesempire.com]gucci sneakers[/url]. I will absolutely buy those. what can you say about it?

  Anonymous

3/16/2010 10:20 PM

hi there everyone. I'm honestly into shoes and I had been looking allowing for regarding that singular model. The prices due to the fact that the shoes are around 250 bucks on every page. But finally I found this area selling them for the benefit of half price. I in reality love these [url=http://www.shoesempire.com]gucci sneakers[/url]. I will probably purchase them. what do you think?

  Anonymous

3/17/2010 2:34 AM

good day ppl. I'm really into shoes and I was searching as far as something that exact make. The prices seeking the boots were approximately 200 pounds everwhere. But finally I set this site selling them for half price. I exceptionally love those [url=http://www.shoesempire.com]gucci sneakers[/url]. I will definetly buy them. what can you tell me about these?