[us...@httpd] RequesHeader directive not adding directive

2009-02-09 Thread Gerhardus.Geldenhuis
Hi We have a forum site that is behind a load balancer and the site relies on ip addresses to detect failed logins. This does not work because the loadbalancer changes the source ip address to that of itself. our load balancer(f5) adds the original ip as x-forwarded-for http header. However the t

RE: [us...@httpd] Isolating slow and fast connections using apache/modjk

2009-01-02 Thread Gerhardus.Geldenhuis
> -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: 02 January 2009 10:00 > To: users@httpd.apache.org > Subject: Re: [us...@httpd] Isolating slow and fast connections using > apache/modjk > > gerhardus.geldenh...@gta-travel.com wrote: > [...] > Not a real answer to

[us...@httpd] Isolating slow and fast connections using apache/modjk

2009-01-02 Thread Gerhardus.Geldenhuis
Hi We have an apache server that load balances two types of applications across different stacks of tomcats. We have a tomcat stack for requests that processes very quickly, lets call this stack A and a tomcat stack for slower running request(different type of application) named stack B. We limi

RE: [EMAIL PROTECTED] Apache Worker MPM: Optimizing

2008-10-21 Thread Gerhardus.Geldenhuis
Hi Lesly I don't know if you have ever watched how they balance a car wheel, but if not. They bolt it to an electrical motor and spin it around. There is sensors on this motor that detect where weight needs to be added to get the wheel balanced so it wont vibrate when driving above 100km/h. What I

RE: [EMAIL PROTECTED] Apache Worker MPM: Optimizing

2008-10-20 Thread Gerhardus.Geldenhuis
Hi Leslie, Have you read the documentation on these settings?, it is fairly helpfull in getting a basic idea of what to tune. Other than that it really depends on what your apache server is serving. Is it static pages, does it connect to tomcat, what type of connectors does it use, php, cgi etc.

RE: [EMAIL PROTECTED] Simple piped log fails

2008-10-14 Thread Gerhardus.Geldenhuis
Hmmm, thanks that did the trick. I am not sure what the differences is between ibm httpd and centos/redhat httpd but I dont get the error with the ibm version and it still logs succesfully. I will have to do some more testing to get to the bottom of the problem. Thanks again, regards > -

RE: [EMAIL PROTECTED] Simple piped log fails

2008-10-14 Thread Gerhardus.Geldenhuis
Thanks! I have changed it to: CustomLog "|/usr/bin/logger -p local5.warn" combined which has solved my problem on my test system. How would you do logger -t ''? There is a subtle difference in using an empty tag and not using a tag at all. I will have to check but I suspect the upstream log an

RE: [EMAIL PROTECTED] Simple piped log fails

2008-10-14 Thread Gerhardus.Geldenhuis
Hi André Doing cat error.log | /usr/bin/logger -t '' -p local5.warn works perfectly fine. I did'nt use error log as it is too big and just created a temp file with unique entries to prevent syslog from saying previous message repeated x times. logger I believe is part of syslog. In centos's cas

[EMAIL PROTECTED] Simple piped log fails

2008-10-14 Thread Gerhardus.Geldenhuis
Hi I am trying to get a simple piped logging example working Entry in httpd.conf: CustomLog "|/usr/bin/logger -t '' -p local5.warn" combined Apache version: Server Version: Apache/2.2.3 (CentOS) Server Built: Jan 15 2008 20:36:04 Worker MPM I am getting the following errors in the error log: pip

RE: [EMAIL PROTECTED] Making way through firewall

2007-09-21 Thread Gerhardus.Geldenhuis
Hi Dimitry, That sounds more like a firewall related question than apache. You probably want to configure natting on your firewall or just open up port 80 on the firewall, and then making sure that your apache configuration security wise is up to scratch. Regards > -Original Message- > F

RE: [EMAIL PROTECTED] Apache2 performance tunning : MaxClients problem

