10-28-2009
Semaphores getting created, thus blocking start of Webserver ctl
I am using Solaris 9 system and IBM HTTP Server 6 for my webserver. Semaphores with webadmin and root privileges are getting created more often and blocking the start of webserver ctl instances. I use 'ipcs -s' to list them and 'ipcrm -s' to kill them one by one.
But even after killing, a new batch of them reappear again. Plz help !!
Thanks
8 More Discussions You Might Find Interesting
1. Programming
Dear Reader,
I'm in a multiprocess environment working with shared mem and semaphores as mutex.. The problem is -- If one of the process hooked up with the semaphore and accessing the shared mem, terminates abruptly ( or got killed ), other process which are in want of the semaphore are... (1 Reply)
Discussion started by: joseph_shibu
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I am using HP 10.20 on A 9000/785. My question is:
If I am the only person logged in as root at the moment, how many "semaphore proccesses" should I have?? Is it only one, or it is relevant to other system proccesses?
Here is what I get listing the current semaphores
# ipcs -sp... (1 Reply)
Discussion started by: guest100
1 Replies
3. Programming
Hi there,
Could someone please confirm which POSIX semaphore routines should be used for a multiprocess (and not multithreaded) environment?
sys/sem.h definitely works. but the routines, semget, semctl, semop are pretty unwieldy. So, I am looking for an easier way out.
From the man pages... (2 Replies)
Discussion started by: qntmteleporter
2 Replies
4. Shell Programming and Scripting
Hi Friends,
If i execute this command it comes back with 300 lines:
ipcs|grep cerebrus >>> i would like to clear the semaphores but ipcrm can remove one id at a time. is there a quicker way of removing semaphores maybe using awk?
Regards, (1 Reply)
Discussion started by: kekanap
1 Replies
5. Programming
been searching around on how to use an up and down function with semaphores but i can't find an example. i looked into using: "semop" but i have no idea how to use it. I have been able to declared the semaphores using semget and initializing them using semctl. (7 Replies)
Discussion started by: ddx08
7 Replies
6. Shell Programming and Scripting
I am currently trying to find a way to loop through files in a given directory and for each file modify a ctl file and sql load it. I have been using the sed command to change the infile, badfile parameters of the control file. I have not yet tried to sql load it.
Requirement: files are ftp to... (1 Reply)
Discussion started by: dba_nh
1 Replies
7. UNIX for Dummies Questions & Answers
I am having problem with semaphores. I am trying to protect line where process prints so that every process with print in proper order.This is the code..
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/types.h>
union... (3 Replies)
Discussion started by: joker40
3 Replies
8. Programming
among the below socket programming api's, please let me know which are blocking and non-blocking.
socket
accept
bind
listen
write
read
close (2 Replies)
Discussion started by: VSSajjan
2 Replies
LEARN ABOUT FREEBSD
ipcrm
IPCRM(1) BSD General Commands Manual IPCRM(1)
NAME
ipcrm -- remove the specified message queues, semaphore sets, and shared segments
SYNOPSIS
ipcrm [-W] [-v] [-q msqid] [-m shmid] [-s semid] [-Q msgkey] [-M shmkey] [-S semkey] ...
DESCRIPTION
The ipcrm utility removes the specified message queues, semaphores and shared memory segments. These System V IPC objects can be specified
by their creation ID or any associated key.
The following options are generic:
-v If specified once with -W or with -1 for an object, it will show all removed objects. If specified twice with -W or with -1 for an
objects, it will show all removed objects and all failed removals.
-W Try to wipe all specified message queues, semaphores and shared memory segments.
-y Use the kvm(3) interface instead of the sysctl(3) interface to extract the required information. If ipcrm is to operate on the run-
ning system, using kvm(3) will require read privileges to /dev/kmem.
The following options are used to specify which IPC objects will be removed. Any number and combination of these options can be used:
-q msqid
Remove the message queue associated with the ID msqid from the system.
-m shmid
Mark the shared memory segment associated with ID shmid for removal. This marked segment will be destroyed after the last detach.
-s semid
Remove the semaphore set associated with ID semid from the system.
-Q msgkey
Remove the message queue associated with key msgkey from the system.
-M shmkey
Mark the shared memory segment associated with key shmkey for removal. This marked segment will be destroyed after the last detach.
-S semkey
Remove the semaphore set associated with key semkey from the system.
The identifiers and keys associated with these System V IPC objects can be determined by using ipcs(1). If the identifier or the key is -1,
it will remove all these objects.
SEE ALSO
ipcs(1)
HISTORY
The wiping of all System V IPC objects was first implemented in FreeBSD 6.4 and 7.1.
AUTHORS
The original author was Adam Glass. The wiping of all System V IPC objects was thought up by Callum Gibson and extended and implemented by
Edwin Groothuis.
BSD
December 12, 2007 BSD