Apache httpd imi ingreuneaza VPS-ul


Florin2003


httpd (pid 10720 10719 10718 10717 10716 10715 10714 10713 10712 10711 10710 10709 10708 10707 10706 10705 10704 10703 10702 10701 10700 10699 10698 10697 10696 10695 10694 10693 10692 10691 10690 10689 10688 10687 10686 10685 10684 10675 10674 10673 10670 10669 10668 10667 10666 10665 10664 10663 10662 10661 10660 10659 10658 10657 10655 4868 4867 4866 4865 4864 4863 4862 4861 4860 4859 4858 4857 4856 4855 4853 4120 4119 4117 3690 3403 3066 2999 2337 2336 2335 2334 2333 2332 2331 2330 2328 2327 2325 2324 2303 2302 2300 2299 2298 2297 2296 2295 2294 2293 2292 2242 2239) is running...

De la ce ar putea sa fie ? El imi arata 100 de procese, dar cum pot sa vad individual ce face. Sau etc.

Sistemul este un Cent Os si ca virtualizare am Virtualmin si Webmin
bogdanan
CITAT (Florin2003 @ 21st September 2009, 16:57) *
Sistemul este un Cent Os si ca virtualizare am Virtualmin si Webmin


ai spus tot

RTFM
 
DarkAngelBv
httpd nu trebuie sa ruleze doar cate unul pentru un site. Ruleaza de obicei 8 procese si daca mai este nevoie se mai creeaza automat si altele.


vezi in httpd.conf ce setari ai, in special partea asta:

CODSURSA
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>
SE7EN
CITAT (DarkAngelBv @ 21st September 2009, 20:39) *
httpd nu trebuie sa ruleze doar cate unul pentru un site. Ruleaza de obicei 8 procese si daca mai este nevoie se mai creeaza automat si altele.


vezi in httpd.conf ce setari ai, in special partea asta:

CODSURSA
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>


Apache e o mizerie si orice setari i-ai face, iti face praf serverul in anumite conditii. Nu mai vorbesc de un vps. Este folosit foarte mult din alte cauze decat performanta, asta-i clar. Daca mai adaugi si webmin si alte mizerii din asta pe un vps atunci e clara treaba. Sigur ca pe un server cu nspe mii de gb de ram merge bine dar asta-i alta poveste.


Florin2003 e clar ca daca bagi pe un vps apache cu tot felul de inutilitati din astea gen webmin o sa-ti mearga greu. Mai ales un vps, unde ai memorie putina, se administreaza din linia de comanda. Din punctul meu de vedere oricum orice administrator ar trebui sa stie cum sa administreze un server din linia de comanda. Iti recmand nginx in locul apache, e putin mai complicat de configurat la inceput insa da clasa apache dpdv al perfomantei.
DarkAngelBv
nginx este mai mult pentru servire de continut static, mai bun la continut dinamic este lighttpd configurat cu php in mod fastcgi.

Apache este raspandit pentru ca majoritatea panourilor de control sunt facute pentru a fi folosite cu apache.
Unele suporta si lighttpd.


Personal folosesc apache + ehcp mai mult din comoditate decat din necesitate.
SE7EN
CITAT (DarkAngelBv @ 22nd September 2009, 01:24) *
nginx este mai mult pentru servire de continut static, mai bun la continut dinamic este lighttpd configurat cu php in mod fastcgi.

Apache este raspandit pentru ca majoritatea panourilor de control sunt facute pentru a fi folosite cu apache.
Unele suporta si lighttpd.


Personal folosesc apache + ehcp mai mult din comoditate decat din necesitate.


Ai fi suprins cat de bine serveste continut dinamic. Am lucrat destul cu nginx (de fapt chiar acum lucrez la ceva scripturi de auomatizare), stiu ca exista o anumita retinere ptr ca este in continuare perceput mai mult ca un proxy ptr static files insa nu e deloc asa. Site-urile sunt foarte rapide, fie ca e vorba de cms-uri gen joomla, Drupal, Wordpress (btw nginx e absolut excelent ptr wordpress) fie ca e vorba de continut static.
E peste lighttpd din orice punct de vedere, nu e greu de facut un benchmark. In plus nginx consuma mult mai putin cpu chiar si decat lighttpd, nu mai vb de apache.
Wordpress.com il foloseste ca si proxy ptr static files dar e fara discutie un foarte performant web server. Toate optiunile pe care le vezi la lighttpd sau apache sunt prezente in nginx, desigur de multe ori trebuie sa sapi putin dar merita.
Florin2003
CITAT (DarkAngelBv @ 21st September 2009, 19:39) *
httpd nu trebuie sa ruleze doar cate unul pentru un site. Ruleaza de obicei 8 procese si daca mai este nevoie se mai creeaza automat si altele.


