By powerbankukr
Now i see in my account: 31492 admin 20 0 476776 31992 7996 R 13.0 3.1 0:09.67 apache2 31987 admin 20 0 461036 35220 3916 R 13.0 3.5 0:02.37 apache2 32038 mysql 20 0 894032 131044 2980 S 13.0 12.9 0:01.42 mysqld 32417 admin 20 0 478600 30152 4236 R 13.0 3.0 0:00.60 apache2 32418 admin 20 0 476248 27528 4236 R 13.0 2.7 0:00.67 apache2 32424 admin 20 0 479912 32928 5816 R 13.0 3.2 0:00.57 apache2 25 root 20 0 0 0 0 S 6.5 0.0 0:16.48 kworker/0:1 32408 admin 20 0 482228 37592 8300 R 6.5 3.7 0:00.78 apache2 32416 admin 20 0 480336 30932 4032 R 6.5 3.0 0:00.65 apache2 32422 admin 20 0 481356 41452 13952 R 6.5 4.1 0:00.65 apache2 32423 admin 20 0 465072 16364 4008 R 6.5 1.6 0:00.48 apache2
my apache2.conf
PidFile ${APACHE_PID_FILE} Timeout 30 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 10
<IfModule mpm_prefork_module> StartServers 1 MinSpareServers 1 MaxSpareServers 1 ServerLimit 16 MaxClients 100 MaxRequestsPerChild 1000 </IfModule>
<IfModule mpm_worker_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 200 MaxRequestsPerChild 4000 </IfModule>
<IfModule mpm_event_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 200 MaxRequestsPerChild 4000 </IfModule>
User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} #User www-data #Group www-data
AccessFileName .htaccess
<Files ~ “^.ht”> Order allow,deny Deny from all Satisfy all </Files>
DefaultType None HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn
Include mods-enabled/.load Include mods-enabled/.conf
Include ports.conf
LogFormat “%v:%p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"” vhost_combined LogFormat “%h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"” combined LogFormat “%h %l %u %t "%r" %>s %O” common LogFormat “%{Referer}i -> %U” referer LogFormat “%{User-agent}i” agent LogFormat “%b” bytes
Include conf.d/
#Include sites-enabled/
why correct config to me, because apache2 used very more cpu
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Create a new question with a proper Syntax please. This post you just created isn’t readable and you need to give some better detailed information and tell us exactly what you want to know.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.