#apache
24 December 2007
Total 5 pages. You are browsing page 1/5.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Mon Dec 24 17:19:17 2007
--- Log closed Mon Dec 24 17:19:53 2007
--- Log opened Mon Dec 24 17:20:58 2007
--- Log closed Mon Dec 24 17:21:24 2007
--- Log opened Mon Dec 24 17:21:45 2007
17:23 <****> What are my options if I'm running Apache bound to 127.0.0.1 as a test platform and I want to reduce it's obscene memory footprint without having to switch to LigHTTPd or some other lightweight FastCGI-capable competitor?
17:23 <****> deitarion: reduce the number of child processes, and loaded modules
17:24 <****> php-adam: ask in #mysql
17:24 <****> thumbs: I think I can figure out the part with loaded modules. How do I reduce the number of child processes when using mpm_worker? (I've got 5 processes consuming 50MB. Distro default.)
17:25 <****> fajita: mpm
17:25 <****> mpm is http://httpd.apache.org/docs/2.2/mpm.html or Multi-Processing Modules
17:25 <****> deitarion: you can find more info there
17:25 <****> Thanks.
17:27 <****> heyas anyone got any ideas today concerning this : http://apache.pastebin.ca/827419 ? ^^
17:35 <****>
17:35 <****> merry christmas to all of you btw ^^
17:36 <****> Ok, that knocked it down from 50MB to 38MB resident but there are still four processes with 30MB of that split equally between two of them. Is that a minimum limit for mpm_worker? According to the docs, the config I set should have resulted in only one MPM-caused process.
17:36 <****> (I'll prune out the modules after I get the MPM tuned for low-workload low-overhead work)
17:37 <****> deitarion: it's SHARED memory.
17:38 <****> thumbs: Not according to top. It's 38MB resident and then 8MB shared (or less, depending on the process).
17:38 <****> top does not report the usage the way you think it does
17:39 <****> I'd still like to see how close I can get to LigHTTPd (2MB resident in one process) without causing problems.
17:40 <****> you can't make apache use 2 MB of RSS memory.
17:40 <****> so use lighHTTPD
17:40 <****> I'm curious how close I _can_ get.
17:42 <****> 30 MB, maybe?
17:42 <****> Sounds OK.
17:43 <****> My main goal is to see how small I can get it before it becomes more hassle and less fun than setting up a second LigHTTPd instance. (The first one is chrooted and used along with vsftpd to provide alternatives to Samba)
17:44 <****> I mean, what with 4GB of RAM, 4GB of swap, and my GUI apps far-exceeding even Apache, it's more a matter of making Apache no longer the most bloated non-GUI app. (difficult when I just turned off the second- and third-place offenders. (MySQL and Tor))
17:45 * pickcoder mumbles about servers and desktops being mixed
17:46 <****> pickcoder: It's not a server. I use Apache as a test platform for development work which isn't ready for the server and I use LigHTTPd and vsftpd because Samba can be cantankerous at times.
17:47 <****> ...not to mention, using LigHTTPd and vsftpd together let's me use chroot() without a maze of partitions and mount --bind. A single Samba instance couldn't cover both.
17:49 <****> deitarion: where are getting your memory usage from
17:49 <****> pickcoder: Summing up the resident size htop or top report for the various Apache processes.
17:50 <****> that's not accurate
17:50 <****> use pmap
17:50 <****> look a specific apache process and see the writeable/private size
17:50 <****> the rest is shared
17:50 <****>
17:52 <****> if you total RSS then you're compounding the size of pre-loaded libs
17:53 <****> pickcoder: Thanks... but if that were all, it'd be using over 200MB.
17:54 <****> One of the four processes reports "writeable/private: 236868K"
17:54 <****> find out why
17:54 <****> all of my machines avg 4MB per process
17:56 <****> look at pmap
17:56 <****> there has to be more stuff loaded in that one process
17:56 <****> Probably the large bunch of 8MB [ anon ] mappings at the beginning of the list.
17:56 <****> 26 of them and a 11020K one.
17:58 <****> deitarion: not using a scripting language by chance are you?
17:59 <****> pickcoder: I'm not sure. It's still mostly on defaults so there might be one in there.
17:59 <****> I usually use FastCGI but I don't remember running any scripts since last restart.
18:01 <****> deitarion: are you using prefork MPM?
18:01 <****> pickcoder: worker
18:03 <****> I'm not that knowleable of memory management with the threaded model, so I dunno if your process memory size is due to that or not
18:03 <****> Aha. Defaults include mod_php5
18:05 <****> Hmm. Smaller but still over 200MB. I guess I'll keep fiddling with it.
18:05 <****> I use MPM with maxrequests set low enough to keep new processes spawned
18:06 <****> Anyway, thanks for pointing me at pmap. I wasn't aware of it's existence.
18:07 <****> there's a blog entry on that somewhere
18:07 <****> http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html
18:07 <****> of course, you have to be aware of the modules that are loaded
18:08 <****> since most are Apache specific, you have to count the memory usage once for them
18:38 <****> quick question, I recently updated apache, and I think it clobbered some conf file somewhere (no idea where) but now my server only is listening for https /ssl
18:39 <****> any idea what could cause this?
18:39 <****> apache's make install does not modify the existing httpd.conf
18:39 <****> so i suppose you should ask your distro
18:40 <****> well, I looked at httpd.conf and dunno what could be the prob
18:40 <****> APACHE2_OPTS="-D DEAULT_VHOST -D INFO -D LANGUAGE -D MANUAL -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D FASTCGI -D USERDIR"
18:40 <****> you have "Listen 80" ?
18:40 <****> hrm where would that be located?
18:41 <****> just in httpd.conf somewhere, cos I don't remember seeing that....I mean https works fine, I think I see the issue
18:43 <****> look at the DEFAULT_VHOST :p
18:43 <****> someone made a typo in the update
18:43 <****> and I accidentally clobbered it
18:43 <****> well not accidentally really cos nothign custom was set up in it but,
18:44 <****> it'd been nice if it at least logged an error complaining about oddball ops that did nothign =s
18:44 <****> j gentoo
19:30 <****> Hi, how do I create a certificate for secure HTTPS communication?
19:31 <****> ssl howto
19:31 <****> ssl howto is http://httpd.apache.org/docs/2.2/ssl/
19:32 <****> though that's not really a "generate your cert" howto
19:32 <****> How do I generate the certificate?
19:34 <****> self signed cert
19:34 <****> anyone?
19:35 <****> all in one:
19:35 <****> openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout www.example.com.pem -out www.example.com.pem
19:37 <****> thats it?
19:40 <****> Now that i have the certificate file, what do I add to my httpd.conf file so it will use the certificate?
19:41 <****> I'm having issues with my virtualhosts overlapping
19:41 <****> I have NameVirtualHost *:80
19:41 <****> directives
19:41 <****> Doug52392: once you have the key and cert, read the ssl page fajita linked
19:42 <****> collink: you need a default virtualhost *first* with servername and docroot matching that of your servers config
19:43 <****> thanks
19:45 <****> hello
19:46 <****> I am setting up UserDir for the first time, I have UserDir /home/www/*/dir. Do I have root, the user, or something else make the directory?
19:46 <****> doesnt matter as long as `apache_user' has r(and x) on parent dirs
19:47 <****> err x(and r)
19:52 <****> barefoot: thanks
20:11 <****> barefoot does the user need added to the apache group?
Total 5 pages. You are browsing page 1/5.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
