You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/07 14:26:58 UTC

[jira] [Commented] (ROCKETMQ-33) CPU Occupy 100%

    [ https://issues.apache.org/jira/browse/ROCKETMQ-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15807574#comment-15807574 ] 

ASF GitHub Bot commented on ROCKETMQ-33:
----------------------------------------

Github user zhouxinyu commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/31#discussion_r95059198
  
    --- Diff: store/src/main/java/org/apache/rocketmq/store/CommitLog.java ---
    @@ -1045,7 +1045,7 @@ public void run() {
     
                 while (!this.isStopped()) {
                     try {
    -                    this.waitForRunning(0);
    +                    this.waitForRunning(1000);
    --- End diff --
    
    `GroupCommitService` will be used when broker is in `SYNC_FLUSH`, so the flushCommitLogService need always `doCommit` without a break.
    
    And this won't cause 100% CPU usage unless your server only has one cpu core.
    
    BTW, how about use `ASYNC_FLUSH` if you mind.


> CPU Occupy 100%
> ---------------
>
>                 Key: ROCKETMQ-33
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-33
>             Project: Apache RocketMQ
>          Issue Type: Bug
>          Components: rocketmq-broker
>    Affects Versions: 4.0.0-incubating
>            Reporter: qinliujie
>            Assignee: yukon
>            Priority: Critical
>         Attachments: RocketMQ_性能Bug.pdf
>
>
> when start RocketMQ,CPU get very high



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)