noahd1 / oink

Log parser to identify actions which significantly increase VM heap size
MIT License
1.18k stars 71 forks source link

'Worst Requests' contains aggregated memory usage for requests, not individual #44

Open yul opened 8 years ago

yul commented 8 years ago

Hi, I am using 'hodel_3000_compliant_logger' gem in Rails 3.2 app to format logs and when I am using oink to get memory usage, it looks like this:

-- SUMMARY --
Worst Requests:
1. Sep 28 11:47:09, 564712 KB, portal/credit_cards#index
2. Sep 28 11:58:00, 564712 KB, portal/credit_cards#index
3. Sep 28 11:59:11, 564712 KB, portal/credit_cards#index
4. Sep 28 12:17:13, 564712 KB, portal/credit_cards#index
5. Sep 28 12:18:32, 564712 KB, portal/credit_cards#index
6. Sep 28 12:16:16, 434536 KB, api/v2/customers#index
7. Sep 28 11:56:14, 388600 KB, api/v2/customers#index
8. Sep 28 12:15:56, 348844 KB, api/v2/customers#index
9. Sep 28 12:16:00, 331608 KB, api/v2/customers#index
10. Sep 28 12:16:32, 224020 KB, api/v2/customers#index

Worst Actions:
8, api/v2/customers#index
5, portal/credit_cards#index
1, portal/service_reports#customer_signature
1, api/v2/work_orders#index

Aggregated Totals:
Action                                          Max     Mean    Min     Total   Number of requests
portal/credit_cards#index                       564712  564712  564712  2823560 5
api/v2/customers#index                          434536  276200  138472  2209600 8
api/v2/work_orders#index                        155032  155032  155032  155032  1
portal/service_reports#customer_signature       121580  121580  121580  121580  1

For some reason 'Worst Requests' section shows agregated memory usage, not individual for request.

Any ideas how to fix this or what is causing it?