Welcome to Siva's Blog

~-Scribbles by Sivananda Hanumanthu
My experiences and learnings on Technology, Leadership, Domains, Life and on various topics as a reference!
What you can expect here, it could be something on Java, J2EE, Databases, or altogether on a newer Programming language, Software Engineering Best Practices, Software Architecture, SOA, REST, Web Services, Micro Services, APIs, Technical Architecture, Design, Programming, Cloud, Application Security, Artificial Intelligence, Machine Learning, Big data and Analytics, Integrations, Middleware, Continuous Delivery, DevOps, Cyber Security, Application Security, QA/QE, Automations, Emerging Technologies, B2B, B2C, ERP, SCM, PLM, FinTech, IoT, RegTech or any other domain, Tips & Traps, News, Books, Life experiences, Notes, latest trends and many more...
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Tuesday, February 9, 2010

ulimit -> a Linux Command : To limit user resources

The shell contains a built-in command to limit file sizes, ulimit, which can also be used to display limitations on system resources. A second method for limiting the potential impact of runaway processes is to set limits on a per process basis. This can be achieved by setting the ulimit command in /etc/profile.

The ulimit command allow to limit system-wide resource use. This can help a lot in system administration, e.g. when a user starts too many processes and therefore makes the system unresponsive for other users.

-bash-3.00$ ulimit -a
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) 274432
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
-bash-3.00$

Let's say, if you got an error like - Configuration Error: nofiles is set to '1024' but minimum required is '2048' then you can change using the below command -

-bash-3.00$ ulimit -n 4096

How to check or change the language on your Linux Server


Let's say, if you wanted to change the LANG to en_US instead of en_US.UTF-8 on your Linux server, then use the below commands –
-bash-3.00$ echo $LANG
en_US.UTF-8
-bash-3.00$ export LANG=en_US
-bash-3.00$
-bash-3.00$ echo $LANG
en_US
-bash-3.00$

Thursday, February 4, 2010

How to find OS bit version in linux/unix

How to find OS bit version in linux/unix?

Just login to your linux server and issue the below command:

-bash-2.05b$ getconf LONG_BIT
32
-bash-2.05b$


-bash-2.05b$ getconf LONG_BIT
64
-bash-2.05b$


In this way, you can easily make out either it's 32 bit or 64 bit OS on the machine.