Http/Apache server configuration
Yannis Kotsinos
zookie at med.auth.gr
Wed Jul 16 13:05:04 EEST 2003
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
--
"An idea is not responsible for the people who believe in it."
Running FreeBSD 4.8-STABLE | mailto:zookie at med.auth.gr
12:26μμ up 16:28, 2 users, load averages: 0,08 0,06 0,15
np: nothing
More information about the Linux-greek-users
mailing list