vezi in httpd.conf ce setari ai, in special partea asta:

CODSURSA
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>



La starter servers am mai marit precum si Min si max spare Threads pentru ca imi arata in error_log
CITAT
[Wed Sep 23 10:18:43 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 30 idle, and 30 total children


Ideea cu altele este de luat in considerare, dar nu prea stiu cum voi putea mai itnai sa fac testele, apoi mutarea bazelor de date, etc. Abia l-am invatat pe asta. Pana o sa ma apuc sa ma joc pe altele si sa le invat, vreau sa il optimizez pe acesta. Nu stu de ce sau de la ce program, dar o data la vreo 2 zile ajunge procesorul sa sta blocat la 100 % pe VPS (1000 mhz, si sa imi blocheze tot) Am atasat poza.


CITAT
#
# Timeout: The number of seconds before receives and sends time out.
#
TimeOut 65

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive on

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 60

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 15
MinSpareServers 40
MaxSpareServers 150
ServerLimit 250
MaxClients 250
MaxRequestsPerChild 100
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>









CITAT
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4157 for (*)
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4158 for worker proxy:reverse
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4158 for (*)
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4159 for worker proxy:reverse
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:24 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4159 for (*)
[Wed Sep 23 10:18:36 2009] [notice] SIGHUP received. Attempting to restart
[Wed Sep 23 10:18:36 2009] [info] mod_fcgid: Process manager 4113 stopped
[Wed Sep 23 10:18:37 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 23 10:18:37 2009] [notice] Digest: done
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: decopoint.ro
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: baditaflorin.com
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: mobila-online.biz
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: corpuri-de-iluminat.com
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: electrocasnice-online.com
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: feronerie-mobilier.com
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: mese-si-scaune.ro
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: usi-glisante-mobila.ro
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: dynamicspace.ro
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: chiuvete.biz
[Wed Sep 23 10:18:37 2009] [debug] util_ldap.c(1949): LDAP merging Shared Cache conf: shm=0x2b8697358af8 rmm=0x2b8697358b50 for VHOST: roxymob.xservers.ro
[Wed Sep 23 10:18:37 2009] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Wed Sep 23 10:18:37 2009] [info] LDAP: SSL support available
[Wed Sep 23 10:18:37 2009] [info] mod_fcgid: Process manager 4164 started
[Wed Sep 23 10:18:37 2009] [notice] mod_python: Creating 4 session mutexes based on 250 max processes and 0 max threads.
[Wed Sep 23 10:18:37 2009] [info] Init: Seeding PRNG with 256 bytes of entropy
[Wed Sep 23 10:18:37 2009] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Wed Sep 23 10:18:37 2009] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(374): shmcb_init allocated 512000 bytes of shared memory
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(554): entered shmcb_init_memory()
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(576): for 512000 bytes, recommending 4265 indexes
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(619): shmcb_init_memory choices follow
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(621): division_mask = 0x1F
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(623): division_offset = 96
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(625): division_size = 15997
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(627): queue_size = 2136
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(629): index_num = 133
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(631): index_offset = 8
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(633): index_size = 16
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(635): cache_data_offset = 8
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(637): cache_data_size = 13853
[Wed Sep 23 10:18:37 2009] [debug] ssl_scache_shmcb.c(650): leaving shmcb_init_memory()
[Wed Sep 23 10:18:37 2009] [info] Shared memory session cache initialised
[Wed Sep 23 10:18:37 2009] [info] Init: Initializing (virtual) servers for SSL
[Wed Sep 23 10:18:37 2009] [info] Server: Apache/2.2.3, Interface: mod_ssl/2.2.3, Library: OpenSSL/0.9.8e-fips-rhel5
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4165 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4165 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4166 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4166 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4167 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4167 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4168 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4168 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4169 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4169 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4170 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4170 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4171 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4171 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4172 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4172 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4173 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4173 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4174 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4174 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4175 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4175 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4176 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4176 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4177 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4177 for (*)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4178 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4178 for (*)
[Wed Sep 23 10:18:37 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Sep 23 10:18:37 2009] [info] Server built: Jun 18 2009 17:10:28
[Wed Sep 23 10:18:37 2009] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4179 for worker proxy:reverse
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:37 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4179 for (*)
[Wed Sep 23 10:18:38 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4180 for worker proxy:reverse
[Wed Sep 23 10:18:38 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:38 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4180 for (*)
[Wed Sep 23 10:18:39 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4181 for worker proxy:reverse
[Wed Sep 23 10:18:39 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:39 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4181 for (*)
[Wed Sep 23 10:18:39 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4182 for worker proxy:reverse
[Wed Sep 23 10:18:39 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:39 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4182 for (*)
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4183 for worker proxy:reverse
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4183 for (*)
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4184 for worker proxy:reverse
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4184 for (*)
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4185 for worker proxy:reverse
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:40 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4185 for (*)
[Wed Sep 23 10:18:41 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4186 for worker proxy:reverse
[Wed Sep 23 10:18:41 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:41 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4186 for (*)
[Wed Sep 23 10:18:41 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 22 idle, and 22 total children
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4187 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4187 for (*)
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4188 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4188 for (*)
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4189 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4189 for (*)
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4190 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4190 for (*)
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4191 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4191 for (*)
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4192 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4192 for (*)
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4193 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4193 for (*)
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4194 for worker proxy:reverse
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:42 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4194 for (*)
[Wed Sep 23 10:18:43 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 30 idle, and 30 total children
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4195 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4195 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4196 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4196 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4197 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4197 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4198 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4198 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4199 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4199 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4200 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4200 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4201 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4201 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4202 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4202 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4203 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4203 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4204 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4204 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4205 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4205 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4206 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4206 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4207 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4207 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4208 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4208 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4209 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4209 for (*)
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 4210 for worker proxy:reverse
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized
[Wed Sep 23 10:18:43 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 4210 for (*)


Daca vreti vreun log anume, sau aveti vreo sugestie, o astept incantat smile.gif

Cu stima,
Badita Florin
 
mvinturis
Serverul tau Apache ruleaza in interiorul unei masini virtuale?

Asta nu imi pare o solutie buna, pentru ca (VPS-ul) consuma mult procesor. Cum procesorul tau este destul de slab (1000 MHz), ajunge repede la 100%. Daca ai si putina memorie pe serverul ala si intra pe swap, nu mai faci nimic pe server.

Executa comanda "top" si vezi cat este de incarcat serverul, ce procese ocupa procesor/memorie, si cat.

Pe un sistem CentOS, Apache are compilat doar modulul prefork.c, nu si worker.c; asa ca trebuie sa configurezi doar prima sectiune:
<IfModule prefork.c>
StartServers 50
MinSpareServers 40
MaxSpareServers 150
ServerLimit 250
MaxClients 250
MaxRequestsPerChild 1024
</IfModule>

Poti sa rulezi comanda "httpd -l" ca sa vezi cum e compilat Apache; ar trebui sa arate cam asa:
# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c



CITAT (Florin2003 @ 23rd September 2009, 13:17) *
La starter servers am mai marit precum si Min si max spare Threads pentru ca imi arata in error_log

Ideea cu altele este de luat in considerare, dar nu prea stiu cum voi putea mai itnai sa fac testele, apoi mutarea bazelor de date, etc. Abia l-am invatat pe asta. Pana o sa ma apuc sa ma joc pe altele si sa le invat, vreau sa il optimizez pe acesta. Nu stu de ce sau de la ce program, dar o data la vreo 2 zile ajunge procesorul sa sta blocat la 100 % pe VPS (1000 mhz, si sa imi blocheze tot) Am atasat poza.













Daca vreti vreun log anume, sau aveti vreo sugestie, o astept incantat smile.gif

Cu stima,
Badita Florin

Aceasta este o versiune simplificatã a paginii originale. Pentru a vizita versiunea originala click aici.