[users@httpd] Dynamic load balancing and Rules based processing.
Hi All, What are the approaches need to be taken for dynamic load balancing.Like suppose I have 3 instances of Apache is running and due to some issue one of the instance goes down.I would expect the traffic should be balanced properly by the existing 2 instances. For load balancing apart from mod_proxy_balancer any other Apache modules can be worth looking into? Any functionality in Apache based on Rules ? Comments and suggestions would be very much appreciated. Thanks in advance, -A
Re: [users@httpd] Need information about using Apache....
Can I use Apache instead of Drools? Like as a rules execution engine that is able to accept the request, evaluate a set of ops defined rules and execute various responses. Mod_proxy and mod_proxybalancer does the load balancing.Is there anything can be done where each instance can hve own functionality like one instance may be tracking the IP, another instance may be tracking by GUID or Screenname, and yet another may be tracking by some Signature ? Should I follow the worker model where each process launches threads and threads have the logic ? Many thanks in advance. -A On Thu, Mar 24, 2011 at 11:38 PM, Simone Caruso i...@simonecaruso.comwrote: We would like to use Apache as a routing layer that accepts both structured documents (XML docs) also some other predefined data blocks in addition to key/value paris via http and then routes those transactions based on a key available in the request such that the required keys and sub keys are all routed to the same rules instance - this will require the original request to be broadcast to multiple instances of the rules engine ( for example, one instance may be tracking the IP, another instance may be tracking by GUID or Screenname, and yet another may be tracking by some Signature.) U can modify mod_proxy to act like a router -- Simone Caruso IT Consultant +39 349 65 90 805 p.iva: 03045250838 - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Need information about using Apache....
Dear All, We are planning for an enhancement of our servers.We are looking out if we write Apache module and use Apache to support the below requirements. We would like to use Apache as a routing layer that accepts both structured documents (XML docs) also some other predefined data blocks in addition to key/value paris via http and then routes those transactions based on a key available in the request such that the required keys and sub keys are all routed to the same rules instance - this will require the original request to be broadcast to multiple instances of the rules engine ( for example, one instance may be tracking the IP, another instance may be tracking by GUID or Screenname, and yet another may be tracking by some Signature.) A rules execution engine that is able to accept the request, evaluate a set of ops defined rules and execute various responses. There are preference of using DROOLS fusion. As and alert broadcast engine that has the ability to distribute an events to multiple end sources. As a storage layer that allows for data persistence for long term tracking of keys and values. Inputs would be very much appreciated. Many thanks in advance -A
Re: [us...@httpd] high load apache mpm configuration
Hi Alin, User worker model.It will give you the privilege of both threads and process.Tweak around the params MaxChildProcess,MaxThreads and MinThreadsand may be MaxMemFree for memory usage. Thanks, -A On Tue, Mar 30, 2010 at 1:32 AM, alin vasile alinachegal...@yahoo.comwrote: Hi All, Did anyone configured an apache 2.2 for a high traffic server? I am interested in how many connections can handle an apache installation using worker or prefork (and wich one is more suitable) for a minimum response time, ignoring file i/o (this server will server reverse proxy requests). I intend to configure it for around 400 requests per second and i'm not sure if prefork will do. Thanks.
Re: [us...@httpd] using mod_custom_header module.
We are using Netscaler VIP.So when a request comes instead of Client IP it puts its own IP and forwarded the request to the backend. We do have the option to use X-Forarded-For but again it appends the different hops to it.We want the IP adress from where the request has come to Netscaler.So we would like to get that particular ip address.So wondering if we can use mod_custom_header module in this case? Thanks in advance. -A. On Thu, Feb 11, 2010 at 3:14 AM, Devraj Mukherjee dev...@gmail.com wrote: What do you mean by printing Client IP? On Thu, Feb 11, 2010 at 4:13 AM, Arnab Ganguly agangul...@gmail.com wrote: Hi All, Please guide me in printing the Client ip address using mod_custom_header module ?Any standard LogFromat configuration do we have for this ? Also would like to know about the directive X-LB-CLIENT-IP and what way it is different from X-Forwarded-For? Thanks in advance. -A -- Follow me on Twitter, http://twitter.com/mdevraj The secret impresses no-one, the trick you use it for is everything - Alfred Borden (The Prestiege) - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] getting client ip address information from http request.
Hi All, How do I retrieve client ip information from the http request in Apache module ? Like the loadbalancer is putting it own ip in the place of client ip address. We tried %{X-Forwarded-For} but this takes care of access log not the module specific log. So from the request is there any function call can be done to retrieve the client information. Thanks in advance. -A
Re: [us...@httpd] Apache vs LiteSpeed
Basic query, is LiteSpeed an open source ? Can we write our own plugins equivalent to Apache modules which will talk to LiteSpeed ? Thanks in advance. -A On Fri, Jan 15, 2010 at 10:56 AM, Scott Gifford sgiff...@suspectclass.comwrote: On Wed, Jan 13, 2010 at 2:08 AM, Jarrod Slick jar...@e-sensibility.comwrote: On Jan 13, 2010, at 12:47 AM, Scott Gifford wrote: On Wed, Jan 13, 2010 at 1:31 AM, Jarrod Slick jar...@e-sensibility.comwrote: Apache Users, As some of you may or may not know a fairly prominent commercial webserver, LiteSpeed, claims to outperform even a well configured Apache 2.2.x installation by orders of magnitude. They have some internal benchmarks that appear to back this up, but, being a natural skeptic, I wanted to test it out for myself. So I've agreed to pit Apache and LiteSpeed (as well as a few other webservers) against one another in benchmarking tests on a 2x Xeon 5520 machine. I, and hopefully others, will be configuring Apache. LiteSpeed will be configuring their product. What is the workload you are benchmarking? Static pages, PHP/mod_perl code, CGI, etc.? Is the client a benchmark tool or a browser, and where on the network is it relative to the server? How are you measuring performance (page load times, requests/second, etc.)? -Scott. Scott, I'm open to suggestions on all fronts, but as it stands we were going to do the following with the ab tool: -small static pages test -large static pages test -hello world php test And we were going to also benchmark a wordpress/joomla site in a more real-world load simulation test using the tool siege. For smaller static content that will be fetched multiple times without changing, consider mod_mem_cache, which will avoid most disk I/O for that content. For larger content or content that will just be fetched once or change frequently, consider enabling sendfile or mmap for sending it. For PHP, use a PHP accelerator, such as eAccelerator, APC, or Zend. For larger applications, do your best to configure the different components appropriately, for example with Drupal configure the static Javascript and CSS files to be cached with mod_mem_cache, use the PHP accelerator for the code, and if you have any large files make sure you have sendfile or mmap available. If the benchmark client will do any caching, make sure expiration is configured to allow a long cache time. Disable .htaccess unless you need it, so Apache doesn't have to look for it. Do a dry run while running top and iostat to see where your bottleneck is. Try running Apache under strace to see what it's doing at each request, and get it doing as little as possible. If it is serving a file from the memory cache or with a static mmap, strace should show it making practically no system calls. If you google around for Apache benchmark tuning I'm sure you'll find some other ideas and examples. Good luck! Scott.
[us...@httpd] Help on KeepAlive
Hi All, One help is regarding KeepAlive directive. I am using Apache as a pipe.It gets client request and just forwards the same request to another module. We use Apache 2.2 Worker Model in Linux.These client request traffic is high and data is dynamic (content length is dynamic). We have made KeepAlive Off as per Apache, it is more useful for static contents, it is going to reuse the TCP/IP connection and the connections are going to be open longer time These inputs are there in the Apache doc of 2.2. The system is running perfectly for a long time. I would like to know in real if we keep KeepAlive On what would be the behavior is going to be observed when the Client request is very much dynamic. Note here Apache is not used for serving pages. Thanks in advance. -A
[us...@httpd] Info request on cookies
Hi All, How do I print cookie information in apache access log. I have used CookieLog directive as I don't have mod_cookies enabled but I have mod_log_confighttp://httpd.apache.org/docs/2.0/mod/mod_log_config.html enabled.Is this the correct way I am doing ? Also the cookies are coming in some other file. I would like to have the cookies for each transaction and in the same file.Any help would be very much appreciated. Thanks in advance. -A
Re: [us...@httpd] Re: guidance on how to track down crazy apache processes
Try using the worker model. You can limit the process with multiple threads. Thanks Arnab On Wed, Aug 12, 2009 at 2:10 PM, Nicholas Sherlock n.sherl...@gmail.comwrote: Timothy Martin wrote: Anyway, despite having the prefork mpm set with a limit of 6, my watchdog process (monit) will report process count shooting up over 50. I can't figure out how apache is letting itself get so many processes spinning out of control. Monit then restarts the server and everything is fine again until the next surge of page requests. my Prefork MPM is setup as such: StartServers3 MinSpareServers 3 MaxSpareServers 6 MaxClients 80 MaxRequestsPerChild 2500 MaxSpareServers is the maximum number of *spare* servers, that is, servers that are not serving clients but are instead sitting there doing nothing. MaxClients is the parameter which controls the maximum number of (busy or idle) Apache processes. Cheers, Nicholas Sherlock - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Number of connections
Use mod_status and then from the browser http://servername/server-statuswill show you the status. Thanks Arnab On Wed, Aug 5, 2009 at 5:00 PM, ricardo13 ricardoogra...@gmail.com wrote: hi, I would like to monitor the number of connections actives in web server at that moment. How do I get ? Does mod_status provide that informations ?? Thank you Ricardo -- View this message in context: http://www.nabble.com/Number-of-connections-tp24825178p24825178.html Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Apache as a Gateway
Hi All, How is LVS http://kb.linuxvirtualserver.org/wiki/Load_balancer compared to Pound ?Which one would be better to use? Thanks Arnab On Fri, Jun 12, 2009 at 7:43 PM, Julien Gerhards jgerha...@r-advertising.com wrote: Hi ! CentOS is 100% compatible with RHL !
Re: [us...@httpd] Apache as a Gateway
We have the foundry switch which is being replaced by Netscaler now.So can we use Pound or LSV in this case ? Mainly the Netscaler switch is going to handle the http request which later by passed to different backend server (linux boxes). Thanks in advance. Arnab On Mon, Jun 22, 2009 at 4:09 PM, Paul Miles paul.mi...@paymo.com wrote: LVS and pound act in different ways, and on different levels of the TCP stack. It all depends what you're trying to achieve as to which is most suitable for you. In our environment we use a failed over pair of hardware load balancers which balance traffic across a pair of squid caching servers which then load balance to a pair of pound servers. (see attachment) We use pound to send certain urls and virtual hosts off to a series of backend java applications. This is probably off topic now though … Regards, Paul *---* *Paul Miles *Systems and Infrastructure *Fax*: + 44 (0)8701 236 087 *Web*: http://www.paymo.com [image: cid:image001.png@01C9AC66.62CC07F0] *Paymo *107 Fleet Street London, EC4A 2AB UK *From:* Arnab Ganguly [mailto:agangul...@gmail.com] *Sent:* 22 June 2009 11:19 *To:* users@httpd.apache.org *Subject:* Re: [us...@httpd] Apache as a Gateway Hi All, How is LVS http://kb.linuxvirtualserver.org/wiki/Load_balancer compared to Pound ?Which one would be better to use? Thanks Arnab On Fri, Jun 12, 2009 at 7:43 PM, Julien Gerhards jgerha...@r-advertising.com wrote: Hi ! CentOS is 100% compatible with RHL ! - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org image001.png
Re: [us...@httpd] Throttling in apache
Try using Apache benchmark tool. Thanks Arnab On Fri, Jun 19, 2009 at 8:05 PM, Mohit Anchlia mohitanch...@gmail.comwrote: We are using apache 2.2.6. We have a need to write a utility that would throttle traffic based on the element of the content. We get data from various client application that have application id assigned to them. This application id is part of the text or xml content. What we want is some utility that would prevent application request from going further to application server if they exceed certain threshold. So for eg: If application 1 is currently sending 100 transactions per sec then we should have ability to say that present turn away page to that application. I am not sure how we can implement that in apache 2.2.6? It would be really helpful if I could get some suggestions or if there are already some tools available out there? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] MPM Default in Linux
Information's you are asking is very much there in http://httpd.apache.org/docs/2.2/mod/directives.html. Search the index you will get all the directives info and there default values. Thanks -A On Wed, Jun 17, 2009 at 9:27 PM, ricardo figueiredo ricardoogra...@gmail.com wrote: Hi, Other question. I compiled Apache with parameter --with-mpm=worker. What default values and maximum values for directives (ServerLimit, MaxClient, ThreadsPerChild, etc) ??? Thank you Ricardo On Wed, Jun 17, 2009 at 8:34 AM, ricardo figueiredo ricardoogra...@gmail.com wrote: Hi Prasanna Ram, Great Help !!! Thank you very much. Ricardo On Wed, Jun 17, 2009 at 8:30 AM, Prasanna Ram Venkatachalam vpra...@gmail.com wrote: Only installing Apache ??? Couldn't insert only module worker.c ?? Nope. You have to recompile it as far as I know! Regards Prasanna Ram -- Muito Obrigado Ricardo
[us...@httpd] Apache as a Gateway
Hi All, This is a more generic question.Is it possible to make Apache act as a getway. At present we are using Foundry switch which nothing but acts as an VIP (Virtual IP) ,handles all the client request from the internet.It does the load balancing and internally it routes the requests to some linux boxes. Is it possible to replace that foundry switch with Linux Box running Apache with mod_proxybalancer ? Any help or suggestion would be great help. Thanks in advance. Arnab
Re: [us...@httpd] Apache as a Gateway
Hi Paul, Thanks a lot for your suggestions.Definitely we are going to try out.We are on CentOS 5 so any issue it is going to be if we install the RHL packages? Arnab On Fri, Jun 12, 2009 at 4:04 PM, Paul Miles paul.mi...@paymo.com wrote: We use Pound (http://www.apsis.ch/pound/) to do exactly that. I believe apache can also load balance, but pound was so simple to setup for our environment it seemed like the sensible choice. This way, we can leave apache to do what it does best, and serve web pages. Regards, Paul --- Paul Miles Systems and Infrastructure Fax: + 44 (0)8701 236 087 Web: http://www.paymo.com Paymo 107 Fleet Street London, EC4A 2AB UK From: Arnab Ganguly [mailto:agangul...@gmail.com] Sent: 12 June 2009 11:30 To: users@httpd.apache.org Subject: [us...@httpd] Apache as a Gateway Hi All, This is a more generic question.Is it possible to make Apache act as a getway. At present we are using Foundry switch which nothing but acts as an VIP (Virtual IP) ,handles all the client request from the internet.It does the load balancing and internally it routes the requests to some linux boxes. Is it possible to replace that foundry switch with Linux Box running Apache with mod_proxybalancer ? Any help or suggestion would be great help. Thanks in advance. Arnab - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Apache worker and mod_chad and mod_security.
Hi All, Is there Apache worker have any dependecy with mod_chad and mod_security ?What are these two modules used for ?I am using Apache 2.2.9 on CentOS 5. Thanks in advance. -A
[us...@httpd] Not able to start Apache
Hi All, This is related to Apache start.I have written Apache module, but not able to start it.I am getting the following error as *cannot restore segment prot after reloc: Permission denied*. This is not happening in all the machines this is surprising to me.Same module works perfectly in other machines.Any help or suggestion would be very much appreciated. Thanks in advance. -A
Re: [us...@httpd] Not able to start Apache
Thanks for the help.Got it resolved by changing SELINUX=disabled in /etc/sysconfig/selinux.It looks like SeLinux changes some system default behaviour, including the shared library loading. All are from google search :)) still lot of things to learn :(( Regards -A On Thu, May 28, 2009 at 7:13 PM, Eric Covener cove...@gmail.com wrote: On Thu, May 28, 2009 at 9:25 AM, Arnab Ganguly agangul...@gmail.com wrote: Hi All, This is related to Apache start.I have written Apache module, but not able to start it.I am getting the following error as cannot restore segment prot after reloc: Permission denied. This is not happening in all the machines this is surprising to me.Same module works perfectly in other machines.Any help or suggestion would be very much appreciated. Thanks in advance. SELinux FAQ (try google) or compile your module with -fPIC (freebie if you use apxs and don't link in your own prebuild object code) -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [us...@httpd] Child PID 89 Exit Signal Segmentaiton Fault
Generate the core dump file.It will tell you the reason for segmentation fault.Refer to the Apache documentation as how it can be done. Thanks and regards Arnab On Tue, Apr 14, 2009 at 8:37 AM, Viaduct Productions li...@viaduct-productions.com wrote: Hi folks. I have received the following error. Child PID 89 Exit Signal Segmentaiton Fault Just wondering how I fix it. I was coding along, then boom, this starts to come up. I haven't changed anything else. Mac OS X Client 10.5.6 Apache 2.2 Cheers Rich in Toronto ...now go get on your bike - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[us...@httpd] Need help on sub url
Hi All, Need some technical inputs.I have a requirement for opening sub url from the main url, and this sub url is dynamic.Is it possible to do it by using apache webserver. From the browser opening suburl can be done easily, but would like to do flash player where I am not able to open. Planning to target the Flash player to hit a apache webserver and the apache webserver will help in opening the suburl.Any particular apache module can be used for this. mod_proxy with ProxyPass and ProxyPassReverse can be used but the resultant url is static ie whatever we mention adjacent to the path.But my content requirement is dynamic as it changes. Like for example http://test.com/test.php?url=http://www.google.co.in/intl/en_com/images/logo_plain.pngis visible from the browser but not from Flash.So is it possible Flash to point to Apache and Apache will open the suburl for Flash by forwarding the request. Thanks in advance. -A
Re: [us...@httpd] Too many open files (24) - ulimit not obeyed?
I assume you tried ulimit -H -n 65536 in the apachectl, also echo the changed value within the script see the changes are getting affected for the current process. Next is can you see the TCP states of the socket opened, it is quite possible the sockets are opened but not closed correctly hence you upper limit gets exhausted. Please try out the following and update. -A On Wed, Feb 11, 2009 at 3:25 AM, Fletcher Cocquyt fcocq...@stanford.eduwrote: Hi, my apache 2.0.52 is logging Too many open files (24) and throwing HTTP error code 500 the apachectl script sets the max FD to 65536, and lsof shows ~20,000 entries for httpd (about 6000 txt - others are pipes to cronolog) It seems like the ulimit is not obeyed, but I echoed the settings after the apachectl runs at its at the hard limit. g...@web-04:~ 1:53pm 51 # lsof | wc -l 20558 g...@web-04:~ 1:53pm 52 # lsof | egrep httpd | wc -l 15978 Does anyone have a hint how to make apache happy and use the 64k limit? many thanks - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[EMAIL PROTECTED] TUX integration in Apache
Hi All, Curious to know whether the TUX integration is being done with the Apache?How do I check that and what is the procedure to enable and disable? Thanks and regards Arnab
Re: [EMAIL PROTECTED] TUX integration in Apache
Hi Sascha, Thanks a lot for the information. André: Thanks to for your prompt response and I am sorry that my mail was not clear to you. Regards Arnab On Tue, Nov 25, 2008 at 6:39 PM, Sascha Kersken [EMAIL PROTECTED] wrote: André Warnier wrote: Arnab Ganguly wrote: Hi All, Curious to know whether the TUX integration is being done with the Apache?How do I check that and what is the procedure to enable and disable? Thanks and regards Arnab Is this some kind of game where we are supposed to guess what you mean ? Or is this a case of the ones who know, know, and the rest don't matter ? Seems like he's not talking about the cute penguin but about this beast: http://en.wikipedia.org/wiki/TUX_web_server Here, he might especially mean this passage: While TUX itself can only serve static web pages, whenever TUX receives a request that it is unsure of or unable to process, it can redirect the request to a traditional userspace web server daemon. This allows TUX to handle both dynamic content and errors in a safer, faster, and RFC-correct manner. An example of such a user-space web server might be the Apache HTTP Server. This seems to be none of Apache's business, though, because whether or not the TUX web server redirects a request to another web server should be a matter of its own settings. At the end of the Wikipedia article, there are some links that might turn out useful in order to accomplish this. Regards Sascha - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] High CPU usage with MPM Worker/Event
Hi , Can you please tell me about your requirements like for example how many processes do you want to create for handling the request, it seems to me the number of processes are very high, you can try out increasing the number of threads per process that way you can reduce the number of processes, also introduce ThreadLimit param in order to increase the ThreadsPerChild.Let me know if I can help you. Thanks -A On Sun, Nov 9, 2008 at 10:31 PM, Alexey Vlasov [EMAIL PROTECTED] wrote: Hi. I set MaxRequestPerChild = 400 (400 is average quantity of ESTABLISHED connections), but it was only worse. On Thu, Nov 06, 2008 at 12:01:00PM +0530, Arnab Ganguly wrote: Hi, Can you try with Non-zero MaxRequestPerChild value.Keep a value which is equal to number of request are particular process you want to handle.Once it is done the process will be killed and a new process is going to be started.I guess your CPU usage should come down. Thanks -A On Thu, Nov 6, 2008 at 2:49 AM, Alexey Vlasov [EMAIL PROTECTED] wrote: Hi. Working with Apache I noticed one strange thing such as high consumption of CPU. It looks like this. server status: Parent Server Generation: 2 Server uptime: 27 minutes 54 seconds Total accesses: 137589 - Total Traffic: 6.1 GB CPU Usage: u80.91 s52.19 cu0 cs0 - 7.95% CPU load 82.2 requests/sec - 3.7 MB/second - 46.2 kB/request 62 requests currently being processed, 38 idle workers Especially remarkable is that Top gives - % PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 11978 www 20 0 458m 111m 2000 S 0.7 0:01.66 /opt/apache/2.2.9/sbin/httpd -k start 18151 www 20 0 453m 106m 1996 S4 0.7 0:00.30 /opt/apache/2.2.9/sbin/httpd -k start 18911 www 20 0 333m 100m 1984 S3 0.6 0:00.09 /opt/apache/2.2.9/sbin/httpd -k start 18942 www 20 0 421m 101m 1996 S2 0.6 0:00.07 /opt/apache/2.2.9/sbin/httpd -k start Accounting also shows high consumption of CPU. I don't know how it really should be, but I think it's not quite normal. Can it be peculiarity or feature of my configuration? Well I really need some advice from those who use worker/event. Thanks in advance. Configuration of my box: 2 x Quad-core CPUs Intel Xeon E5345 linux-2.6.25, gcc-4.1.2, libc-2.6.1 Apache-2.2.9 make options: CFLAGS=-O3 -march=nocona -pipe -fPIC -fomit-frame-pointer -ftracer -mfpmath=sse mpm config: IfModule mpm_event_module ServerLimit 48 StartServers 4 MaxClients 1200 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule Example of my virtualhost: VirtualHost * IfModule fcgid_module FCGIWrapper /path_to_phpwrapper /IfModule CustomLog path_to_log combined ErrorLog path_to_log DocumentRoot /path_to_docroot SetEnv PHPRC /path_to_php.ini IfModule php5_module php_admin_value *** *** /IfModule ServerName example.com ServerAlias www.example.com ServerAlias www1.example.com AddHandler server-parsed .htm AddHandler server-parsed .html AddHandler server-parsed .shtm AddHandler server-parsed .shtml RewriteEngine On RewriteCond *** *** # some rules for backend RewriteRule *** *** [NC,L,P] SuexecUserGroup user group /VirtualHost Total number of virtual hosts is about 2000. -- BRGDS. Alexey Vlasov. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- BRGDS. Alexey Vlasov.
Re: [EMAIL PROTECTED] High CPU usage with MPM Worker/Event
Hi, Can you try with Non-zero MaxRequestPerChild value.Keep a value which is equal to number of request are particular process you want to handle.Once it is done the process will be killed and a new process is going to be started.I guess your CPU usage should come down. Thanks -A On Thu, Nov 6, 2008 at 2:49 AM, Alexey Vlasov [EMAIL PROTECTED] wrote: Hi. Working with Apache I noticed one strange thing such as high consumption of CPU. It looks like this. server status: Parent Server Generation: 2 Server uptime: 27 minutes 54 seconds Total accesses: 137589 - Total Traffic: 6.1 GB CPU Usage: u80.91 s52.19 cu0 cs0 - 7.95% CPU load 82.2 requests/sec - 3.7 MB/second - 46.2 kB/request 62 requests currently being processed, 38 idle workers Especially remarkable is that Top gives - % PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 11978 www 20 0 458m 111m 2000 S 0.7 0:01.66 /opt/apache/2.2.9/sbin/httpd -k start 18151 www 20 0 453m 106m 1996 S4 0.7 0:00.30 /opt/apache/2.2.9/sbin/httpd -k start 18911 www 20 0 333m 100m 1984 S3 0.6 0:00.09 /opt/apache/2.2.9/sbin/httpd -k start 18942 www 20 0 421m 101m 1996 S2 0.6 0:00.07 /opt/apache/2.2.9/sbin/httpd -k start Accounting also shows high consumption of CPU. I don't know how it really should be, but I think it's not quite normal. Can it be peculiarity or feature of my configuration? Well I really need some advice from those who use worker/event. Thanks in advance. Configuration of my box: 2 x Quad-core CPUs Intel Xeon E5345 linux-2.6.25, gcc-4.1.2, libc-2.6.1 Apache-2.2.9 make options: CFLAGS=-O3 -march=nocona -pipe -fPIC -fomit-frame-pointer -ftracer -mfpmath=sse mpm config: IfModule mpm_event_module ServerLimit 48 StartServers 4 MaxClients 1200 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 /IfModule Example of my virtualhost: VirtualHost * IfModule fcgid_module FCGIWrapper /path_to_phpwrapper /IfModule CustomLog path_to_log combined ErrorLog path_to_log DocumentRoot /path_to_docroot SetEnv PHPRC /path_to_php.ini IfModule php5_module php_admin_value *** *** /IfModule ServerName example.com ServerAlias www.example.com ServerAlias www1.example.com AddHandler server-parsed .htm AddHandler server-parsed .html AddHandler server-parsed .shtm AddHandler server-parsed .shtml RewriteEngine On RewriteCond *** *** # some rules for backend RewriteRule *** *** [NC,L,P] SuexecUserGroup user group /VirtualHost Total number of virtual hosts is about 2000. -- BRGDS. Alexey Vlasov. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache on CentOS?
Hi All, Has anybody tried Apache on CentOS?Please let me know if any issues are being faced.Looks like it is very similar to Red-Hat 4.0. Thanks -A
[EMAIL PROTECTED] Responding to ping
Hi All, Is it possible that Apache server stops responding under heavy load, but it responds to ping? What would be the possible causes for this? Remote client is getting connection refused when it tries to connect.But when the I ping the server from the client box it shows the server is alive. Thanks -A
[EMAIL PROTECTED] Help on Apache pause
Hi All, Is there anyway to check Apache closing the sockets properly? I am getting lots of CLOSE_WAIT ,SYNC_RCV and TIME_WAIT state when I do a netstat -a, and result it is Apache pauses.It waits for sometime and again it comeback for processing.I did tried changing some of the TCP stack param tcp_keepalive_intvl,tcp_keepalive_probes ,net.ipv4.tcp_max_syn_backlog,net.ipv4.tcp_synack_retries, net.ipv4.tcp_fin_timeout but still the problem is reproducible.This happens under heavy load only. Any help would be very much appreciated. Thanks -A
[EMAIL PROTECTED] question on TIME_WAIT
Hi All, I am using Apache 2.2 MPM=worker and Red-Hat model is 3.0.Under heavy load when I do netstat -a, I see lots of socket in TIME_WAIT state.I reduced the value of net.ipv4.tcp_max_tw_buckets=100 and I saw the TIME_WAIT came down and the server was behaving correctly.But when I do dmesg I see the following lines in the terminal TCP: time wait bucket table overflow is it going to be a impact for the server under the heavy load?Actually what my observation is as TIME_WAIT increases there is a pause in Apache and again after some time it is back to normal. Any help would be very much appreciated. Thanks -A
[EMAIL PROTECTED] Apache and lingering close
Hi All, I am getting lot of CLOSE_WAIT ,SYNC_RCV and TIME_WAIT state when I do a netstat and result it is Apache pause. What would be the ideal approach to solve the issue.I am planning for explicit call of ap_lingering_close after reading the client request. Also I see a #ifdef CORE_PRIVATE under httpd_connection.h where ap_lingering_close is defined and the macro #define CORE_PRIVATE is defined in mod_proxy.h.But I don't use mod_proxy so is it going to impact anything? For TIME_WAIT plan to reduce tcp_max_tw_buckets value.Is it going to be impacted? For SYNC_RCV Increasing net.ipv4.tcp_max_syn_backlog, decreasing tcp_synack_retries and enabling tcp_syncookies. If you have any suggestion then please let me know. Thanks in advance. -A
Re: [EMAIL PROTECTED] Apache and lingering close
MaxClients 256 and there are 4 instances.Server-stat page is not available as due to heavy load.This doesn't happen in case of normal traffic.This pause remains for sometime and again it comes back after a while. I am using KeepAlive Off.I tried setting it to On with default KeepAliveTimeout and MaxKeepAliveRequests but the result was same.My Timeout value is default to 300 sec. From the Client I get connection refused during the time of pause but Apache server is available still. Thanks -A On Wed, Sep 10, 2008 at 7:46 PM, Eric Covener [EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 10:05 AM, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, I am getting lot of CLOSE_WAIT ,SYNC_RCV and TIME_WAIT state when I do a netstat and result it is Apache pause. What does server-status say? What's MaxClients set to? Can you describe the pause? -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache and lingering close
I am not using mod_cgi and mod_proxy as well, not able to identify what the real cause is .Any pointers or suggestion would be of great help. Thanks -A On Wed, Sep 10, 2008 at 8:32 PM, Eric Covener [EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 10:29 AM, Arnab Ganguly [EMAIL PROTECTED] wrote: MaxClients 256 and there are 4 instances.Server-stat page is not available as due to heavy load.This doesn't happen in case of normal traffic.This pause remains for sometime and again it comes back after a while. I am using KeepAlive Off.I tried setting it to On with default KeepAliveTimeout and MaxKeepAliveRequests but the result was same.My Timeout value is default to 300 sec. From the Client I get connection refused during the time of pause but Apache server is available still. Thanks -A Re: the high number of CLOSE_WAIT -- Do you have threads hanging in something like CGI or proxy? Any idea what the actual problem is? -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Query on Apache timers
Hi All, Just wanted to know what is the value of the Timer for which Apache waits for a Client request to arrive and if doesn't then it sends back 408 back to the client ,or some request timeout responses.Do we have a configurable parameter for this? Thanks -A
[EMAIL PROTECTED] About lingering_close
Hi All, How do I enable lingering_close in Apache.Is it enabled by default in Apache 2.2.8 ? Is there anyway to check it. Thanks and regards Arnab
Re: [EMAIL PROTECTED] About lingering_close
Is there any way to check the behavior? Thanks Arnab On Sun, Sep 7, 2008 at 6:59 PM, Eric Covener [EMAIL PROTECTED] wrote: On Sun, Sep 7, 2008 at 8:56 AM, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, How do I enable lingering_close in Apache.Is it enabled by default in Apache 2.2.8 ? Is there anyway to check it. It's enabled by default, and you have to recompile Apache to change/disable the behavior. Please don't cross-post to the development mailing list. -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Query on access log for entry of %T
Hi All, Thanks for all help.One basic question, how can I figure out my TimeOut value has expired?In the error logs do we see any entry for this or can you tell me the steps to simulate? Regards Arnab On Thu, Sep 4, 2008 at 11:02 PM, Eric Covener [EMAIL PROTECTED] wrote: On Thu, Sep 4, 2008 at 12:23 PM, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, Thanks for your time and paitence. I am not worried about the TimeOut value as I am not using mod_cgid.so. TimeOut isn't mod_cgid specific. What I understand from your explanation is even if the Client times out before the response comes in time,Apache can send the response back to the client.Also this is the time which it actually took to serve the request?If I am not correct let me know. Not sure what you mean specifically by if the client times out. IF the client decided it was waiting too long and it closes the TCP connection, Apache won't figure this out until it actually tries to write to the client (vs. e.g. busy reading from a proxy backend, in a buggy php script) But just curious about the Client side, so when it gets a response from the webserver for which it has timed out, the response may be discarded also.Let me know your views. If the client gets tired of waiting and closes the connection, it won't see a response. -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Query on access log for entry of %T
Hi All, I print the %T value in the access log.As per the apache docs %T implies the The time taken to serve the request, in seconds. My question is my Client and Server timeout is kept for 25 seconds.I am not using *Timeout* value also and my KeepAlive is set to Off.But in the access log I do get entries where the request was served with value more than 10 mins ie 600 sec. So if the Client would hve timeout before my guess is but how come the request was succeful.The response code also we get is 200 OK. Can you please help me on this. Thanks and regards -A
Re: [EMAIL PROTECTED] Query on access log for entry of %T
Sorry to say that it is not clear to me. Suppose a client sends a request and within specific amount of time if no response comes (here say less than 25 sec) it should timeout and it can retry. But my observation is that for the particular request even after 25 sec ,server responds back with 200 OK or some other response codes.Correct me if I am wrong. Can you please explain in more details what do you mean by individual read/write and the entire request?What is the difference? Do we have any configured value corresponding to %T param in the access log. Thanks Arnab On Thu, Sep 4, 2008 at 7:47 PM, Eric Covener [EMAIL PROTECTED] wrote: On Thu, Sep 4, 2008 at 9:50 AM, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, I print the %T value in the access log.As per the apache docs %T implies the The time taken to serve the request, in seconds. My question is my Client and Server timeout is kept for 25 seconds.I am not using Timeout value also and my KeepAlive is set to Off.But in the access log I do get entries where the request was served with value more than 10 mins ie 600 sec. So if the Client would hve timeout before my guess is but how come the request was succeful.The response code also we get is 200 OK. Timeout says your webserver will tolerate 25 seconds for eachh individual read/write, not for the entire request. A client reading or writing slowly can linger forever. -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Query on access log for entry of %T
Hi All, Thanks for your time and paitence. I am not worried about the TimeOut value as I am not using mod_cgid.so.What I understand from your explanation is even if the Client times out before the response comes in time,Apache can send the response back to the client.Also this is the time which it actually took to serve the request?If I am not correct let me know. But just curious about the Client side, so when it gets a response from the webserver for which it has timed out, the response may be discarded also.Let me know your views. Thanks Arnab On Thu, Sep 4, 2008 at 9:25 PM, Eric Covener [EMAIL PROTECTED] wrote: On Thu, Sep 4, 2008 at 10:37 AM, Arnab Ganguly [EMAIL PROTECTED] wrote: Sorry to say that it is not clear to me. Suppose a client sends a request and within specific amount of time if no response comes (here say less than 25 sec) it should timeout and it can retry. It depends on what Apache's doing with the 25 seconds (proxy, cgi, reading a file, running php code, proxy). But my observation is that for the particular request even after 25 sec ,server responds back with 200 OK or some other response codes.Correct me if I am wrong. Apache doesn't limit itself to 25 seconds of running your CGI or 25 seconds of trying to read a file from a dead network drive. From the manual: The TimeOut directive currently defines the amount of time Apache will wait for three things: 1. The total amount of time it takes to receive a GET request. 2. The amount of time between receipt of TCP packets on a POST or PUT request. 3. The amount of time between ACKs on transmissions of TCP packets in responses. Can you please explain in more details what do you mean by individual read/write and the entire request?What is the difference? Do we have any configured value corresponding to %T param in the access log. No. -- Eric Covener [EMAIL PROTECTED] - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Query on KeepAlive and KeepAliveTimeOut
Hi All, If I keep KeepAlive Off then does KeepAliveTimeOut is going to be effective or functional? Thanks Arnab
[EMAIL PROTECTED] Apache and CLOSE_WAIT state
Hi All, My Apache module hangs when I do a lsof -i:listening port output gives lots of CLOSE_WAIT. Initially the state comes out as ESTABLISHED but as the CLOSE_WAIT grows my server hangs. What would be procedure in order to prevent this. Apache Webserver version is 2.2.8 with MPM=worker and OS=Red-Hat Release 3.0 Any help would be very much appreciated. Thanks and regards Arnab
Re: [EMAIL PROTECTED] too many open files
Hi Michael, Did you tried the following ulimit -S -n `ulimit -H -n` ? This will assign the max open file hard limits value to your soft limit. Can you check the output of ulimit -H -n and ulimit -S -n?Former gives your hard and the latter gives your soft limits respectively. Even if the above step is giving problem then increase the hard limit to max value as per ur system should be something like 99.So put this value to ur soft limit by the above procedure in the apachectl script and try out.You print the value of ulimit -S -n in you apachectl script just to make sure the change is taking place.Make sure the shell which runs the apachectl gets the incremented FDS. Thanks Arnab On Wed, Aug 27, 2008 at 12:40 AM, Michael Sutter [EMAIL PROTECTED]wrote: Hello Arnab, sorry for answering so late, but it took some time to test it. At the beginning of the apachectl script I put ulimit -n 5 and restarted the daemon with the apachectl script. Nevertheless, it don't changed the behavior. The service was running for about 7 - 8 hours and after that I error message. Maybe you have another hint for me? Kind regards Michael Arnab Ganguly wrote: Can you try assigning the soft limit value to hard limit value and restart the server.You can put this in apachectl script so that it gets affected for the shell used for Apache. Thanks Arnab On Mon, Aug 25, 2008 at 6:47 PM, Michael Sutter [EMAIL PROTECTED] wrote: Hello list, I have a strange problem with my httpd daemon and hopefully somebody can help me. I'm running a Apache 2.0.49 on a Suse 9.1 and have the mod_axis2 deployed. Inside Axis2 I'm running a service which is queried every ten seconds. After running for some hours, sometimes 2, sometimes 4, sometimes more I always got a exception: Too many open files. The exception is not written to the error log, it is the return value of my service. I also have no entry at the corresponding time in my access.log, so I think it is thrown before the service is accessed. I searched through the list and found, that normally the solution is to increase the limit of open files. So I added in /etc/security/limits.conf * softnofile 8192 * hardnofile 5 logged out and in again. For my understanding this should increase the number of open files for every user. Nevertheless, this don't changed the behaviour. I always got the exception. So I also added ulimit -n 8192 to my init script, which shows the same behaviour. I also monitored the number of open files on the system. It is always about 2000 - much less then I have declared in the configuration. The httpd daemon normally has 10 process and every process has opened about 90 - 95 files. So I'm also not on the configured limit. Has anybody some idea what I'm doing wrong or how I can solve the problem? Kind regards Michael - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Issues with my Apache
Hi All, I am getting issue with my Apache webserver.My configuration is MPM=worker,Apache version 2.2.8 and Red-Hat 3.0. My observation is under heavy load it pauses for sometime and then it starts processing.During the time of pause I see requests handled by apache is being returned with 500 response.I am not using rotate log module. Can it be a problem with my configuration or i am doing something wrong in my module? Any suggestions or help would be very much appreciated. Thanks and regards Arnab
Re: [EMAIL PROTECTED] too many open files
Can you try assigning the soft limit value to hard limit value and restart the server.You can put this in apachectl script so that it gets affected for the shell used for Apache. Thanks Arnab On Mon, Aug 25, 2008 at 6:47 PM, Michael Sutter [EMAIL PROTECTED]wrote: Hello list, I have a strange problem with my httpd daemon and hopefully somebody can help me. I'm running a Apache 2.0.49 on a Suse 9.1 and have the mod_axis2 deployed. Inside Axis2 I'm running a service which is queried every ten seconds. After running for some hours, sometimes 2, sometimes 4, sometimes more I always got a exception: Too many open files. The exception is not written to the error log, it is the return value of my service. I also have no entry at the corresponding time in my access.log, so I think it is thrown before the service is accessed. I searched through the list and found, that normally the solution is to increase the limit of open files. So I added in /etc/security/limits.conf * softnofile 8192 * hardnofile 5 logged out and in again. For my understanding this should increase the number of open files for every user. Nevertheless, this don't changed the behaviour. I always got the exception. So I also added ulimit -n 8192 to my init script, which shows the same behaviour. I also monitored the number of open files on the system. It is always about 2000 - much less then I have declared in the configuration. The httpd daemon normally has 10 process and every process has opened about 90 - 95 files. So I'm also not on the configured limit. Has anybody some idea what I'm doing wrong or how I can solve the problem? Kind regards Michael - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Help on Apache handshake
Hi All, I am using Apache 2.2.8 with MPM=worker under Red-Hat 3.0. I am having the following issue, under heavy load I observer the access log doesn't grow at all for sometime although the incoming traffic is active. I did a tail on the access but it stopped growing then again after sometime it was growing.This behavior is happening repeatedly with some time gap. I have disabled the Apache log rotation then also the behavior was same.Any help would be very much appreciated. Thanks -A
[EMAIL PROTECTED] Help on Syn flood with Apache
Hi All, I am using Apache 2.2 with mpm model as worker in RedHat 3.0. When I do a dmesg from the command prompt I get lot of the below message possible SYN flooding on port 84. Sending cookies. possible SYN flooding on port 82. Sending cookies. possible SYN flooding on port 81. Sending cookies. possible SYN flooding on port 84. Sending cookies. Those are the listening the ports of the Apache.I am having 4 different instances are running.When I do a netstat of lsof on a particular port I see SYN_RCV is taking 50 % of the connections, which may have caused the kernel to throw the SYN_FLOOD_ATTACK, correct me if I am wrong. I have the following configuration net.ipv4.tcp_max_syn_backlog = 1024 and net.ipv4.tcp_syncookies = 1 and net.ipv4.tcp_keepalive_time = 7200 So what would be the workaround for the above scenario, and what is the main issue it is causing the above behavior.Any help would be very much appreciated. Thanks in advance Regards Arnab
[EMAIL PROTECTED] Apache hang and kernel entropy
Hi All, Anybody faced Apache hang due to the kernel entropy issue? What was the workaround adopted for that? Thanks in advance Regards Arnab
Re: [EMAIL PROTECTED] Where can I find a binary version of Apache?
Do httpd -v from the dir where the httpd, Apache binary is located.It will tell you the binary version.Try httpd -l for seeing the modules loaded during compile time. Thanks -Arnab On 7/2/08, Tan, Liao [EMAIL PROTECTED] wrote: Folks, Does anybody know where can we find a binary version from apache (any version) that already has the mod_ssl integrated ready to install in our server? (HP-UX) All source versions when we try to compile using the option to enable ssl, we got several errors... Thank you! Ingrid - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Help on proxy balancer
Hi All, Following configuration I have kept. ProxyPass /balancer-manager ! ProxyPass / balancer://mycluster/ stickysession=BALANCEID nofailover=On ProxyPassReverse / http://10.146.175.236:81/ ProxyPassReverse / http://10.146.161.223:82/ Proxy balancer://mycluster BalancerMember http://10.146.175.236:81 route=10-146-175-236 BalancerMember http://10.146.161.223:82 route=10-146-161-223 ProxySet lbmethod=byrequests /Proxy and the rewrite for in each of the back end server as follows RewriteEngine On RewriteRule .* - [CO=BALANCEID:balancer.10.146.161.223:82] RewriteRule ^/$ /test-query [L,R=301] and for the other server is RewriteEngine On RewriteRule .* - [CO=BALANCEID:balancer.10.146.175.236:81] RewriteRule ^/$ /test-query [L,R=301] But for some link I see from the browser that the request directly goes to the backend server than through the proxy.Even I checked the access log for the Proxy during those requests and there is no growth.Any help or suggestion would be of great help. Thanks -A
Re: [EMAIL PROTECTED] RE: Apache Log File 2GB
can you check any of your process got killed and the server was restarted.Just curious if the process owner got changed in case, and the new process owner thinks the file size starts from zero.Just check it out. Thanks -A On Tue, Jun 10, 2008 at 12:11 PM, Andre Hübner [EMAIL PROTECTED] wrote: Servus, To rotate the logs you can use Apaches piped rotatelogs: http://httpd.apache.org/docs/2.2/programs/rotatelogs.html Put something like the following in your httpd.conf (or whereever your logging is define), 'CustomLog | APACHE_HOME/bin/rotatelogs -l APACHE_HOME/logs/access_log%Y-%m-%d_%H_%M_%S 2048M custom' That should rotate at 2 gigs. unfortunately i have still this problem. After a while of testing and experimenting i have the problem that nothing is rotated. Logfile is growing and growing... In httpd.conf is following: LogLevel warn LogFormat %v***%h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent LogFormat %h %l %u %t \%r\ %s %b common CustomLog |/usr/sbin/rotatelogs /www/logs/%Y/%m/%d/access_log 1024M common ErrorLog |/usr/sbin/cronolog --symlink=/www/logs/error_log /www/logs/%Y/%m/%d/error_log I tried with 1024M for Size or 120 for time-intervall but nothing happens. I have just no idea, other logfiles contain no info about error etc. What to do now? Thanks Andre - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache concurrency info
Hi All, How do I get the concurrency level information of the Apache.Like at any particular sec how many requests are being handled by the server.The server status page shows the Idle threads available and free.Can you help me on this.What is the additional information we can get if we enable Extended Status on? Looking forward for response. Thanks in advance -A
[EMAIL PROTECTED] help needed on log entries, seems to Apache hangs
Hi All, I am using Apache 2.2 Worker in Red-Hat 3.0. Following are the behaviors observed in my access logs. 1) Sometime for a particular second there is no entry in the access log although the server was up and it was fed by HTTP request. 2) Time stamp in the access log entry sometimes come in irregular way, like the time of entry for 40th sec is before than the the entry happened in 30th sec. 3)When I do a tail in the access log , sometime my terminal hangs , means I don't get any entry in the access log but again after sometime I see entries.Even the file size also does not seems to be growing during this particular instance. Is Apache is hanging because of heavy traffic???What would be the work around for this? Any help would be very much appreciated. Thanks in advance. Regards -A
[EMAIL PROTECTED] Inputs on the apache logs
Hi All, Can you explain me in brief of how the apache logs gets written.Does it have any buffer mechanism while writing it into the file?I am sing Apache 2.2 with Worker model.When my webserver is overloaded i don't see my access logs file growing for at least 1 min and again later on it grows.Later when I check the entry in the access log I do see entry of the logs during the time when the logs file size was not growing. Thanks in advance. Regards -A
Re: [EMAIL PROTECTED] what modules have been loaded ?
Try ./httpd -l.Where is the httpd is the Apache binary.It will show you the modules compiled into the server not the modules that are going to be dynamically loaded using LoadModules. Thanks -A On Thu, May 22, 2008 at 12:43 AM, dave selby [EMAIL PROTECTED] wrote: Hi all, Is there a way to get apache2 to tell you what modules have been successfully loaded ? Cheers Dave -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] RE: what modules have been loaded ?
try out ./httpd -l.It gives us the compile time modules not the modules that are being loaded run time using LoadModule. Thanks and regards -A On Thu, May 22, 2008 at 7:05 PM, Heer, Joost de [EMAIL PROTECTED] wrote: dave selby mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] schreef op woensdag 21 mei 2008 21:14: Hi all, Is there a way to get apache2 to tell you what modules have been successfully loaded ? Cheers Dave For 2.2: httpd -M Joost
Re: [EMAIL PROTECTED] Any Apache module load balancer with respect to time?
Hi Igor, Thanks for the information.Let me try out the stuff and will update you. Regards -A On Sat, May 17, 2008 at 4:17 PM, Igor Galić [EMAIL PROTECTED] wrote: On Wed, 14 May 2008 12:36:37 +0530 Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, I am using mod_proxy_balancer in Apache Red-Hat 3.0 and mpm=worker. Just curious is it possible to configure a time to live value so that within that particular time all the request will be routed by the load balancer to a particular server.Once it expires it switches to some other server. What I saw the load balancing at present is having options of number of request and on the weight.Is there any option like time to live value?Let me know if any other module can bring me the above functionality. Thanks in advance. I think mod_proxy's ProxyPass directive with it's flags should be able to get this done: http://httpd.apache.org/docs/trunk/mod/mod_proxy.html#ProxyPass Regards -A So long, Igor
Re: [EMAIL PROTECTED] Any Apache module load balancer with respect to time?
Thanks for all help. Regards -A 2008/5/19 Arnab Ganguly [EMAIL PROTECTED]: Hi Igor, Thanks for the information.Let me try out the stuff and will update you. Regards -A On Sat, May 17, 2008 at 4:17 PM, Igor Galić [EMAIL PROTECTED] wrote: On Wed, 14 May 2008 12:36:37 +0530 Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, I am using mod_proxy_balancer in Apache Red-Hat 3.0 and mpm=worker. Just curious is it possible to configure a time to live value so that within that particular time all the request will be routed by the load balancer to a particular server.Once it expires it switches to some other server. What I saw the load balancing at present is having options of number of request and on the weight.Is there any option like time to live value?Let me know if any other module can bring me the above functionality. Thanks in advance. I think mod_proxy's ProxyPass directive with it's flags should be able to get this done: http://httpd.apache.org/docs/trunk/mod/mod_proxy.html#ProxyPass Regards -A So long, Igor
[EMAIL PROTECTED] Any Apache module load balancer with respect to time?
Hi All, I am using mod_proxy_balancer in Apache Red-Hat 3.0 and mpm=worker. Just curious is it possible to configure a time to live value so that within that particular time all the request will be routed by the load balancer to a particular server.Once it expires it switches to some other server. What I saw the load balancing at present is having options of number of request and on the weight.Is there any option like time to live value?Let me know if any other module can bring me the above functionality. Thanks in advance. Regards -A
[EMAIL PROTECTED] mod_backhand support in Apache 2.2.x ?
Hi All, Does mod_backhand module is supported in Apache 2.2.x? My configuration is Red-Hat 3.0 and Apache 2.2.6 with mpm=worker.I downloaded the mod_backhand tar from the net but getting issue with the installation and configuration.Any help on this and on the above query would be appreciated. Looking forward for your response. Thanks and regards -A
[EMAIL PROTECTED] question on mod_proxy_balancer
Hi All, I am using mod_proxy_balancer in Apache Red-Hat 3.0 and mpm=worker. Just curious is it possible to configure a time to live value so that within that particular time all the request will be routed by the load balancer to a particular server.Once it expires it switches to some other server. What I saw the load balancing at present is having options of number of request and on the weight.Is there any option like time to live value?Let me know if anyvother module can bring me the above functionality. Thanks in advance. Regards -A
[EMAIL PROTECTED] question on log time entry in the Apache access log
Hi All, My query is , in apache access_log we get the entry of 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] GET /apache_pb.gif HTTP/1.0 200 2326 What the log document says is 10/Oct/2000:13:55:36 is the time when the request is received by Apache.So suppose the server is overloaded and it has a ListenBackLog 511, so if the request is in queue does apache starts the timer or the timer is started only when it is fetched from the queue.Also my guess suppose the request is not in queue so the timer is going to be started immediately.Please let me know your views. Thanks in advance. Regards -A
[EMAIL PROTECTED] Test case for Apache mod_logio
Hi All, I would like to load the mod_logio in my web server.So wanted to know about any issues are going to be faced.Does Apache has any standard test cases to make ensure that the module works fine or what are the things we should target to about the behavior.I guess the mod_logio does not have going to be any issue but just rechecking with the forum. Thanks in advance. -A
[EMAIL PROTECTED] Printing Content-Length in Apache access_log
Hi All, How do I get the content length in the access log.Is there any configuration I need to do in the httpd.conf file? Also what is the 276 value in the line of the access log file 12.246.123.60 - - [04/Apr/2003:13:01:15 -0500] GET /scripts/root.exe?/c+dir HTTP/1.0 404 276 ? Thanks in advance. Regards -A
Re: [EMAIL PROTECTED] Apache Not Releasing Memory 2.2.0 using Moodle
Hi All, Can you tell me what is the output you get when you run the free -m command.Also when the process is idle it won't release the memory back.I guess it will be put in the Swap space of OS.top -p pid won't be coming down. Also I see from the configuration file both perfork and worker is being used is it so?I am not clear about the configuration.Are you getting any crash on the Apache? Thanks -A On Mon, Apr 21, 2008 at 1:21 PM, Terence Le Grange [EMAIL PROTECTED] wrote: Dear All, I have installed Moodle version 1.8 and am facing problems whereby the server resources are bring consumed within seconds. Each page request through http is consuming between 20 and 35 MB RAM. The server works well for loads of approximately 20 users but at 25 or 30 it just crashes and I need to restart the httpd process. Current setup is Fedora Core 5 (Apache 2.2.0) with 512 MB of memory. Looking at TOP, I see that apache is not recycling it's memory (each process takes up between 1 and 6% and even though it's been idle for some time it does not seem to recycle it. Memory then stays at about 500MB until such time as I restart the service and it drops to 230MB (I currently restart the service hourly which very often fails). A snapshot of my process list is as follows: top - 15:46:56 up 4:15, 2 users, load average: 0.00, 0.03, 0.02 Tasks: 91 total, 1 running, 90 sleeping, 0 stopped, 0 zombie Cpu(s): 0.2% us, 0.0% sy, 0.0% ni, 99.8% id, 0.0% wa, 0.0% hi, 0.0% si Mem:504156k total, 474812k used,29344k free,28988k buffers Swap: 1534196k total,0k used, 1534196k free,92952k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 4991 apache16 0 43292 20m 4436 S0 4.1 0:01.37 httpd 4992 apache15 0 52168 29m 4520 S0 5.9 0:02.11 httpd 4993 apache15 0 43148 20m 4320 S0 4.1 0:01.25 httpd 4994 apache15 0 43140 20m 4396 S0 4.1 0:01.82 httpd 4995 apache16 0 43484 21m 5388 S0 4.3 0:01.66 httpd 4996 apache17 0 48540 26m 5428 S0 5.4 0:02.57 httpd 4997 apache15 0 47844 24m 4376 S0 5.0 0:02.31 httpd 4998 apache15 0 43260 20m 4360 S0 4.1 0:01.70 httpd 4999 apache15 0 60444 37m 4496 S0 7.5 0:02.38 httpd 5000 apache15 0 60624 37m 4560 S0 7.6 0:09.21 httpd 5001 apache16 0 50868 27m 4412 S0 5.6 0:06.82 httpd 5002 apache15 0 43148 20m 4380 S0 4.1 0:01.89 httpd 5003 apache16 0 50868 27m 4412 S0 5.6 0:01.58 httpd 5004 apache15 0 43284 20m 4368 S0 4.1 0:00.55 httpd 5005 apache16 0 50980 27m 4412 S0 5.6 0:02.21 httpd 5112 apache15 0 43248 19m 4148 S0 4.0 0:00.47 httpd I have been tweaking around with the conf file and this is what I currently have: 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 5 ## ## 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 MinSpareServers10 MaxSpareServers 20 ServerLimit 512 MaxClients 512 MaxRequestsPerChild 4000 /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 StartServers10 MaxClients 256 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 75 MaxRequestsPerChild 4000 /IfModule I have read the Moodle docs on Apache performance, googled and read the Apache website for the past week without siginificant improvements when changing these variables. I also am aware of the significant resources that Moodle consumes, but would hope that it could at least support 30 users. I have tried doubling max open files to 100k. (/proc/sys/fs/file-max) If someone could assist
Re: [EMAIL PROTECTED] mmap cache can't open foo.php - Too many open files
Increase your soft limit to the hard limit value allowed to max open files.You can use the apachectl script which internally does the same or issue the following command from the command prompt ulimit -S -n `ulimit -H -n` and then start the Apache, hopefully it will resolve the issue :) Thanks -A On Thu, Mar 27, 2008 at 2:38 PM, thomas Armstrong [EMAIL PROTECTED] wrote: Hi. Using Apache version 2.2.3 on 'Linux CentOS', my webpages are very slow and I get this error messages on my 'error_log' file: --- [Wed Mar 26 13:05:39 2008] [warn-phpd] mmap cache can't open /var/www/classes/Threads.php - Too many open files (pid 17650) [Wed Mar 26 13:05:42 2008] [warn-phpd] mmap cache can't open /var/www/classes/User.php - Too many open files (pid 17650) [Wed Mar 26 13:05:46 2008] [warn-phpd] mmap cache can't open /var/www/lib/Functions.php - Too many open files (pid 17650) --- I've got PHP 5.2.5 and APC (a Cache System) 3.0.17. Does it something to do with Apache? Thank you very much. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Query on Maxmemfree
And also when the process dies how do I make sure it releases the resource it had acquired. This will happen automatically for most resources. Is there some particular problem you are having? Thanks for the update.My observation even after using MaxRequestPerChild param setting to non zero.What I see the process gets killed but there is no increase in free memory. Another observation is RSS size of Apache process is around 15MB but free -m gives much more resource occupied considering only Apache is running in the particular box. Regards -A On Fri, Mar 21, 2008 at 12:47 AM, Joshua Slive [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2008 at 5:11 PM, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, How do I restrain Apache process to grow to a certain limit? There is no function internal to apache to do that. You can probably use ulimit in the script that starts apache. Of course, the processes will die very ungracefully if they hit the OS limit. You may want to look at MaxRequestsPerChild if you have buggy/leaky modules. And also when the process dies how do I make sure it releases the resource it had acquired. This will happen automatically for most resources. Is there some particular problem you are having? What is the impact of the parameter MaxMemFree ? This won't do very much in normal use. Apache will try to free memory back to the OS if it winds up with a bunch of unoccupied memory. The OS may or may not reuse it. And in a busy server, it is unlikely that particular processes will wind up allocating a bunch of memory and then later not need it. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Query on Maxmemfree
Hi All, How do I restrain Apache process to grow to a certain limit?And also when the process dies how do I make sure it releases the resource it had acquired.What is the impact of the parameter MaxMemFree ?Any help or suggestion would be very much appreciated. Thanks -A
[EMAIL PROTECTED] About ListenBackLog and MinspareThread
Hi All, My Apache server is heavily loaded.I am using Apache 2.2.8 on Red-Hat 3 with MPM=worker.Can I reduce the load by reducing the value of ListenBackLog? What is the impact on the webserver if I keep MinSpareThread 1? Thanks in advance. Regards -A
[EMAIL PROTECTED] Memory leak issue with ap_get_client_block()
Hi All, I am getting a memory leak issue in Apache 2.2.8 on Red-Hat 5.0. I tried out the following options 1) MaxRequestPerChild settings to non zero 2)I was allocating memory by using apr_palloc from the request pool but later I replaced to normal malloc and added a clean handler in apr_pool_cleanup_run. Above didn't resulted any improvements.I may be doing something major mistake in my module any help would be highly appreciated.Just curious any issue with the ap_get_client_block() function.I am using this function many times so can it be a problem and what is the work around for this. Thanks in advance. -A
[EMAIL PROTECTED] Getting errors in MPM=event
Hi All, I am getting the following error when I start my apache with MPM=event. [crit] (70023)This function has not been implemented on this platform: Couldn't create a Thread Safe Pollset. Is it supported on your platform?. Just to update you my kernel release is 2.4.21-47.ELhugemem and Red-hat release is 3.0. I have downloaded the httpd-2.2.8 and after installation I got stuck with the above issue.What would be the work around for ? One more question when the MPM=event model is going to moved from experimental to stable version. Any help would be appreciated. Thanks in advance. -A
[EMAIL PROTECTED] Query on MaxClient and ListenBackLog
Hi All, I am using MPM= worker and Apache version is 2.2 on Red-Hat 3.0. I am getting lots of connection timeout from the client request as due the busy server.I have kept the value of MaxCLient 128 and ListenBackLog to default 511. So in order to reduce the connection timeouts which one makes more sense to increase like MaxClient or ListenBackLog. Any help would be appreciated. Thanks and regards -A
Re: [EMAIL PROTECTED] Invalid URI in request
Hi ALL, Thanks for the update, I have tried the below procedure, but it gives me Invalid method in request and not Invalid URI in request.How do I simulate the later. Thanks in advance. Regards -A On Dec 6, 2007 11:30 PM, Krist van Besien [EMAIL PROTECTED] wrote: On Dec 5, 2007 3:37 PM, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, Thanks for all the info.I agree there is some issue with request as HTTP method is missing in the request for which I get invalid URI in the error log.But wanted to know how is it possible to send such invalid request? Do we have any tool by which I can test this thing. This is quite easy. Just do telnet www.domain.com 80 Then type in whatever malformed request you want to be sent. Krist -- [EMAIL PROTECTED] [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Analyzing access and error logs
Hi All, Is there any free tool available that analyzes Apache error and access logs? Thanks in advance. -A
Re: [EMAIL PROTECTED] Invalid URI in request
Hi All, Thanks for all the info.I agree there is some issue with request as HTTP method is missing in the request for which I get invalid URI in the error log.But wanted to know how is it possible to send such invalid request? Do we have any tool by which I can test this thing.I tried some of the free tools that allows to create HTTP request but HTTP method name is always there. Like in my case I didn't got the method name in the request. Thanks in advance -A On Dec 5, 2007 1:24 PM, Axel-Stephane SMORGRAV [EMAIL PROTECTED] wrote: Now it is pretty clear that the problem is the missing method in the request. The URL should be prefixed with GET, PUT, POST or some other HTTP method. From RFC 2616: Method = OPTIONS; Section 9.2 | GET; Section 9.3 | HEAD ; Section 9.4 | POST ; Section 9.5 | PUT; Section 9.6 | DELETE ; Section 9.7 | TRACE ; Section 9.8 | CONNECT; Section 9.9 | extension-method So you log should for example have read: 68.197.41.131 - - [04/Dec/2007:02:24:46 -0500] GET /test-bin/test-module HTTP/1.0 200 1234 The problem is with your client. -ascs De : Arnab Ganguly [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 décembre 2007 15:24 À : users@httpd.apache.org Objet : Re: [EMAIL PROTECTED] Invalid URI in request In the access log I got was 68.197.41.131 - - [04/Dec/2007:02:24:46 -0500] /test-bin/test-module HTTP/1.0 400 226 and the error log I got is [error] [client 68.197.41.131] Invalid URI in request /test-bin/test-module HTTP/1.0 Thanks -A - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Invalid URI in request
Hi Krushna, Thanks for the quick update.It comes in my error_log.I am using Apache 2.2Worker in Red-hat 3. Regards -A On Dec 4, 2007 6:04 PM, Rath, Krushna [EMAIL PROTECTED] wrote: Can u provide bit more info…..where r u getting Invalid URI in request.?in ethereal? Can u provide the trace and the log files? Regards, ~Krushna -- *From:* Arnab Ganguly [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, December 04, 2007 5:55 PM *To:* users@httpd.apache.org; [EMAIL PROTECTED] *Subject:* [EMAIL PROTECTED] Invalid URI in request Hi All, I am getting lot of Invalid URI in request.How to resolve this.I have checked the DocumentRoot and Directory they are all pointing to same path. Any help would be highly appreciated. Thanks and regards -A
[EMAIL PROTECTED] Invalid URI in request
Hi All, I am getting lot of Invalid URI in request.How to resolve this.I have checked the DocumentRoot and Directory they are all pointing to same path. Any help would be highly appreciated. Thanks and regards -A
Re: [EMAIL PROTECTED] Invalid URI in request
Just checked the error and access log, I am getting a request without any POST or GET which is reported as Invalid URI in the error.Any thoughts on this.Looking forward for response. Thanks -A On Dec 4, 2007 6:04 PM, Rath, Krushna [EMAIL PROTECTED] wrote: Can u provide bit more info…..where r u getting Invalid URI in request.?in ethereal? Can u provide the trace and the log files? Regards, ~Krushna -- *From:* Arnab Ganguly [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, December 04, 2007 5:55 PM *To:* users@httpd.apache.org; [EMAIL PROTECTED] *Subject:* [EMAIL PROTECTED] Invalid URI in request Hi All, I am getting lot of Invalid URI in request.How to resolve this.I have checked the DocumentRoot and Directory they are all pointing to same path. Any help would be highly appreciated. Thanks and regards -A
Re: [EMAIL PROTECTED] Invalid URI in request
In the access log I got was 68.197.41.131 - - [04/Dec/2007:02:24:46 -0500] /test-bin/test-module HTTP/1.0 400 226 and the error log I got is [error] [client 68.197.41.131] Invalid URI in request /test-bin/test-module HTTP/1.0 Thanks -A On Dec 4, 2007 7:21 PM, Boyle Owen [EMAIL PROTECTED] wrote: -Original Message- From: Arnab Ganguly [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 2:35 PM To: Rath, Krushna; users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Invalid URI in request Just checked the error and access log, I am getting a request without any POST or GET which is reported as Invalid URI in the error.Any thoughts on this.Looking forward for response. What exactly is in the logs (cut'n'paste it)... But if this is caused by some client sending an illegal request, there is obviously nothing you can do about it (except ask them to stop :-) Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. Thanks -A On Dec 4, 2007 6:04 PM, Rath, Krushna [EMAIL PROTECTED] wrote: Can u provide bit more info.where r u getting Invalid URI in request.?in ethereal? Can u provide the trace and the log files? Regards, ~Krushna From: Arnab Ganguly [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 5:55 PM To: users@httpd.apache.org; [EMAIL PROTECTED] Subject: [EMAIL PROTECTED] Invalid URI in request Hi All, I am getting lot of Invalid URI in request.How to resolve this.I have checked the DocumentRoot and Directory they are all pointing to same path. Any help would be highly appreciated. Thanks and regards -A This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] make_sock: could not bind to ...
Hi, Refer to you httpd.conf file.There is one parameter named Servername.Putyour hostname or ipaddress followed by the port number where you want to listen.Like for example ServerName 10.146.146.73:80 Also there is one more param named as Listen.Put the same port value corresponding to Listen.For example Listen 80 and start the Apache.Youshould not be getting the error. Thanks and regards -A On 10/23/07, Jinu [EMAIL PROTECTED] wrote: I tried looking in the wiki for this information as to why i am getting this message when i start the program apache. It tells me that I need to do a run on my winows for netstat -ano. Well unfortunatly there is no netstat program for me to do this with. When i try to run this windows tells me that Netstat is not a vallid win32 aplication. Does anyone know whats going on? I am a total newbie to this software I intended to turn my computer in to a webhost for my personal website.. I was told that i had to have this software in order to do so when I get my domain address.
Re: [EMAIL PROTECTED] Make apache sleep
Hi, Try setting the KeepAlive On and with high KeepAliveTimeout value.You can refer to Apache org docs for the above params. Thanks -A On 10/23/07, Jim Albert [EMAIL PROTECTED] wrote: For the purposes of testing a heavy load situation, I'd like to configure one of my apache web servers to intentionally respond slow to a request. Is anyone aware of some type of apache sleep or delay configuration that will easily allow me to configure this? For example, tell apache to wait 10 seconds before responding to any request. Thanks, Jim Albert - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Core Dumps on FreeBSD 6.1
Hi Don, I guess u have tried the CoreDumptSettings in your configuration file and tried to do gdb over the CoreDump file.You can refer to http://httpd.apache.org/dev/debugging.html under debugging the intermittent crashes.Let me know if it helped. Thanks -A On 10/5/07, Don O'Neil [EMAIL PROTECTED] wrote: Anyone have some insight on what is going wrong here... this setup used to work perfectly, and as far as I know nothing has changed No matter what I do, I can't get apache to launch, it just dumps cores... here is the gdb output: GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-marcel-freebsd...(no debugging symbols found)... Core was generated by `httpd'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.3 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /etc/httpd/modules/mod_vhost_alias.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_vhost_alias.so Reading symbols from /etc/httpd/modules/mod_env.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_env.so Reading symbols from /etc/httpd/modules/mod_log_config.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_log_config.so Reading symbols from /etc/httpd/modules/mod_log_agent.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_log_agent.so Reading symbols from /etc/httpd/modules/mod_log_referer.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_log_referer.so Reading symbols from /etc/httpd/modules/mod_mime.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_mime.so Reading symbols from /etc/httpd/modules/mod_negotiation.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_negotiation.so Reading symbols from /etc/httpd/modules/mod_status.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_status.so Reading symbols from /etc/httpd/modules/mod_info.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_info.so Reading symbols from /etc/httpd/modules/mod_include.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_include.so Reading symbols from /etc/httpd/modules/mod_autoindex.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_autoindex.so Reading symbols from /etc/httpd/modules/mod_dir.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_dir.so Reading symbols from /etc/httpd/modules/mod_cgi.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_cgi.so Reading symbols from /etc/httpd/modules/mod_asis.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_asis.so Reading symbols from /etc/httpd/modules/mod_imap.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_imap.so Reading symbols from /etc/httpd/modules/mod_actions.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_actions.so Reading symbols from /etc/httpd/modules/mod_userdir.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_userdir.so Reading symbols from /etc/httpd/modules/mod_alias.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_alias.so Reading symbols from /etc/httpd/modules/mod_rewrite.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_rewrite.so Reading symbols from /etc/httpd/modules/mod_access.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_access.so Reading symbols from /etc/httpd/modules/mod_auth.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_auth.so Reading symbols from /etc/httpd/modules/mod_auth_anon.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_auth_anon.so Reading symbols from /etc/httpd/modules/mod_expires.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_expires.so Reading symbols from /etc/httpd/modules/mod_headers.so...(no debugging symbols found)...done. Loaded symbols for /etc/httpd/modules/mod_headers.so Reading symbols from /etc/httpd/modules/mod_setenvif.so...(no debugging symbols found)...done. Loaded symbols
[EMAIL PROTECTED] request failed: error reading the headers
Hi All, In the error logs I am getting the following statement *request failed: error reading the headers. *How do I disable this error.Thanks in advance Regards -A* * * *
[EMAIL PROTECTED] Query on Maxmemfree
Hi All, I have couple of queries on the usage of MaxMemFree param in Apache. 1) What would be the ideal value to keep it with? 2) Does it have any dependency with other parameters like ServerLimit,MaxClient etc? 3) Does the memory taken up by the Apache daemon is reduced if we keep a lower value of this? 4) Also what is the impact on the performance. Looking forward for response. Thanks in advance. Regards -A
[EMAIL PROTECTED] Query on mod_fast_cgi| Loading modules not required | MaxRequestPerChild
Hi All, I have couple of basic question from my end.I am using Apache2.2 with MPM=worker and the OS is Red-hat release 3.0. 1) What is the usage of mod_fast_cgi ? 2)What is the impact on the httpd-binary if we Load mdoules which may not be relevant for a particular requirement?Like for example if I don't load mod_server_status which monitors the Apache thread and process information? 3)What is the impact if the MaxRequestPerChild is kept non zero and the apache server is made to run for a longer duration?Any memory issues we are going to face? Looking forward response. Thanks in advance. -A
[EMAIL PROTECTED] Query on Maxmemefree
Hi All, I have couple of queries on the usage of MaxMemFree param in Apache. 1) What would be the ideal value to keep it with? 2) Does it have any dependency with other parameters like ServerLimit,MaxClient etc? 3) Does the memory taken up by the Apache daemon is reduced if we keep a lower value of this? 4) Also what is the impact on the performance. Looking forward for response. Thanks in advance. Regards -A
[EMAIL PROTECTED] queries on mod_fast_cig | loading not required modules | Maxrequestperchild
Hi All, I have couple of basic question from my end.I am using Apache2.2 with MPM=worker and the OS is Red-hat release 3.0. 1) What is the usage of mod_fast_cgi ? 2)What is the impact on the httpd-binary if we Load mdoules which may not be relevant for a particular requirement?Like for example if I don't load mod_server_status which monitors the Apache thread and process information? 3)What is the impact if the MaxRequestPerChild is kept non zero and the apache server is made to run for a longer duration?Any memory issues we are going to face? Looking forward response. Thanks in advance. -A
[EMAIL PROTECTED] Issues with PHP module in Windows
Hi All, I am getting the following error Syntax on the line number and the module cannot be loaded when I am trying to load the PHP module in Apache 2.2 on windows OS. I have tried the following option but it didn't worked.I still get the syntax error.The php dll is present in the dir but still it is not able to load and giving syntax error. #LoadModule php4_module c:/php/php4apache2.dll #LoadModule php4_module c:\php\php4apache2.dll LoadModule php4_module modules/php4apache2.dll Any help would be much appreciated. Thanks and regards Arnab
[EMAIL PROTECTED] Nonexistent process in Red-hat 4.0
Hi All, I am getting a interesting problem.I have a module build on Red-hat 3.0.I am using Apache2.2 MPM model as Worker. Now I print the current process id in my logs whenever I get my any request. In 3.0 the process ids are matching with what exactly the Apache launches.But when I move to 4.0 the process id doesn't match at all.Logs are printing the same process id.And if I do a ps -aef|httpd on that process id I get no such process exists.Also if I try to kill that processI get the same statement as No such process.But functionality of the process is fine. Not sure as this is the correct forum or not.If you have come accross this sort of problem please let me know. Thanks in advance. Regards -A
[EMAIL PROTECTED] Apache Crashing with Segmentaion fault
Hi All, I am using Apache 2.2 worker model.I am getting the following errors in the error log.Please update me for the work around. [Fri Apr 27 06:37:34 2007] [error] server reached MaxClients setting, consider raising the MaxClients setting [Fri Apr 27 08:10:30 2007] [error] [client 10.146.153.171] File does not exist: /opt/bcs/packages/apache2_2-worker-2.2.4/htdocs/spiral-bin [Fri Apr 27 08:33:36 2007] [notice] child pid 12053 exit signal Segmentation fault (11) [Fri Apr 27 09:07:52 2007] [notice] child pid 12204 exit signal Segmentation fault (11) [Fri Apr 27 10:05:07 2007] [notice] child pid 12252 exit signal Segmentation fault (11) [Fri Apr 27 11:02:10 2007] [notice] child pid 12326 exit signal Segmentation fault (11) [Fri Apr 27 12:25:13 2007] [notice] child pid 12402 exit signal Segmentation fault (11) [Fri Apr 27 13:59:16 2007] [error] [client 10.146.153.171] File does not exist: Thanks and regards -A
[EMAIL PROTECTED] File descriptors in Solaris and Apache
Hi, I have seen the apachectl script assigns the max open files of hard limit to soft limit. Now suppose if we consider the Solaris OS wihout having the library /usr/lib/extendedFILE.so.1 ,the max open files is 256 even if it is increased from /etc/system. So how does the Apache will take care of this if it tries to open more than 256 file descriptors ? Thanks in advance for help. Regards -A
[EMAIL PROTECTED] Memory leak in Apache?
Hi All, I was referring to http://httpd.apache.org/docs/2.0/misc/perf-tuning.html and the below paragraph is a snippet from the given url I am not clear about the which memory leaks it is referring.I have highlighted that part. Related to process creation is process death induced by the MaxRequestsPerChildhttp://httpd.apache.org/docs/2.0/mod/mpm_common.html#maxrequestsperchildsetting. By default this is 0, which means that there is no limit to the number of requests handled per child. If your configuration currently has this set to some very low number, such as 30, you may want to bump this up significantly. If you are running SunOS or an old version of Solaris, limit this to 1 or so because of memory leaks. Can somebody explain me the above memory leaks?Is it fixed in the Apache2.2onwards release, also in case of Linux OS do we need to follow the same procedure as that of SunOS for the param MaxRequestPerChild. Thanks in advance. -A
Re: [EMAIL PROTECTED] Apache Launching one more unwanted daemon
With Startservers 1 there will be two processes. A main process, and one child. IF this is what you are seeing there is nothing peculiar going on. I know there would be two process one root and other daemon.I am worried about the one more extra daemon which is getting launched. BTW, why is it that you don't want more than one process? My requirement is like that Thanks -A Krist On 6/4/07, Krist van Besien [EMAIL PROTECTED] wrote: On 6/3/07, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, I am using apache2.2 with MPM model as Worker in Solaris 5.9 .I have the following configuration. StartServers 1 ServerLimit 1 MaxClient 128 MaxSpareThreads 128 MinSpareThreads 1 ThreadsPerChild 128 MaxRequestPerChild 0 My requirement is to handle all the request by single process and want this process to be active through out.Issue I get is that after Apache runs for a longer time, one new process is launched apart from the active process which was handling all the request. I am not sure as why this new process is getting launched although I kept ServerLimit and StartServers both as 1.Is the MaxRequestPerChild 0 is creating the problem, as due to overload one more process is getting launched or any particular module is responsible for the above?What to do to prevent this? -- [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache Launching one more unwanted daemon
Hi All, I am using apache2.2 with MPM model as Worker in Solaris 5.9 .I have the following configuration. StartServers 1 ServerLimit 1 MaxClient 128 MaxSpareThreads 128 MinSpareThreads 1 ThreadsPerChild 128 MaxRequestPerChild 0 My requirement is to handle all the request by single process and want this process to be active through out.Issue I get is that after Apache runs for a longer time, one new process is launched apart from the active process which was handling all the request. I am not sure as why this new process is getting launched although I kept ServerLimit and StartServers both as 1.Is the MaxRequestPerChild 0 is creating the problem, as due to overload one more process is getting launched or any particular module is responsible for the above?What to do to prevent this? I am not worried about the mod_cgid daemon.This process remains there from the begining.I am worried about the extra daemon ie is getting launched.Likealtogether there are 3 daemon process.1 for mod_cgi and 2 for the core apache although I have kept StartServers and ServerLimit both 1.Hope this is more clear. Any help would be appreciated.Thanks in advance. Regards -A On 6/4/07, Joshua Slive [EMAIL PROTECTED] wrote: On 6/4/07, Arnab Ganguly [EMAIL PROTECTED] wrote: With Startservers 1 there will be two processes. A main process, and one child. IF this is what you are seeing there is nothing peculiar going on. I know there would be two process one root and other daemon.I am worried about the one more extra daemon which is getting launched. BTW, why is it that you don't want more than one process? My requirement is like that The less details you provide, the less help you're going to get. Another process that you may see with worker is the mod_cgid daemon process that is used to launch cgi scripts. Are you accounting for that? Have you used mod_status to see what the processes are doing? Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Apache Launching one more unwanted daemon
Hi, I am replacing Apache with NES(Sun Web Server).NES is pretty old.So I wanted to use Apache with single process and multi threaded web server similar to NES. Now I have used the mod_status also.The new process launched shows to be active while the old daemon doesn't show anything. Thanks -A On 6/4/07, Joshua Slive [EMAIL PROTECTED] wrote: On 6/4/07, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi All, I am using apache2.2 with MPM model as Worker in Solaris 5.9 .I have the following configuration. StartServers 1 ServerLimit 1 MaxClient 128 MaxSpareThreads 128 MinSpareThreads 1 ThreadsPerChild 128 MaxRequestPerChild 0 My requirement is to handle all the request by single process and want this process to be active through out.Issue I get is that after Apache runs for a longer time, one new process is launched apart from the active process which was handling all the request. I am not sure as why this new process is getting launched although I kept ServerLimit and StartServers both as 1.Is the MaxRequestPerChild 0 is creating the problem, as due to overload one more process is getting launched or any particular module is responsible for the above?What to do to prevent this? I am not worried about the mod_cgid daemon.This process remains there from the begining.I am worried about the extra daemon ie is getting launched.Like altogether there are 3 daemon process.1 for mod_cgi and 2 for the core apache although I have kept StartServers and ServerLimit both 1.Hopethis is more clear. When I asked for more details, I was talking about your my requirement is like that response. Worker is not really designed to operate as a single process, so telling us WHY you have the requirement might allow someone to suggest another way of achieving the same thing. And again: have you used mod_status to track what the different processes are doing? Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache Launching one more unwanted daemon
Hi All, I am using apache2.2 with MPM model as Worker in Solaris 5.9 .I have the following configuration. StartServers 1 ServerLimit 1 MaxClient 128 MaxSpareThreads 128 MinSpareThreads 1 ThreadsPerChild 128 MaxRequestPerChild 0 My requirement is to handle all the request by single process and want this process to be active through out.Issue I get is that after Apache runs for a longer time, one new process is launched apart from the active process which was handling all the request. I am not sure as why this new process is getting launched although I kept ServerLimit and StartServers both as 1.Is the MaxRequestPerChild 0 is creating the problem, as due to overload one more process is getting launched or any particular module is responsible for the above?What to do to prevent this? Any help would be appreciated.Thanks in advance. Regards -A
[EMAIL PROTECTED] Tomcat not listening
Hi , I very new to Tomact.When I bring up the process the Tomcat comes up properly but it doesn't listen on the ports mentioned in server.xml. I am not able to figure it outThanks in advance. Regards -A
Re: [EMAIL PROTECTED] Apache 2.0.50 stopped logging
Hi, you can do df -k on the logs dir where Apache was writingI guess the disk usage was full for that particular dir...Next time when you get into similar issue it is worth to check this. Thanks -A On 5/14/07, Lentes, Bernd [EMAIL PROTECTED] wrote: hello ML, i have an apche 2.0.50 running, which stopped logging. For me without any clear reason. First i thought about problems with logrotate, but logrotate runs at 4.15 am, and logging stopped at 16.28 pm. I'm sure that logging stopped, because i have a tool running on another box checking this webserver every 2 minutes, and informing me via email if it's not running any longer. This tool did not inform me. Of course this tool creates every two minutes an entry in access_log. And these entries i'm missing, and surely others. The OS is a SuSE 9.2. I checked the system with rootkithunter, beacause i was afraid of an intrusion. Nothing found. The harddisk is also o.k. (fsck) After a reboot, everything is o.k., and apache is logging wonderful. But for me this is very strange. Any idea/hint ? If it's useful for you: x:/var/log/apache2 # httpd2 -V Server version: Apache/2.0.50 Server built: Nov 9 2004 20:53:26 Server's Module Magic Number: 20020903:8 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_PROC_PTHREAD_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=/srv/www -D SUEXEC_BIN=/usr/sbin/suexec2 -D DEFAULT_PIDLOG=/var/run/httpd2.pid -D DEFAULT_SCOREBOARD=logs/apache_runtime_status -D DEFAULT_LOCKFILE=/var/run/accept.lock -D DEFAULT_ERRORLOG=/var/log/apache2/error_log -D AP_TYPES_CONFIG_FILE=/etc/apache2/mime.types -D SERVER_CONFIG_FILE=/etc/apache2/httpd.conf xxx:/var/log/apache2 # httpd2 -l Compiled in modules: core.c prefork.c http_core.c mod_so.c Thanks Bernd - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Memory usage in Apache
Hi, What my observation is, intialy the memory consumption is increased but after sometime it remains same.Also the memory consumption by the active daemon doesn't comes down even there is no processing of request.All the above things happen only when I keep the MaxRequestperchild to 0. My next question is I hve kept the ServerLimit and StartServers as 1 but once the Apache runs for say around 20hrs with good traffic, it still launches one more daemon process...Why this behavior is happening I am not sure. The modules that I have loaded are the cgi module, server-status module and mod_authz_host module.Does this have any impact one the above behaviors? Thanks in advance. Regards -A On 5/11/07, Joshua Slive [EMAIL PROTECTED] wrote: On 5/11/07, Arnab Ganguly [EMAIL PROTECTED] wrote: Hi, How is the memory handled in Apache.I see the daemon process launched by Apache, as it runs for a long time both its SZ and RSS increases over the period of time.Is there any memory issues in Apache?What should I do to take care of it?I have kept the MaxRequestPerChild as 0.Looking forward for response. I don't believe there are any known memory leaks in apache httpd. But it wouldn't be unusual for memory usage to increase somewhat over time since some requests require more memory than others and it is usually impossible to return memory to the OS. It shouldn't continue to rise indefinitely. Memory leaks might be present in some module that you using with apache. You can, of course, recycle processes occasionally by setting MaxRequestsPerChild to some not-too-small number. Other than that, I'm not sure what question you are really asking. Joshua. - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]