ubuntuusers.de

open file limit 1024

Status: Gelöst | Ubuntu-Version: Ubuntu 10.10 (Maverick Meerkat)
Antworten |

Smithers929

Anmeldungsdatum:
28. November 2010

Beiträge: Zähle...

Ich habe folgendes Problem: Bei der Installation von VMware, meckert das Programm, dass es nur 1024 MB für Open file nutzen kann und dass dieser Wert vor der Installation erhöht werden muss.

Nur: wo mache ich das? Habe gegoogelt aber da hat sich seit der letzten Version scheinbar einiges verändert oder ich kapier das Tutorial nicht :p

Ich muss dazu sagen, dass ich erst seit gestern aktiv mit Ubuntu arbeite und totaler Linux neuling bin.

Danke für eure Hilfe Smithers929

John_W

Anmeldungsdatum:
10. Juli 2010

Beiträge: 571

Poste bitte die genaue Fehlermeldung, so bringt das nix.

Smithers929

(Themenstarter)

Anmeldungsdatum:
28. November 2010

Beiträge: 9

Wieso bringt das so nix? Hab ich die Frage falsch gestellt - dann sorry.

Wenn ich ulimit übers Terminal abfrage kommt da 1024 raus - da soll aber 4096 stehen. Habe auch meine Datei (etc/security/limits.conf) wie in einem Tutorial beschrieben angepasst - aber auch das funktioniert nicht ☹

Was mache ich Falsch?

John_W

Anmeldungsdatum:
10. Juli 2010

Beiträge: 571

Was mache ich Falsch?

Das können wir sagen, wenn wir Fehlermeldungen und andere Ausgaben sehen. Also z.B. sowas wie

john@localhost:~$ cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an 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
#        - NOTE: group and wildcard limits are not applied to root.
#          To apply a limit to the root user, <domain> must be
#          the literal username root.
#
#<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 files
#        - 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
#        - chroot - change root to directory (Debian-specific)
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#root            hard    core            100000
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#ftp             -       chroot          /ftp
#@student        -       maxlogins       4

# End of file

john@localhost:~$ ulimit
unlimited

Beschreibungen sind immer ungenau, das zeigt die Erfahrung.

Smithers929

(Themenstarter)

Anmeldungsdatum:
28. November 2010

Beiträge: 9

okay

hier die Meldung vom Terminal:

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 16382
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
christianscholz@CS-LIN-x64-UBUNTU:~$ ulimit -n 4096
bash: ulimit: open files: Kann die Grenze nicht ändern: Operation not permitted
christianscholz@CS-LIN-x64-UBUNTU:~$ 

und hier meine limits.conf

# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an 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
#        - NOTE: group and wildcard limits are not applied to root.
#          To apply a limit to the root user, <domain> must be
#          the literal username root.
#
#<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 files
#        - 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
#        - chroot - change root to directory (Debian-specific)
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#root            hard    core            100000
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#ftp             -       chroot          /ftp
#@student        -       maxlogins       4
#*               hard    nofile          65536
#*               soft    nofile          65536

# End of file

Danke für die Hilfe

John_W

Anmeldungsdatum:
10. Juli 2010

Beiträge: 571

Habe auch meine Datei (etc/security/limits.conf) wie in einem Tutorial beschrieben angepasst

Da seh ich nix von... Oder hast du
a) den falschen Pfad verwendet, also den relativen (ohne / am Anfang) verwendet?
b) das ganze als normaler Benutzer versucht (→ Permission denied, darfste nicht, darf nur root)
oder
c) einfach nur ein deppertes Tutorial verwendet? (Poste mal bitte den Link dazu)

christianscholz@CS-LIN-x64-UBUNTU:~$ ulimit -n 4096
bash: ulimit: open files: Kann die Grenze nicht ändern: Operation not permitted

"Operation not permitted" → Darfste ebenfalls nicht, darf auch nur root.

sudo ulimit -n 4096

Smithers929

(Themenstarter)

Anmeldungsdatum:
28. November 2010

Beiträge: 9

Bei

sudo ulimit -n 4096

kommt folgendes raus:

christianscholz@CS-LIN-x64-UBUNTU:~$ sudo ulimit -n 4096
[sudo] password for christianscholz: 
sudo: ulimit: command not found
christianscholz@CS-LIN-x64-UBUNTU:~$ 

Bin über Rechner auf Dateisystem / etc / security / limits.conf

Dann

sudo gedit

datei da hineingezogen und bearbeitet.

Wieso kannst du das nicht sehen? Die beiden letzten Zeilen:

#*               hard    nofile          65536
#*               soft    nofile          65536

sind im Original nicht vorhanden. –> Diesen Part habe ich hinzugefügt.

Den Link suche ich dir raus.

LG Smithers

John_W

Anmeldungsdatum:
10. Juli 2010

Beiträge: 571

Du musst die # wegmachen, sonst sind die Zeilen auskommentiert und werden ignoriert.

Smithers929

(Themenstarter)

Anmeldungsdatum:
28. November 2010

Beiträge: 9

Hat ebenfalls nix gebracht. Musste das System neu aufsetzen und siehe da - es ging 😀

Antworten |