1837063 Members
2457 Online
110111 Solutions
New Discussion

Re: semaphore error

 
Deepak Seth_1
Regular Advisor

semaphore error

We use baan ERP version 5c. This is on HPUX K class box . This is a development machine with 2 gig of phy memory. But very soon we will move to a high end N class server.

Existing Kernel Values as below :

sema 1
semaem 16384
semmap (SEMMNI+2)
semmni 3200
semmns 3200
semmnu 3200
semmsl_override 2048
semume 10
semvmx 32767

Error Message in Baan

Log_mesg: GetSemaphore failed; errno = 22


Any suggestions . Any value needs to be increased ? Are there any values which are memory dependent ?
3 REPLIES 3
Roger Baptiste
Honored Contributor

Re: semaphore error

Deeapak,

Is the message a warning
message or is a error causing
a program to abort?

Unix error number 22, means
invalid arguement. But, i
am not sure whether the
message you posted is a
Bann errno or a Unix errno.

Regarding the Semaphore parameters, are the values
corresponding to what Baan
recommends? I have similar
values on my oracle db system
working fine except for
semmue which is 512 (whereas
yours is set to 10).

Track the usage of semaphore
table (semmni) through glance.
That should give an idea whether you are running out
of semaphores. Also, have
a look at ipcs -as output
for the semaphore allocation
details.

Another question, is the
system newly setup? or has
Baan been running fine on
the system .

-raj
Take it easy.
Deepak Seth_1
Regular Advisor

Re: semaphore error

This is baan error in a file named $BSE/log/log*audit*. What does semume stand for . infact all my server have this value set to 10 . But this is Baan 5c and all my other baan database server has baan 4c2/4c4 . This problem started a month back and doesn;t allow user to update the database and the only solution we have is to reboot the server.
Sridhar Bhaskarla
Honored Contributor

Re: semaphore error

Error No: 22 is invalid argument and your error indicates getsemaphore failed. This could be due to the fact that a process is trying to access a semaphore that doesn't exist. Or it could be that it is not able to create a semaphore (if there is no semaphore existing for the key specified in semget(),it will create one).

The first scenario is that there is a problem with your Baan software.

The second case is when the kernel parameters semmni (max semaphores allowed at any given time) or semmns (number of semaphores available to processes systemwide). You can do a

sar -m 2 20 to see the usage of semaphores. Depending on the value, you may want to increase these values.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try