Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hackaust

Pages: [1]
1
First thank you for answering my questions Admin.

About this:
Quote
Some middle value for nproc would be 25.
1 process can consume 99% of CPU, then i guess that the quantity of process dont be the better solution to limit CPU usage, then i will insist on this because I believe it is of utmost importance in an environment with multiple accounts.
My purpose is to limit just to keep the system responsiveness (about 50%).

Checking the contents of the file /etc/security/limits.conf could check the options "nice" and "priority" as follow:
Code: [Select]
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - a 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
#
#<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 file descriptors
#        - 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

On the internet some articles teaching how to set up using these options like this:
http://linux.die.net/man/5/limits.conf

I tried to set up under these articles but the command "top" the nice values are not changed, remaining always 0.
these options only works in a custom kernel? or, if not,
How to configure nice and priority options properly?

Im using Centos 6.5 + CWP 0.9.8.12 (Apache 2.2.2.7 & Nginx Reverse Proxy)

Thanks for your time!

2
Hello everyone,
The limit imposed by the settings in limits.conf not work.
I need a solution where I can limit the use of maximum CPU to ensure the responsiveness of the system. This is essential for the growth of hardware configurations that this entails greater number of customers.
Please if you have any idea how to do this advise at all believe that this is of interest to everyone here.

Thank you.

3
CentOS 6 Problems / Re: [SOLVED] CLAMAV update problem
« on: February 19, 2016, 04:53:04 AM »
Igor S., i run these commands but receive this error on freshclam:
Code: [Select]
ERROR: Can't change dir to /var/lib/clamav
When i run "service clamd start" command, i receive the following error:
Code: [Select]
Starting Clam AntiVirus Daemon: LibClamAV Error: cli_load(): Can't open file /var/lib/clamav/bytecode.cld
LibClamAV Error: cli_loaddbdir(): error loading database /var/lib/clamav/bytecode.cld
ERROR: Can't open file or directory

I was searching about this error on google but not find nothing about.
You have some idea?

Thanks

4
CentOS-WebPanel Bugs / Re: CWP keep loading
« on: February 08, 2016, 10:04:39 PM »
Hello brothers,
My CWP keep loading after login.
Perhaps that i went access one page after stay logged, but it keep loading, then i went to the login page, and it no responds more...
I tried connect via http and https.
I tried access the logout page and then the login page newly.
No success.

5
CentOS 6 Problems / Re: [SOLVED] CLAMAV update problem
« on: February 03, 2016, 10:37:15 PM »
Sorry, but you can more detailed in your reply? i dont understand what means /scripts folder. What the location?
I get clamav updated using the following workaround but not could restart the service via CWP:

Code: [Select]
sudo chmod -R 777 /var/lib/clamav
sudo chmod -R 777 /var/log/clamav
sudo chmod -R 777 /var/log/clamav/freshclam.log
sudo freshclam
sudo chmod -R 640 /var/lib/clamav
sudo chmod -R 640 /var/log/clamav
sudo chmod -R 640 /var/log/clamav/freshclam.log

Thanks

6
CSF Firewall / Re: DDoS Protection script
« on: February 02, 2016, 10:04:35 PM »
Maybe helps you, i know that the http protocol open 2 connections by request, the SPDY come to expand this limit, then over http i guess that 1 request is 2 connections, must be validated this...

7
Installation / Re: How it Limit Per user ? its look like cloudlinux do ?
« on: February 02, 2016, 09:52:51 PM »
Hi Guys,
I need apply CPU limits for my users in CWP, but i know that its double-edged sword, then i think I got an intermediary solution, that the accounts must have 50% ok CPU limit usage. The server will not be overloaded and the user will not be penalized.

Researching on how to apply this limit i checked this page:
http://linux.die.net/man/5/limits.conf

Then according to the instructions, i should modify the limits.conf file and add this line, assuming the user is xxxyz:
Code: [Select]
@xxxyz          soft    cpu             50000
this limits the CPU usage by 50% to xxxyz user?
Is correct that?

Pages: [1]