Zuljin

Fundador
Miembro del Equipo
Fundador
ADMIN
Se incorporó
15 Enero 2004
Mensajes
11.768
Amigos, una duda...

Estoy instalando el Service Bus de Oracle y estoy haciendo la instalación tal como dice el manual de 382 páginas :daleoh. La cosa es que en un punto hace referencia a la cantidad de file descriptors y max processs y tasks. Entonces me queda la siguiente duda:

Si la documentación dice:

Service: Oracle Service Bus + WSM + WLST + Node Manager
Number of File Descriptors: 5830
Operating System Processes and Tasks: 345


¿Qué parámetros se ponen en el limits.conf?

Ejemplo

* soft nofile 4096
* hard nofile 65536
* soft nproc 2047
* hard nproc 16384

Gracias
 

Miguelwill

I am online
Miembro del Equipo
MOD
Se incorporó
23 Febrero 2004
Mensajes
12.278
en un sistema que tuve que aumentar el limite , se dejo como "-" (guion), quizas en la doc de donde lo saque se estaba especificando como un limite absoluto

viendo otro lado sobre la explicacion del hard vs soft limit

The hard limit is the ceiling for the soft limit. The soft limit is what is actually enforced for a session or process. This allows the administrator (or user) to set the hard limit to the maximum usage they wish to allow. Other users and processes can then use the soft limit to self-limit their resource usage to even lower levels if they so desire. ( http://serverfault.com/questions/265155/soft-limit-vs-hard-limit )

lo que google translate dice:
El límite duro es el límite máximo para el límite blando.
El límite suave es lo que realmente se aplica para una sesión o proceso.
Esto permite al administrador (o usuario) para fijar el límite duro para el uso máximo desean permitir.
Otros usuarios y procesos pueden utilizar entonces el límite blando a la auto-limitan su uso de los recursos a niveles aún más bajos si así lo desean.

yo le voy al soft, aunque antes de leer eso me hubiera ido al hard :xd


edit: algo mas para amenizar la explicacion:

There are two types of limits that can be set for each property listed above, a hard and soft limit.

A hard limit cannot be changed by the user once it is set. Hard limits can only be changed by root user. A soft limit, however, can be changed by the user but cannot exceed the hard limit i.e. It can have minimum 0 value and maximum value as equal to 'hard limit'.
 
Upvote 0

Zuljin

Fundador
Miembro del Equipo
Fundador
ADMIN
Se incorporó
15 Enero 2004
Mensajes
11.768
Gracias. Ahí hice un cambio según lo que me mencionaste respecto al soft limit.
 
Upvote 0

K3rnelpanic

non serviam
Miembro del Equipo
MOD
Se incorporó
1 Octubre 2007
Mensajes
6.052
Si la documentación dice:

Service: Oracle Service Bus + WSM + WLST + Node Manager
Number of File Descriptors: 5830
Operating System Processes and Tasks:345

Ejemplo

* soft nofile 4096
* hard nofile 65536
* soft nproc 2047
* hard nproc 16384
A ver :zippy

File Descriptors es el valor nofile que usa ese servicio mientras que nproc son los procesos que usa.
Lo tienes en una máquina independiente o corren otros servicios en la misma máquina?

Así a primeras, validando lo que puso don Miguelwill, efectivamente los limites "soft" son los limites primarios, y en los cuales el sistema dará un warning y que por su naturaleza siempre deben ser menores al "hard", dado que este último será el límite asignado por sistema, y por lo tanto, después de él no hay más y es probable que los recursos queden cortos :zippy.

Mi recomendación entonces, es setear el soft en un valor más alto que el que tienes actualmente (según el ejemplo) :zippy.

De hecho, el archivo limits.conf es bastante educativo en ese aspecto, pero nunca está demás tener explicaciones :zippy

limits.conf
ach line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open file descriptors
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
#
#<domain> <type> <item> <value>
#

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
 
Upvote 0
Subir