# Google pub sub high cpu

**URL:** <https://discuss.elastic.co/t/google-pub-sub-high-cpu/84095>\
**Category:** Logstash\
**Created:** [April 29, 2017, 8:16pm UTC](https://discuss.elastic.co/t/google-pub-sub-high-cpu/84095 "2017-04-29T20:16:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonl](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@simonl](https://discuss.elastic.co/u/simonl)\
**Post date:** [April 29, 2017, 8:16pm UTC](https://discuss.elastic.co/t/google-pub-sub-high-cpu/84095/1 "2017-04-29T20:16:05Z")

</div>

I'm using the Google Pub Sub input, it works nicely but compared to RabbitMQ it uses a large amount of CPU with only one topic, pushing my load averages very high.

Using the RabbitMQ plugin, multiple queues uses a fraction of Pub Sub. Is what I;m seeing 'normal'  
52% compared o .3% ?

```
  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24344 logstash 39 19 5873500 1.254g 15592 S 52.5 33.9 88:02.57 [main]<google_p
24270 logstash 39 19 5873500 1.254g 15592 S 31.6 33.9 79:20.65 java
24269 logstash 39 19 5873500 1.254g 15592 S 16.6 33.9 26:37.58 java
24267 logstash 39 19 5873500 1.254g 15592 S 15.0 33.9 26:38.49 java
24268 logstash 39 19 5873500 1.254g 15592 S 14.3 33.9 26:36.84 java
24271 logstash 39 19 5873500 1.254g 15592 S 3.3 33.9 4:56.71 java
24335 logstash 39 19 5873500 1.254g 15592 S 1.0 33.9 2:19.62 [main]>worker0
24336 logstash 39 19 5873500 1.254g 15592 S 0.7 33.9 2:20.50 [main]>worker1
24345 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:12.97 [main]<rabbitmq
24362 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:12.26 [main]<rabbitmq
24364 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:12.44 [main]<rabbitmq
24365 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:12.60 [main]<rabbitmq
24370 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:12.36 [main]<rabbitmq
24377 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:12.30 [main]<rabbitmq
24378 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:12.42 [main]<rabbitmq
24379 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:13.11 [main]<rabbitmq
24381 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:16.62 [main]<rabbitmq
24385 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:06.23 [main]-pipeline
24414 logstash 39 19 5873500 1.254g 15592 S 0.3 33.9 0:00.64 [main]<rabbitmq
24247 logstash 39 19 5873500 1.254g 15592 S 0.0 33.9 0:00.01 java
24266 logstash 39 19 5873500 1.254g 15592 S 0.0 33.9 0:12.11 LogStash::Runne
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 27, 2017, 8:27pm UTC](https://discuss.elastic.co/t/google-pub-sub-high-cpu/84095/2 "2017-05-27T20:27:20Z")

</div>

Closed on May 27, 2017, 8:27pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
