Operating System - Linux
1748277 Members
4070 Online
108761 Solutions
New Discussion юеВ

Re: cannot set user id: Resource temporarily unavailable

 

cannot set user id: Resource temporarily unavailable

Hi everybody

I have a problem in my RedHat Sever.
I have installed an OAS Server 10.1.2 in a Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Server and sometimes I'm having this error when I'm triying to log in to the server as OAS_USER

"cannot set user id: Resource temporarily unavailable"

I think that it's a user limits problem...but I'm not sure about this.

Any suggestion???

Thanks for all your support

javi


5 REPLIES 5
J. Maestre
Honored Contributor

Re: cannot set user id: Resource temporarily unavailable

Compare the system defined limits (ulimit -a) with the user's owned processes and open files:

ps -U OAS_USER | wc -l
lsof | grep OAS_USER | wc -l

Whenever the user reaches any of those limits you will be unable to log in as that user.

Re: cannot set user id: Resource temporarily unavailable

this is the result

ias10g
------------
ps -U ias10g | wc -l
117

lsof | grep ias10g | wc -l
14957

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 16384
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

cat /etc/security/limits.conf

@dba soft nofile 65536
@dba hard nofile 65536
@dba soft nproc 16384
@dba hard nproc 16384

ias10g soft nofile 2048
ias10g hard nofile 65536
ias10g soft nproc 2047
ias10g hard nproc 16384


root
--------
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 536575
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited


I dont see anything strange....

Any suggestion???

Thanks
J. Maestre
Honored Contributor

Re: cannot set user id: Resource temporarily unavailable

Those results look ok, but are you getting them while not being able to log in?

You said you got that error sometimes, could it be a peak in spawned process for that user, which is not happening right now?

Re: cannot set user id: Resource temporarily unavailable

Yes...in this moment I can't log with the OAS_USER

Yes...i think is a peak of the application...but after restart this proccess the problem don`t resolves

.....I don't know anythink :-(

any sugestion???

Thnaks for all

Re: cannot set user id: Resource temporarily unavailable

the solution is set soft limits equal hard limits in limits.conf file


Javi Like Juan Palomo..."yo me lo guiso yo me lo como"