You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/11/17 01:14:06 UTC

[GitHub] [pulsar-client-go] CyJaySong opened a new issue #668: High cpu pres

CyJaySong opened a new issue #668:
URL: https://github.com/apache/pulsar-client-go/issues/668


   #### Expected behavior
   
   The load of the cpu is less affected by the number of topic partitions
   
   #### Actual behavior
   
   I have a project deployed on a server, The RocketMQ (also deployed on this server) was used as a message queue. During the peak of the business, the CPU usage of the server was only 12%. When I After replacing the message queue with Tencent's TDMQ-Pulsar service, the CPU usage of my service became very high. In the past, each topic on RocketMQ I built by myself had 16 partitions, while each topic of TDMQ-Pulsar only had 4 partitions, but the CPU usage is still 4 times the previous. Even if I adjust the number of partitions for each topic to 1, the CPU usage still exceeds that of the RocketMQ version. pprof concluded that runtime.netpoll occupies too much CPU.
   
   #### Steps to reproduce
   
   Create a topic, set the number of partitions to 1, use producers and consumers to connect to it in the service, view and record the CPU usage. Increase the number of partitions of the topic, connect to it again, check the CPU usage and compare with the previous results.
   
   #### System configuration
   **Pulsar version**: 2.7
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] CyJaySong commented on issue #668: High cpu pres

Posted by GitBox <gi...@apache.org>.
CyJaySong commented on issue #668:
URL: https://github.com/apache/pulsar-client-go/issues/668#issuecomment-1003232444


   @EAHITechnology Have you noticed this problem?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] CyJaySong commented on issue #668: High cpu pres

Posted by GitBox <gi...@apache.org>.
CyJaySong commented on issue #668:
URL: https://github.com/apache/pulsar-client-go/issues/668#issuecomment-1002627314


   > Can you tell me which client version you used?
   
   v0.7.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-go] EAHITechnology commented on issue #668: High cpu pres

Posted by GitBox <gi...@apache.org>.
EAHITechnology commented on issue #668:
URL: https://github.com/apache/pulsar-client-go/issues/668#issuecomment-1002562451


   Can you tell me which client version you used?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org