# Victoriametrics cpu usage looks much higher than prometheus

**URL:** https://forums.percona.com/t/victoriametrics-cpu-usage-looks-much-higher-than-prometheus/12042
**Category:** PMM 2.x
**Created:** [September 6, 2021, 8:40am UTC](https://forums.percona.com/t/victoriametrics-cpu-usage-looks-much-higher-than-prometheus/12042 "2021-09-06T08:40:17Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![Fan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/fan/32/40_2.png) [@Fan](https://forums.percona.com/u/Fan)
#### Post date: [September 7, 2021, 9:50am UTC](https://forums.percona.com/t/victoriametrics-cpu-usage-looks-much-higher-than-prometheus/12042/9 "2021-09-07T09:50:31Z")

</div>

Hi @ [nurlan](https://forums.percona.com/u/nurlan) thanks for your replay

I’ve tried checking the slowlog, but it’s really a bit difficult… I didn’t find any unusual statements, or at least I found that using pt-query-digest to analyse these slow log files was fine. I am using Percona 5.7.29/32

Could the agent be more robust, and if it encounters a log it can’t parse, skip it and output the warning to the log. I feel better than rebooting

Here are my slow query related parameters

```auto
log_timestamps = SYSTEM
log_output = file
slow-query-log-file = /data/mysql_3306/logs/slow.log
slow_query_log = ON
long_query_time = 0
log_slow_rate_limit = 100
log_slow_rate_type = query
log_slow_verbosity = full
log_slow_admin_statements = ON
log_slow_slave_statements = ON
slow_query_log_always_write_time = 1
slow_query_log_use_global_control = all

```

I think even if there is a truncated query statement, the agent should be able to handle such exceptions instead of restarting

here’s the slow log file and /var/log/message. Hope this helps for debug  
[https://www.swisstransfer.com/d/07d6ecbb-1715-42b2-912e-7a8fac6a044b](https://www.swisstransfer.com/d/07d6ecbb-1715-42b2-912e-7a8fac6a044b)

---

_[View the full topic](https://forums.percona.com/t/victoriametrics-cpu-usage-looks-much-higher-than-prometheus/12042)._
