ispcp-apache-logger bugs ? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: General discussion (/forum-11.html) +--- Thread: ispcp-apache-logger bugs ? (/thread-6643.html) |
ispcp-apache-logger bugs ? - blocker - 05-06-2009 11:49 AM hi, i have a test server with 32Gb memory system, the os is FreeBSD, using ispcp as control panel, I setup a domain then we hammering that domain with a lot of connection until the load to that server goes up to 100 sometimes to 300, when load become 250-300 and processor usage 87% specific at system resource that handle I/O ( I think, base on top ) the log become corrupted but if i disable ispcp-apache-logger, the log that apache created still intact ( in this case /var/log/httpd-access.log) here is files in log dir when goes corrupted -rw-r--r-- 1 root www 201 May 4 13:50 %3dforid%253a11%26ie%3xxx-8%26q%3dxxx-access.log -rw-r--r-- 1 root www 202 May 4 11:02 2903-access.log -rw-r--r-- 1 root www 277 May 4 13:49 2bxxx%2bdbs%xxx.com-access.log -rw-r--r-- 1 root www 257 May 4 11:01 com-access.log -rw-r--r-- 1 root www 410 May 4 13:49 default-access.log -rw-r--r-- 1 www www 856251 May 6 08:03 default-error.log -rw-r----- 1 root wheel 52266790 May 6 08:42 xxx.com-access.log the real log is just xxx.com-access.log and defaul-error.log so i wonder is this perl's bug or Os memory spesific bug or the program it self when dealing with such condition. somebody can give me a clue ? RE: ispcp-apache-logger bugs ? - kilburn - 05-06-2009 08:01 PM Looking at your file listing, it seems to be a problem regarding the vhost parsing. Could you zip and send us the full (correct) apache log so we can manually pass it through ispcp-apache-logger and see where the problem is? RE: ispcp-apache-logger bugs ? - sci2tech - 05-07-2009 12:46 AM Apache logger expect a specific line format to determine witch host is belonging to Code: my ($vhost, $size, $line) = $log_line =~ m/^(\S+) (\d+|-) (.*)$/s; \d+|- A number or a dash (page + headers size). Rest of the line. Now log format is Code: LogFormat "%v %b %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" ispcplog RE: ispcp-apache-logger bugs ? - kilburn - 05-07-2009 01:11 AM It shouldn't send wrong parameters, but that's why I wanted to test. If this is not the case, then I bet there's some buffering problem (the logger reads incomplete lines, and then treats the remaining part as if it was a new log line by itself). I'm not a perl guru though, so I can't really asses why this happens and how it could be solved... RE: ispcp-apache-logger bugs ? - sci2tech - 05-07-2009 01:15 AM How can I "hammer" my server? blocker what is your method? I do want to test so I can reproduce and fix this error. I think that since apache logger is a script not a binary file, can be an answer but I want to check. Blocker, can you increase $MAXFILES (default is 33) make it be 100 or greater to test? Latter: Code: siege -v -c 500 -i -t 1M r 1000 -d 0 cms.eu.bogus Code: ab -n 1000 -c 100 -k http://sci2tech.eu.bogus/index.php Code: httperf --server=cms.eu.bogus --uri=/ --num-conns=5000 --num-calls=50 --verbose I did also run all in the same time. Code: top - 20:15:53 up 10 days, 20:57, 0 users, load average: 7.25, 5.26, 2.63 RE: ispcp-apache-logger bugs ? - kilburn - 05-07-2009 03:37 AM I think it's something related to invalid host requests and such, that's why I asked for the complete "ok" logfile... RE: ispcp-apache-logger bugs ? - sci2tech - 05-07-2009 04:04 AM Malformed host commands usually end with a 400 Bad Request and logs go to error log. But I`m also curious to see in logs what is causing this. RE: ispcp-apache-logger bugs ? - blocker - 05-11-2009 05:03 PM every log file corrupted only consist one line like this x.x.x.x - - [04/May/2009:13:50:09 +0700] "GET / HTTP/1.1" 200 7959 "http://xxx.com/xxx.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0" to hammering the server we use a php-cgi program with processlife set to 10800 |