2007-09-20 Thread Gerhardus.Geldenhuis
Hi Johan, > > You can check out my whole conf here : > http://www.pastebin.ca/704464 I'm still wondering how to > setup ServerLimit / MaxClients bigger then 256 *IF* this > option are the best ones to increase the typical answer time > of my server ? You need to set serverlimit in you confi

RE: [EMAIL PROTECTED] Apache2 performance tunning : MaxClients problem

2007-09-20 Thread Gerhardus.Geldenhuis
Hi Johan, In you original post ServerLimit was not part of your config, could you just to make sure paste your current config on the list again. Also make sure you are using prefork and not mpm otherwise different rules will apply in configuring MaxClients and ServerLimit. On a redhat system you

RE: [EMAIL PROTECTED] Apache2 performance tunning : MaxClients problem

2007-09-20 Thread Gerhardus.Geldenhuis
Hi Johan, > FINALLY, my question is : >I would like to allow more machine resources to Apache to > handle more connections and reduce the time to display a page. >I reduce the timeout to 45 and : > > StartServers 15 > MinSpareServers

RE: [EMAIL PROTECTED] Load balancing question

2007-09-17 Thread Gerhardus.Geldenhuis
Hi James Try adding the following line to your mod_jk config for more verbose logging: JkRequestLogFormat "%w %V %U %s %T %B %H %m" It can be a few things that cause the errors you are getting. I would suggest reading the timout howto on mod_jk to set a few settings: http://tomcat.apache.org/co

RE: [EMAIL PROTECTED] Investigating Apache processes

2007-09-17 Thread Gerhardus.Geldenhuis
The reply is a bit late for your problem now, but another good way is to to use strace to attach to the apache process that is consuming the most resources at a particular time. It will give you absolutely loads of information. Regards > -Original Message- > From: Samuel Vogel [mailto:[EM

[EMAIL PROTECTED] Ensuring a connection always stays available for a specific IP

2007-09-11 Thread Gerhardus.Geldenhuis
Hi Does anyone know if there is an easy way to ensure that a certain webpage can always be served to a specific IP address even if maxclientconnections have been reached. We have an apache server with a low amount of connections. We use server-status and jkserver-status to monitor the state of th

[EMAIL PROTECTED] jk-runtime-status file

2007-09-10 Thread Gerhardus.Geldenhuis
Hi Platform: Linux LONGAPA02C 2.6.9-55.ELsmp #1 SMP Wed May 2 14:04:42 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Httpd: httpd-2.0.52-32.3.ent.centos4 mod_jk .25 When using mod_jk it complains about this file not being present No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-r

RE: [EMAIL PROTECTED] Unclean restarts

2007-08-29 Thread Gerhardus.Geldenhuis
Hi Not sure if it is related but we have seen problems before that when you restart apache very often under load it runs out of semaphore. That might worth looking into. To clean up semaphores after stopping apache you can try the following: ipcs -s | grep www-data | awk '{print $2}'|xargs -n 1 ip

RE: [EMAIL PROTECTED] Best Hardware to buy for Apache

2007-08-28 Thread Gerhardus.Geldenhuis
The benefit in quick drives is relative. It would depend on your application. If you are serving huge files all of the time then yes, and probably also if you are saving a lot of files most of the time. Linux caches disk reads so having lots of ram would help with this, but I do not know which OS

RE: [EMAIL PROTECTED] Best Hardware to buy for Apache

2007-08-28 Thread Gerhardus.Geldenhuis
With that type of load that server would be ample. Maybe buy an additional network card and configure fail over between the cards... Something to consider is what is your expected growth over the lifetime of this server. If you depreciate the servers cost to 0 in 3 years time and expect to replace

[EMAIL PROTECTED] min spare servers Directive

2007-08-28 Thread Gerhardus.Geldenhuis
Hi We are using prefork apache on Red Hat Enterprise Linux AS 4 with the following settings: MaxKeepAliveRequests 100 KeepAliveTimeout 15 StartServers 8 MinSpareServers8 MaxSpareServers 300 ServerLimit 575 MaxClients 575 MaxRequestsPerChild 4000 What I am unclear abou