CentOS 5 Server :: Change Limit Of Max. Open Files?
Jul 17, 2009I use CentOS 5.3 and trying to change limit of max. open files.I added in /etc/security/limits.conf
root soft nofile 50000
root hard nofile 50000
I use CentOS 5.3 and trying to change limit of max. open files.I added in /etc/security/limits.conf
root soft nofile 50000
root hard nofile 50000
Learning about the ulimit command, I came across something unexpected..
Checking the root account limits:
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
[code]...
This is happening on Ubuntu 9.10 serverI'm trying to increase the number of open files allowed for a user. This is for an nginx webserver where the current limit of 1024 is not enough.According to the posts I've found so far, I should be able to put lines into /etc/security/limits.conf like this;
Code:
* soft nofile 4096
* hard nofile 4096
[code]...
if i wanna to compile the unrealircd ircd server with max 150 users what i have to do i remember is on limits.conf the open filesbut i am comfusing the soft and hardmust have the same number !? or different?the second is if i wanna this shell when the user download the pack and he going to make compile to allow him to have only the option to compile in leaf mode and not hubso
View 1 Replies View RelatedRunning an nginx webserver on Ubuntu 10.04 lts In the process of trying to optimize the mysql, various tuning scripts keep telling me to raise the table cache. But they also say the table cache should stay below 1/3 of the open files limit. I can raise that in mysql, but I guess you're not supposed to raise it above the OS's open files max. So I'd like to raise it (found what appear to be solid instructions here: [URL] But... Post by Kees here says it's not safe to raise it [URL] at least, not safe under certain conditions. But I'm not clear on what the conditions are. is it safe or not? If I knew how to just raise it for mysql, I'd do that. But as you can probably see, I'm pretty new to all this. Don't want to wreck my server. (my current limit is the default 1024... wd like to go to 204
View 5 Replies View RelatedNewbie here! Our website CMS is a Tomcat webapp, which runs on a CentOS 5.6 release (Final). The webapp needs a permanent increase of the max. open files value. Currently, the site is "crashing" frequently due to continuous "Too many open files" exceptions that eventually will occur when traffic increases.
This is what I've done to try to increase the max. open files value code...
But still, when I log in (as any user, incl. root), ulimit -n shows 1024, not 16384. Am I missing something here? And, more importantly; Will Tomcat be able to open > 1024 files after my changes mentioned above?
(PS: I also tried rebooting, but no difference.)
I have a problem with open file limit. The software I'm installing claims "Open file limit (ulimit -H -n) too low (1014), need at least 6311" but when I check the linit I get the following
Code:
# uname -a
Linux server 2.6.32-5-amd64 #1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64 GNU/Linux
[code]...
Last weekend i have increased the open file size (ulimit -n) for the application user id i have update the limits.conf file with necessary inputs restarted the service and the server as well, when i check the ulimit value for the specific user by switching user from other user it shows the new value (10240) but if i login directly using the application id the ulimit value shows as 1024 which one is the default one.
View 6 Replies View Relatedfor create an user I put:
useradd username
passwd username
I just want to place upload/download limit to each ip address ( say 20MB per day for each ip or specific ip) using squid proxy i tried through delay pool but it control only download/upload speed not place any download/upload quota restriction. following are my codes I have 1Mbps line
delay_pools 2
delay_class 1 2
# here 700kbps(87Kbytes) Net-Total usage limit, with 50Kbytes per user
[code]...
I also used
"reply_body_max_size" parameter to control upload limit.
But
"request_body_max_size" only restrict download based on size.
how to setup quota ( download quota per day per ip)
We've been experiencing sudden host server crashes minutes after starting a fourth virtual machine. Our setup looks like:
Dell Poweredge T300
1 x Intel Xeon X3323 Quad Core 2.5 ghz
16 GB Ram
CentOS 5.3 (64 bit)
Server is running a stripped down version of CentOS 5.3 (64-bit), running only the built-in Xen Virtualization Environment. There is no other services running on the server (not samba, httpd, sendmail, cups... nothing except Xen) We've created several virtual machines, and as long as we don't start a fourth virtual machine everything runs smoothly (impresive hardware).
Each virtual server is configured as:
PARAVIRTUALIZED
1 Virtual CPU
1 GB RAM
However, 5 minutes or so after starting a fourth virtual machine, the entire host server crashes and restarts itself. Are we limited by the number of cores on the host machine CPU (4 cores)? 1 for the host and 3 for virtual machines? We've read in forums about other Xen setups running up to 11 virtual machines on less powerful hardware? (a dual core server). Should we be using FULLY VIRTUALIZED virtual machines instead? Is the number of XEN virtual machines in fact limited by the number of cores? If so, how can someone run several virtual machines on a single core host?
By the way, we were replacing a previous Dell Server (Poweredge 2600 with 512 MB Ram and a single Xeon single core processor running Open Virtuozzo). We were able to run up to 16 virtual machines at the same time. Of course none of the machines endured hard work (testing environments, etc). But hey, my point is that we expected to get a much higher number of virtual machines on this new hardware.
I'm trying to set up quota limit in samba-3.0.33-3.15.el5_4.1 in CentOS 5.5, by means of the module vfs objects. In the samba howto [1] I found a very brief explanation, but it isn't working for me. The basic idea is to setup a user called 'quota2g' (uid 499) and setup the [homes] share, as it comes by default, to enforce the quota on each user share.quota2g:x:499:499:User quota 2GB:/home/quota2g:/bin/bash
View 1 Replies View RelatedI have a VPS server with 512 MB memory. The php.ini is set so script memory limit = 16 MB. However, I have noticed in my top report, instances like the following:
Quote:
5484 coldclim 25 0 46476 32m 5920 R 0.0 6.4 0:00.93 php
The bold number of 6.4 is the % of sever memory this process is using. 6.4 % of 512 MB of memory is about 32 MB of memory, so it appears that this isn't being limited by php.ini. Am I correct? This leads to the next question: Is there some way to limit the amount of memory a single suphp process can use? (Basically, something like the setting in php.ini which limits suphp processes in the same way.)
i had install my centos in HDD 2 and now how to open my files in hdd 1 (windows)
View 2 Replies View RelatedI need to open a text file which is stored in (file.djvu) format. How could I open this file?
View 1 Replies View RelatedI have been trying to install centos5.3 with an remote hdd (via ISCSI with Intel Nic and remote iscsi boot). If I install the centos with default partitioning (LVM, just /, swap,and /boot partitions), everything installs fine. However, if I install with custom partitions, particularly putting /var and /usr in their own partitions, I get all sorts of error during reboots. It tells me that the system cannot touch a couple files (in /var and /usr) because they do no exist. However, after boot, I can see these files and they existThe following files I can see so far that are being reported missing at boot are:
/var/run/getkey_done
/var/log/dmesg
/var/lock/subsys/kudzu
[code]....
I have just finished an install of Cent 5.5. I loaded up a trunk for a software application I want to compile on cent, but I cannot read the .cpp files. The issue seems to be with the file extension. If I change the extension to .txt, they open just fine. My .FOR, .FPP, and .DAT files display fine, but the .cpp and .h give me an error, "Couldn't display...". What is the problem here that won't let me open these files in gedit?
View 5 Replies View RelatedI have just configured CentOS server my new office. This is the first time I am using CentOS.
Whenever I am trying to change the webroot of the httpd server, it usually say "directory doesn't exist". whereas which can't be the case as it is home directory of the user.
To achieve this, what Do I need to do?
The second issue, I am facing that whenever I am adding new directories to public_html folder, it is not accessible. as the error page 404 is shown. I have changed the permissions to 0705 and ownership is also transferred to other user. What else is required to make new directories accessible by the web?
i have been trying to complete the following project1) Configure a FTP server where we can upload and download files.........2) server must run at 9 pm & stop at 9 am automatically ............although the first task was easy ,i have no idea how to accomplish the 2nd task(not to mention I'm a new user)
View 5 Replies View Relatedhave virtualservers on virtual harddisk due to system crash when im trying to access the servers its giving the error as failed to start virtual machine fileserver medium /rootfiles/vdi/fileserver.vdi is not accessiblevd:error verr_media_not_recognized opning image file
/rootfiles/vdi/fileserver.vdi (verr-media-not-recognized)result code:ns-error-failureour company network gone down.no internet is coming.so if i want to install dhcp i need dhcp rpm package for fedora12 2.36.31.9-174fc12x86_64
I was searching around and I stumbled upon a Linux Kernelix Sockets Local Denial of Service exploit.I downloaded the exploit, compiled it ran it to check if I am vulnerable.As I was expecting, the exploit instantly "killed" my Maverick system and I had to use the power button to reset my computer...Is there any way to limit the numberof allowed open sockets?I don't think that this can be done using /etc/security/limits.conf in a similar way of preventing the fork bombs
View 1 Replies View RelatedCentOS 5.4 install, likewise open standard install (For active directory authentication).I have a license service which requires a license.txt be in the users home directory.The group owner for license.txt must be the same as the license service. Whenever a new domain user logs in, it creates the all the appropriate files but the group owner for license.txt is the users domain group. My current workaround seems like more effort than it's worth, is there another way to get this process solved easier/more secure?
- copy the license.txt into /etc/skel
- created a script to check for the presence of license.txt, check it's permissions and change them if necessary
- gave the domain's group sudo [nopasswd] access to the script (the script is not writable)
- execute the script in /etc/bashrc
I have a ubuntu 10.10 server with apaceh2 and php and I want to open a file larger than 2gigs
I've read there is a flag that needs to be compiled into php to do this ?
I can go to Places-Network on the gnome menu and pick the share I have on my other machine (I have read-write since the account is in the same user name) I can browse the files on the server using Nautilus, however when I try to open OpenOffice files it fails and won't open them. I have to manually mount the files system as cifs before I can open OpenOffice files. Anybody know why this is happening.
View 3 Replies View RelatedCan syslog be used to "watch" other log-Files from other software? I would like to get an info in messages if a logfile of squid is changed/something is added.
View 4 Replies View RelatedI have a question about zip file.How can I change the name of a folder after the folder is ziped,
Example: I have a 'test' folder, and it includes test1.txt and test2.txt
test/test1.txt
test/test2.txt
[code]...
Just installed a new CentOS with the control panel Interworx. Everything fine, BUT. I can't add new ipadresses cause there is no network device.When i do 'ifconfig' i get the following:
[root@cobra ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:C0:A7:25:9F
inet addr: Bcast: Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]....
in my office we are using redhat server and 20 windows client machine. some times while viewing the server stored files or not able to view.yesterday i saw a problem all the files are showing but not able to open a single fine after restarting the computer iam able to open the file.
View 2 Replies View RelatedI'm trying to config Apache and Subversion to work together, I did:
1. yum install mod_dav_svn subversion then I had Subversion and httpd installed!
2. create: /usr/local/subversion/repos
create: /usr/local/subversion/repos/test (by svnadmin create)
create: /usr/local/subversion/access/svnauth.conf (by htpasswd)
added to file : /etc/httpd/conf.d/subversion.conf:
<Location /repos>
DAV svn
SVNListParentPath on
[Code]...
I neet to install a cgi script in my CentOs 5.5
So after compiled the cgi script, I put it in the folder /var/www/cgi-script/
I try to access via my web browser and in the apache error log : I have this "/var/www/cgi-bin/mapserv" : error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory"
In my httpd.conf, I just add the following in order to provide the shared libraries for my cgi script :
<Location "/cgi-bin/"
SetEnv /home/hmonglee/instantclient_11_2
</Location>
But same error.