Find the most resource consuming SQL Server queries.
This tool requires that you first run sqlmon and save your SQL Server queries to Elasticsearch. The following fields should be included: Duration, CPU, Reads, Writes, TextData, QueryHash, DatabaseName, LoginName, ServerName, HostName.
npm install -g sqltop
$ sqltop --address elasticsearch.example.com \ --metric reads \ --agg query \ --agg2 server \ --start '2019-07-31 09:00' \ --end '2019-07-31 12:30'
- Renamed textdata field to text.
- Added support for TextDataHash field.
- Initial release.
Copyright and License
Copyright 2019 Soheil Rashidi.
Licensed under the The MIT License (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.