How to Change ulimit parameters for user


*Don't forget to logout and login to verify your configuration applied. Also application restart should be a safe way.

Information:

#ulimit  -a

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

Ulimit  options that are supported by every shell I've seen:

  • -H: Combine with other options to set or show the hard limit only.
  • -S: Combine with other options to set or show the soft limit only.
  • -c: maximum core file size (512-byte blocks)
  • -d: maximum heap (data segment) size (kB)
  • -f: maximum file size (512-byte blocks)
  • -n: maximum number of file descriptors
  • -s: maximum stack size (kB)
  • -t: maximum CPU time (s)

A few other very common options:

  • -a: Display all limits.
  • -m: maximum physical memory size (kB)
  • -v: maximum virtual memory size (kB)

OS Examples;

  • Redhat|config
# vi /etc/security/limits.conf

oracle     soft     nofile    65536

oracle     hard     nofile   65536[/shell]

Only  Edit  limits.conf  file  is enough  for  soft  and  hard  open files  limit  but in some case  you should  add this to profile.

ulimit –n 65536

Max. file  parameter can be  defined  with  this formula.

for  8GB ram capacity;

8gb= 8192 mb

8192/4= 2048

2048*256=524288

[shell]# sysctl -w fs.file-max= 524288[/shell]

and  permananet;

[shell]# cat /etc/sysctl.conf[/shell]

fs.file-max = 524288

[shell]# sysctl –p
  • Redhat|monitoring
#ulimit -a[
#ulimit -a -H   // hard limit.
  • Solaris|config
]#vi /etc/system

set rlim_fd_max = 4096   #hard

set rlim_fd_cur = 1024     #soft

For  oracle  database  maybe  you need to set project  to define limit. This  is a well-known method  to specify  limit  parameters  for  oracle  user.

# projadd -U oracle -K "process.max-file-descriptor=(priv,4096,deny)" user.oracle

# echo 'rlim_fd_max/D' | mdb -k

# echo 'rlim_fd_cur/D' | mdb -k
  • Solaris|monitoring
# ulimit -Ha //hard

# ulimit -Sa // soft

# ulimit -n / open files
  • HP-UX|config

For  HP-UX  ,also you need to check  and  verify  kernel  parameters. You need to use  kctune  to configure  kernel  parameter  which  belongs  to  your  limit  options.

#kctune -v maxfiles

#vi /home/user/.profile veya /etc/profile

ulimit -n 4096
  • HP-UX|monitoring
# ulimit -Ha //hard

# ulimit -Sa // soft

# ulimit -n / open files

 

Tagged In:

I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me

24 Comments

  1. Тысячи Обратных ссылок 40 usd за месяц http://1541.ru через Размещение объявлений на 10-ки тысяч форумов, блогов на 2 -х компах по 2-м базам сразу. Всего около 15 000 млн. форумов

  2. Number of numerous feee Swedish dating site that offer lot off interesting individuals. Even you feel hurt as he ogles other women, do not forget that confronting him will not carry you far.

  3. Alsso called step is to find a brokerage firm through whom yoou will exchange currencies. Neve trade simply the sake of it again. Will these rules work well in a volatiole spot?

  4. Is actually your belief about the markets generally? Be sure you you're the tone of voice that says you're being sincere in your request. This change of heart was hard too acknowledge.

  5. Many people suggest not doing this because it is annoying. This is a method of advertising if you have time. Whenever your blog got ranked high, more men and women will found the device.

  6. Spin the bottle is a person of the most well-lnown 918kiss hottest game perform of record. It's more fun to pick opposing departments. Free activities for girls are pretty big business at the second.

  7. Falling of hair alopecia at the time of plucking is the basic symptom of this hair problem. viagra connect walmart (saleviabuy.com) viagra canada

  8. buy viagra online without a prescription http://fmedrx.com/ generic viagra online canadian pharmacy buying viagra online legal

  9. buy generic viagra online usa http://usggrxmed.com/ online pharmacy viagra generic purchase cheap viagra online

  10. alternativen von viagra https://purevigra.com/ quanto costa viagra da 100 mg

  11. buy viagra in atlanta in a store viagra minn 100 mg pfizer viagra no prescription

  12. viagra laced beer royal wedding buybuyviamen.com female viagra trials

  13. does viagra stop edema lansoprazole viagra how long before sex should i take viagra pill

  14. viagra dosage mg paradiseviagira.com generic viagra with dapoxetine

  15. viagra 25mg online cheap viagra online pharmacy mexico pharmacy viagra

  16. herbal viagra alternatives reviews viagra 50 mg precio viagra altitude high

  17. generic sildenafil canada viagra purchase in india how to get viagra prescription australia

  18. what happens when u give a girl viagra robin williams viagra skit viagra canadian pharmacy generic

  19. cost of generic viagra generic viagra 25mg cheapest viagra in united states

  20. price of viagra 100mg in usa prescription viagra for sale viagra generic cost

  21. essays written by scalia college entry essay things to write a persuasive essay about

  22. essay arguments top college admission essays custom essay writing rhetorical analysis

Leave a Reply