magefine/performance-mess-detector
Composer 安装命令:
composer require magefine/performance-mess-detector
包简介
This Magento 2 module provides tools to monitor and improve performance by detecting and logging potential bottlenecks in the system. It specifically focuses on tracking slow controller actions, repeated SQL queries, and other performance issues that may impact your Magento store.
README 文档
README
Overview
This Magento 2 module provides tools to monitor and improve performance by detecting and logging potential bottlenecks in the system. It specifically focuses on tracking slow controller actions, repeated SQL queries, and other performance issues that may impact your Magento store.
Features
-
Controller Performance Tracking
Logs the execution time of all controller actions and identifies actions that exceed a configurable threshold (e.g., 500 ms). -
SQL Query Optimization
Detects identical or repeated SQL queries executed during a single request cycle. Detects slow queries. -
Customizable Thresholds
Allows you to configure thresholds for what constitutes a "slow" action or query via the Magento Admin panel. (INCOMING SOON) -
Full stack trace of any logged notice
-
Detailed Logging
Logs all detected issues, including the following:- Full action name of the controller.
- Class name of the controller.
- Execution time in milliseconds.
Installation
1. Composer Installation
composer require vendor/performance-mess-detector bin/magento module:enable Magefine_PerformanceMessDetector bin/magento setup:upgrade bin/magento cache:flush
2. Manual Installation
-
Download or clone this repository into the app/code/Magefine/PerformanceMessDetector directory.
-
Run the following commands:
bin/magento module:enable Magefine_PerformanceMessDetector bin/magento setup:upgrade bin/magento cache:flush
3. Usage
The module logs detected performance issues in the following log files:
var/log/debug.log
Examples:
[2024-11-23T21:46:31.127886+00:00] main.DEBUG: [PMD] Slow action detected : cms_index_index (Magento\Cms\Controller\Index\Index\Interceptor) http://magento.local:8080/ | Execution time : 1027 ms [] []
[PMD] MULTIPLE IDENTICAL SQL QUERIES DETECTED : {"url":"http:\/\/magento.local:8080\/","query":"SELECT `e`.*, IF(at_include_in_menu.value_i...
magefine/performance-mess-detector 适用场景与选型建议
magefine/performance-mess-detector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 11 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 magefine/performance-mess-detector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 magefine/performance-mess-detector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2024-11-23