![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 11.06.2016 Ostrzeżenie: (0%) ![]() ![]() |
witam
Posiadam serwer VPS w az.pl Proszę o sprawdzenie configu Apache czy jest ok, od jakiegoś czasu jak na stronie mam około 100 urzytkowników online strona wolno chodzi a nawet nieraz nie pojawia sie. Proszę o pomoc i zweryfikowanie danych # Global configuration LockFile ${APACHE_LOCK_DIR}/accept.lock PidFile ${APACHE_PID_FILE} Timeout 60 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 5 # prefork MPM <IfModule mpm_prefork_module> StartServers 1 MinSpareServers 1 MaxSpareServers 5 MaxClients 256 MaxRequestsPerChild 0 </IfModule> # worker MPM <IfModule mpm_worker_module> StartServers 1 MinSpareThreads 1 MaxSpareThreads 4 ThreadLimit 64 ThreadsPerChild 25 MaxClients 10 MaxRequestsPerChild 0 </IfModule> # event MPM <IfModule mpm_event_module> StartServers 1 MinSpareThreads 1 MaxSpareThreads 4 ThreadLimit 64 ThreadsPerChild 25 MaxClients 10 MaxRequestsPerChild 0 </IfModule> # These need to be set in /etc/apache2/envvars User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} AccessFileName .htaccess # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy all </Files> DefaultType None HostnameLookups Off ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn # Include module configuration: Include mods-enabled/*.load Include mods-enabled/*.conf # Include list of ports to listen on and which to use for name based vhosts 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 # Include of directories ignores editors' and dpkg's backup files, # see the comments above for details. # Include generic snippets of statements Include conf.d/ # Include the virtual host configurations: Include sites-enabled/ GracefulShutDownTimeout 3 AddOutputFilter INCLUDES .shtml AddType text/html .shtml AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 531 Pomógł: 55 Dołączył: 3.01.2016 Skąd: Łowicz Ostrzeżenie: (0%) ![]() ![]() |
to standardowe ustawienia dla MPM workera
ServerLimit 10 StartServers 2 MaxRequestWorkers 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 StartServers tu ustawiasz sobie ilość procesów potomnych a ThreadsPerChild oznacza ilość wątków na proces co daje Ci 50 jednoczesnych połączeń / klientów u Ciebie jest to 25 -------------------- Szukam zleceń Symfony, Laravel, Back-End, Front-End, PHP, MySQL ...
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 15.06.2025 - 20:13 |