Debian :: Limit The Bandwith Usage For Each User On Server?
Jan 7, 2011I have a webserver with a few users on and i wonder how i can limit the bandwith usage for each user on my server ?
View 1 RepliesI have a webserver with a few users on and i wonder how i can limit the bandwith usage for each user on my server ?
View 1 Repliesi am programming to get a real number to show real-time system bandwidth used ? that mean the bandwidth used at the time my fuction running? am using C language to do that. so help me please!
View 4 Replies View RelatedWe are using RHEL4 AS U5 and Sendmail version sendmail-8.13.8. How to find out total mail transfer size (month basis) through Sendmail service. Is it possible in linux.
View 1 Replies View RelatedI'm using mint 10 - ubuntu 10 derivative. I'm a programmer with 10 years experience with linux comfortable (but not a genius) with the command line. Adept with vim. My security knowledge is woefully low.
My bandwith usage has gone way up. To make a long story short, I am suspecting an intrusion of some sort on my machine. Currently I'm using a router with wireless turned off. I'm running iftop and the Rx total for today (still high) is showing 333MB.
For starters, I have two questions:
1)What should I be looking for in /var/log?
2)Any recommendations on software that might help here?
I 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.)
How can I limit printer usage by SAMBA server?
View 6 Replies View RelatedI've noticed that "su" can be run from any user account so long as the user knows the root password.What if I want to limit the ability to "su" to only 1 user account? For example: Pretend my desktop has 4 different user accounts. Currently each user account could run "su" for root access if the person sitting in front of the screen knows the password.
1) Could I somehow make only 1 of the 4 user accounts able to "su" into root mode?
2) If yes, then would doing so have any side-effects?
I have some domains on a VPS server. Typical account memory usage for all domains runs at 50% of available, but I have a problem. One domain is causing me trouble because intermittently traffic will spike on that domain, causing so many requests within 1 min that I exceed my memory allocation for my entire VPS package. Apache is then killed but the virtualization software and Apache must then be restarted.
A sample snippet from tops right before the sever went down would like like this:
All of that memory usage adds up. I would like to "throttle" the number of processes that user/domain can run. I think this would be a quick and easy way to keep the domain from taking down my entire VPS. My understanding is that I could do this with the /etc/security/limits.conf file.
Is that correct?
I have never done this before. Do I want to set a hard or soft limit? I think if I wanted to limit the number of processes for "coldclim" to 15 I would add a line to limits.conf like this:
Code:
Assuming that is correct, can anyone tell me how the website would respond once it reached its limit? Would visitor queries become sluggish, or would the website not come up for them at all?
I ran into a user today that indicated that their company only allows them to log in through a terminal session once (no multiple logins). On second try their login window terminates. They are using putty.Is this being accomplished through PAM or sshd ( or some other method)?
View 1 Replies View RelatedHow can i limit user to their mailbox in specific size.
View 2 Replies View Relatedfor create an user I put:
useradd username
passwd username
I need to add another user besides the one set up during the installation procedure but I also need to limit all users to use only their own /home/user directory.
View 4 Replies View Relatedrecently i rent a xen vps intended to setup a PPTPD vpn server for me and my friends. so we can by-pass the great firewall in china and get back on ....., facebook and stuff. i have already setup the server and i can connect to it without any problem. but i still want to do some further configuration the server:
1. i want to limit the bandwidth to 400k/s per connection.
2. i also want to limit the max connection per user a/c
i have some thoughts on the 2nd requirement. in the user configuration file of /etc/ppp/chap-secret, you can specify the range of ip the user can get, does it limit the max connection per user a/c? or they can connect anyway, just every now and then a box pop up says conflict in IP address?
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 RelatedI have 2 ISP where give me IP Public with ISP A (/29) and ISP B (/28). So, I connect this two ISP to unmanaged switch. And from that switch, I take one cable connected to eth0 on the server. (Note : My server have 2 dev ethernet, eth0 and eth1). eth1 will go to the Switch which will go to the LAN.
My Question is : 1. Is this possible to make bandwith control on the gateway server with mode separating International bandwith and local bandwith (my country bandwith)? ie, for my Mail Server I will give the "intl bandwith" only 512 kpbs and for local bandwith with 1Mbps. What a software can I use for this model ?
2. Which model I should to used, with NAT or with Bridging router? That's all for now..
Everytime CPU reaches around 85% of maximum it shuts down due to overheating. What I want to do is be able to throttle the cpu to 75% so it never goes above that. I don't want to just throttle individual programs which I think is what CPULimit does right? The fans are failing but I can't afford to get fixed. I just want to use it for email and web browsing usually.
I have cleaned dust out, use in a well ventilated room, use a cooling stand etc but still when CPU gets to approx 85% then whala it shuts itself down. Have been using with XP but just switched to Ubuntu and have only had it shut down once so far.
I need to limit the ram usage under the below scenario,
" having 8GB of ram, need to limit the ram usage up to 4GB, thereafter must use swap only"
I'm writing a shell script which aims to create a safe gtared (xxx.sql.gz) copy of MySQL databases.This script is planned to be Cron-Jobed.
Well, what I need to add to this shell, is something that limit CPU usage for the whole process (just in case if the database being generating is a huge one.)So, after few time of googling I found couple of solutions:
- Using cpulimit.
I tried to place the code in Position(1) and Position(2) but it didn't seem to be working fine.. Any idea about the right use?
And the other Solution is:- Using nice.
Well, assuming I named my shell script (sqlbacker)..
Finally, this is my first time I ever write a shell, so correct me if somewhere I made a mistake :-)
(The script itself works perfectly)
There's a disfunctional process eating copious cpu time.Is there a way to effectively assign it a high nice value? I need to do this whenever it runs, for whatever reason, and I can't be bothered to track down all the scripts and scenarios that cause it to run and change the script to use nice. And I can't be bothered to manually run renice whenever I notice that it's running.
I want the OS to automatically assign a high nice value to this process, perhaps based on the processes name. Is this possible?Presumably, a cron job could run every 5 minutes and run "renice" on every process matching a given name, but I'm hoping for a solution with more finess.
I am trying to configure linux printer Server.
Setup : Using Centos 5.3
Printer : hp 4350
At present we are using windows print server getting user name and authenticated from domain server. I need your suggestion to configure linux printer server and how to share the printer to users and how to limit the user in taking printouts.
I recently read a windows tip which read: - Windows allots 20% of the bandwidth by default for various services like Windows update, spyware checks etc. We can get hold of this bandwith by changing the values of limit reserve bandwidth under QOS packet scheduler. Now my questions: How to limit the bandwidth usage used by ubuntu updates in the above lines?
View 4 Replies View RelatedI've written a program for a class that my professor will be testing in various low memory environments to see how it behaves when the program runs out of memory. Is there a way I can simulate the execution in a low memory environment without creating a virtual machine?
View 1 Replies View RelatedI was looking into using control groups to limit the memory usage of each user on my CentOS system. I was told that this required me to recompile the kernel to have cgroup support. Is this true? Or is there a kernel module that will allow cgroups to work for users and groups on the system without kernel re-compile? Or, is there another way to limit the users memory usage? I have tried ulimit and it doesn't seem to work right.
I ask since this setup will be on a VPS system, that means to re-compile the kernel I need to use Xen instead of OpenVZ. Plus I have never in my life re-compiled the kernel, least of all with different modules ha ha ha so I would have to pay my NOC to do it. So if I don't HAVE to recompile the kernel to get cgroup support.
Can I, with only the use of IPTABLES, limit the incoming bandwith for a protocol? We have for example servers that have a FTP and HTTP server running and whenever HTTP has a lot of connections open, the other uploads/downloads get a timeout. I know I can limit the number of connections but prefer to limit on protocol level. Is this possible using IPTABLES and if so, can someone indicate how to proceed or provide a link? If it's not possible can someone point me to the right tool for the job?
View 6 Replies View RelatedI have a few multi-user servers in an academic laboratory. I am having a problem with some users maxing out the available RAM, causing such sever slowdowns the machine essentially crashes. My servers are Dell Power Edge's running Ubuntu 8.10 Server Edition (Not my choice). I would like to set a maximum limit on the amount of ram a user can utilize. This morning I experimented with setting limits via /etc/security/limits.conf and using ulimit. Neither of them prevented my test program, a simple infinite loop of mallocs, from crashing the server.
View 7 Replies View RelatedIm trying to limit the diskspace users on the system may consume, and i found quotas (im a total linux noob). But when i try to set it, no matter what i set it to the maximus is 2 GB. Now... i need quite a lot more than that. One user should be able to use 1900 GB and the other 600 GB. How can i fix this? Im using ubuntu server 10.04.
View 9 Replies View RelatedI've been looking for this feature for months and couldn't find a solution for this. Does anyone know how to create users and limit the user to a specified directory?
View 6 Replies View Relatedi have VPS server and i installed Xserver on it and all ok i created new user for my client but i need to limit his access to the following
he can download and upload to his home file " browser by Firefox"
he can't install or use any application "just the one i installed it"
he can't see the file system or browser it !! if i can give him specific space on harddisk would be better
he can extract and compress files
he can't edit the settings ....
i have another sensitive folder and setting i don't want him to see it so how to limit his access?
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]...
I'd been using Directadmin on my Debian 5.0 machine earlier . I had 1GB ram and a lot of memory was used up. Sometimes even the OS crashed as the programs couldn't allocate memory. I increased my RAM to 3GB but still the RAM usage sometimes just flow up to 1GB although normally DirectAdmin doesn't use more than 200MB . Restarting the server fixes the issue but then it climbs up again and comes down to a 200-400MB again by itself. Cached Memory was also being too much and sometimes even Swap Partition gets used up .Just to be sure that it's not the Bugged OS, today I installed the latest Debian 5.0.6 Net-inst on my machine . I allocated just 128MB of ram to it because it was just a testing machine. I installed it without the swap partition since I thought I will make a swap-file if it is required. I did not even update the OS rather I just installed Openssh-server and everything else was default as in Debian 5.0.6 . When server started, only 20MB ram was being used .
I just logged into my server afer about 5 hours and saw 112 MB ram being used out of which 91MB was cached. I haven't installed anything so why is this happening ?Why is this happening when I just installed the default Operating System and didn't even run an apt-get update on it.I think my previous operating system with Directadmin was also having similar issues.