Http/Apache server configuration
Antonis Sidiropoulos
asidirop at csd.auth.gr
Sun Jul 27 01:24:07 EEST 2003
To ti mixanima xreiazesai eksartatai KYRIWS apo tis web efarmoges pou
tha trekseis kai ton forto pou anamenetai na exei o server
(episkepsimotita).
genikws o apache o idios (osa modules kai na tou exeis epanw) den tha
katanalosei kai poly mnimi.
To poly-poly meiwneis to plithos twn "httpd" processes.
Epishs kanei diafora an xrhsimopoieis cgi h' server modules px:
h idia efarmogi perl h' php an treksei san cgi energopoieitai poly pio arga
ap'oti an trexei katw apo modperl h' php linked me ton apache.
An eksereseis ton xrono energopoihshs (fork,read ktl.) o xronos
ekteleshs ths efarmoghs
kai i mnimi pou xreiazetai eksartatai apoklistika apo tin idia tin efarmogi.
Genika milwntas omws, an exeis efarmoges se java, na ksereis oti i java
kai argi sxetika einai kai poly mnimi pernei.
Isws an ton theleis ton server kyriws gia java efarmoges na einai
kalytero na xrhsimopoihseis sun para pc (me sxetiki epifilaksi bebaia to
lew auto, dioti opws kserete ola einai sxetika).
A.
Yannis Kotsinos wrote:
>On Wednesday 16 July 2003 11:26, Sidirourgos Lefteris wrote:
>
>
>>On Wed, 16 Jul 2003, Giannis Stoilis wrote:
>>
>>
>>>Sidirourgos Lefteris wrote:
>>>
>>>
>>>>mhpws 3erete kanena link sto web me plhrofories sxetika me to ti 8elei
>>>>enas web server? Dhladh, an ypo8esw oti 8elw ena mhxanhma gia
>>>>http-servlets-database, exei ginei kapoia meleth poy leei oti
>>>>xreiazesai toso mnhmh kai toso ypologisthkh dynamh gia tosa
>>>>connection/day klp... Den moy kanei apla na moy peite: "megale bale
>>>>poly mnhmh giati etsi exw akousei", 8elw kapoia meleth tekmiriwmenh poy
>>>>na leei oti: "epeidh o apache shkwnei threads 8elei 10k gia ka8e thread
>>>>kai ...". Mphkate sto nohma ;)
>>>>
>>>>
>
><snip>
>
>
>
>>Profanws, den exw kapoio mhxanhma ayth thn stigmh poy trexei web
>>services gia na kanw "ps xua". 8elw na agorasw ena, kai 8elw technical
>>reports poy basizontai se ka8ara 8emata ylopoihseis twn en' logo
>>texnologiwn kai na apantoyn sta erwthmata moy me tropo texniko
>>kai episthmoniko. Sigoura yparxoun kai white papers apo benchmarks, apla
>>rwthsa gia na dw mhpws 3erei kaneis kati kalo.
>>
>>lefteris
>>
>>
>
>An kai ayto poy rwtas einai arketa asafes apo th fysh toy... Den nomizw pws 8a
>breis kati poy 8a einai _akribws_ oti zhtas. Yparxoyn men commercial stress
>programmata poy mporoyn na ypologisoyn to memory kai cpu load, alla pali ayta
>exoyn nohma mono se yparxonta systhmata kai efarmoges ka8ws nomizw pws
>katalabaineis oti otan milame gia java (read java's memory allocation) to pws
>akribws 8a ginei to implementation toy otidhpote[0] den einai amelhteo wste
>na 8ewreitai kai dedomeno se ena whitepaper. Kai an 8a breis kati tetoio
>mallon 8a anaferetai se kapoia barebones implementations ws apla mia endei3h
>kai proseggish.
>
>Xondrika, se server me kammia 30aria kai bale sites (ena virtual host kai ena
>application server gia to ka8e ena) me apache kai tomcat to cpu load einai
>sxedon amelhteo kai proerxetai kyriws apo th bash. Alla, sto 8ema ths mnhmhs,
>opws 8a to perimenes, oi apaithseis einai megales. To mono poy mporei na se
>glytwsei - h na se kapsei an den to kaneis - einai na xrhsimopoihseis tis
>object-oriented texnikes an den 8es na deis to memory usage na anebainei
>geometrika ka8ws anebainoyn ta hits h oi virtual hosts soy. Koinws, na
>xrhsimopoieis oso to dynaton perissotera (koina) beans kai servlets meta3y
>twn virtual application server soy (allo 30 diaforetika objects kai allo 30
>copies toy idioy -> shared). Kai ayta 8a prepei na einai oso to dynaton
>beltistopoihmena. Me ayta ws dedomeno, se diafores koybentes gia to idio 8ema
>(nai empeirika), milame gia >= 512 mb mnhmhs (3ekinwntas). Panta endeiktika
>pare kai to output apo ton legameno server:
>
>
>CPU states: 2.7% user, 22.6% system, 0.0% nice, 74.6% idle
>Mem: 514092K av, 509636K used, 4456K free, 0K shrd, 7364K buff
>Swap: 1934308K av, 508944K used, 1425364K free 247988K cached
>
>PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
> 16 0 8864 2836 1988 S 0 2.0 0.5 61:20 interserver
> 12 0 26728 2888 2184 S 0 0.4 0.5 129:14 interserver
> 10 0 22204 16M 10480 S 0 0.1 3.3 1:17 java
> 9 0 306M 163M 128M S 64 0.1 32.5 1:08 java
>
>Pantws, opws eipe kai o giannis o stoilis, an tyxon breis kati endiaferon kane
>moy ena cc.
>
>[0]: classic paradeigma: dokimase na grapseis ena servlet xrhsimopoiwntas mono
>strings kai to idio xrhsimopoiwntas mono stringbuffer
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/linux-greek-users/attachments/20030727/5b2abf8c/attachment.htm>
More information about the Linux-greek-users
mailing list