- 浏览: 148598 次
- 性别:
- 来自: 北京
文章分类
最新评论
参考网址:
http://github.com/wvanbergen/request-log-analyzer
http://www.letrails.cn/archives/rails-performance-optimization-guide/
http://wiki.github.com/wvanbergen/request-log-analyzer/basic-usage
Getting started
Use RubyGems to install request-log-analyzer on your computer:
Now you can run request-log-analyzer to analyze a log file:
Basic usage
If you want to analyze a Rails production log file, use the following syntax:
This will generate a report, similar to our Sample output. If you want analyze multiple files (because of logrotate or multiple mongrel log files), you can provide multiple filenames or use wildcards. The files will be process in the order that they are given on the command line.
Parsing from the standard input
Request-log-analyzer can also parse the standard input by using - or STDIN as filename. This is great in combination with the UNIX tail -f command to parse information live, as it is written to the log file.
Request-log-analyzer will then parse any information that is written to the log file until it is stopped by pressing CTRL+C, after which it will present the performance report for all data that has been collected up to that point.
Examples
http://github.com/wvanbergen/request-log-analyzer
http://www.letrails.cn/archives/rails-performance-optimization-guide/
http://wiki.github.com/wvanbergen/request-log-analyzer/basic-usage
Getting started
Use RubyGems to install request-log-analyzer on your computer:
$ gem install request-log-analyzer
Now you can run request-log-analyzer to analyze a log file:
$ request-log-analyzer log/production.log
Basic usage
If you want to analyze a Rails production log file, use the following syntax:
$ request-log-analyzer production.log
This will generate a report, similar to our Sample output. If you want analyze multiple files (because of logrotate or multiple mongrel log files), you can provide multiple filenames or use wildcards. The files will be process in the order that they are given on the command line.
$ request-log-analyzer mongrel.2008-11.log mongrel.2008-12.log mongrel.2009-01.log
$ request-log-analyzer production.*.log
Parsing from the standard input
Request-log-analyzer can also parse the standard input by using - or STDIN as filename. This is great in combination with the UNIX tail -f command to parse information live, as it is written to the log file.
$ tail -f production.log | request-log-analyzer -
Request-log-analyzer will then parse any information that is written to the log file until it is stopped by pressing CTRL+C, after which it will present the performance report for all data that has been collected up to that point.
Examples
Write an HTML report to report.html: $ request-log-analyzer log/production.log --file report.html --output HTML Only use uncolored ASCII characters in the report: $ request-log-analyzer log/production.log --boring Create a database named requests.db with all parsed request information $ request-log-analyzer log/production.log --database requests.db
发表评论
-
Google App Engine and others
2010-09-15 11:27 797有用的技术文章 先记载 有空 研究下 さくっとRails ... -
基于jquery和mini_magick的图片裁剪
2010-09-15 11:07 1454引用网址 http://duyouhua1214.iteye ... -
ruby gem相关命令使用
2010-08-26 12:45 1594gem相关命令使用 1.显示gem的帮助和版本 gem – ... -
深入理解alias, alias_method和alias_method_chain
2010-08-06 17:14 968http://blackanger.blog.51cto.co ... -
Rails 3 特点
2010-08-06 16:38 907真的想留下来 http://railslove.com/w ... -
Fix N+1 Queries
2010-08-06 16:16 914http://rails-bestpractices.com/ ... -
query-reviewer sql explain and review in the page
2010-08-06 12:20 1324引用网址 http://github.com/dsboulde ... -
IE7 Bug导致Rails Session保存失败
2010-08-06 10:56 972http://www.letrails.cn/archives ... -
Rails保存记录而不更新时间戳
2010-08-06 10:54 1349引用地址: http://www.letrails.cn/a ... -
how to generate qrcode on ror
2010-02-04 16:27 8711. In your rails project, in ... -
rmagick ror 上 安装
2009-11-18 09:06 854rmgick 安装规范 ror很多人现在在用了,但是发现 ... -
Update Rails to 2.2.2 (Rails 2.2.2)
2009-03-08 14:53 987gem install -v=2.2.2 rails Suc ... -
Use helpers in controllers or models
2009-01-19 16:22 925引用http://snipplr.com/view/2505/ ... -
open-flash-chart
2008-11-07 14:07 2429http://pullmonkey.com/2008/7/23 ... -
rake db:migrate
2008-11-07 11:58 1279【ruby on rails】rake db:migrate ... -
rss maker
2008-11-07 11:43 1092http://gdgdlog.net/log/show/130 ... -
acts_as_authenticated
2008-11-07 11:35 1110ruby script/plugin install act ... -
validates
2008-11-07 11:24 1061先週ずっとインフルエンザでダウンしてました。 今日はvail ... -
rails で model の変更を監視するプラグイン
2008-11-07 11:12 1363acts_as_modified モデルの変更を監視して、各 ... -
exception_notification
2008-11-07 11:03 11981 applicattion.rb 配置 incl ...
相关推荐
请求日志分析器 这是一个简单的命令行工具,可以分析各种格式的请求日志文件以生成性能报告。...安装和基本用法 将request-log-analyzer作为Ruby gem安装(您可能需要先在sudo以root身份运行此命令
Nginx日志分析器一个简易的nginx log分析器,你值得拥有!本项目采用,瑞民族之光幸(Java)开发硬性条件请【最高,最低,最低限度】将nginx日志格式设置为如下格式log_format main '$remote_addr #$...
通过request-log-analyzer,薄荷网能够深入分析应用性能,找出请求量最大、平均耗时最长以及渲染和数据库操作最耗时的请求,从而针对性地进行优化。他们还采取了异步处理策略,如使用Rake任务和消息队列(如Starling...
- **分析工具**:如HTTPAnalyzer等。 ##### 6-2 了解HTTPAnalyzer工具 - **HTTPAnalyzer功能**:捕获网络请求、解析请求响应数据。 - **使用方法**:安装软件、配置代理等。 ##### 6-3 爬取千千音乐PC客户端数据 -...
- **2.1.28 How to Log a Good Performance Service Request** - 当需要向Oracle技术支持提交性能问题时,如何有效地记录问题是关键。 - 本书提供了详细的指南来帮助用户编写有效的服务请求。 - 实例: - 记录...
作者提供了一个名为 `request_speed_log_analyzer` 的分析脚本来帮助解析日志,根据请求、主机或上游服务器进行分组,以便更好地定位问题。 接下来,我们转向 ngx_http_sub_module 模块。这个模块允许你在Nginx内部...
基于响应时间的访问日志分析器 先决条件 阿帕奇 将%D添加到 。 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D" with_time CustomLog logs/access_log with_time nginx 将$request...
* added a flush after every log line to help GUIs * "eac3to some.mpls" now also works if the stream files aren't there, anymore * fixed: number of subtitles was not appended to demuxed subtitles' file...
log_data = request.json res = es.index(index=index_name, document=log_data) return jsonify({'status': 'success', 'message': f'Document added with ID {res["_id"]}'}) if __name__ == '__main__': app...
7. **内存分析**:MAT(Memory Analyzer Tool)帮助Java开发者检测内存泄漏,优化内存使用。 8. **TDD(测试驱动开发)**:先编写测试用例,再编写实现代码,确保功能满足需求,并且遵循良好的设计原则。 9. **...
[BULK-OP-LOG] – Bulk Operation Lock for Log Table Lock Sub-Resources: Full Table Lock (default) [UPD-STATS] – Update statistics Lock [COMPILE] – Compile Lock Index Lock sub-Resources: Full Index ...
lex(LEXical analyser)是一个词法分析器(lexical analyzer generator)。 #### lisp=LIStProcessing LISP(LISt Processing)是一种函数式编程语言(functional programming language)。 #### ln=LiNk ln(LiNk)命令...