Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16123

Use materialized view, CPU usage over 100%

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Triage Needed
    • Normal
    • Resolution: Unresolved
    • None
    • Legacy/Core
    • None
    • All
    • None

    Description

      env info:

      os: CentOS Linux release 7.4.1708

      cassandra: apache-cassandra-3.11.8

      jdk:1.8.0_261

       

      I used materialized view,but the cpu use over 100 when not cql client request, 

      My analysis process is as follows:

      1. top

       find pid is:25640

      2. top -pH 25640

      3. printf "%x\n" 26065

      convert  threadid 26065 ,hex value is :65d1

      4.jstack -l 26065 > jstack_25640.txt

      find 65d1 ind jstask_25640.txt

       

      5.find in source code on org.apache.cassandra.db.Keyspace.applyInternal,line 545

      I guess used cpu over 100% caused by a loop call Keyspace.applyInternal.

       

      Everybody have any suggessted?

      The jstack_25640.txt file on Attachment.

       

       

       

       

      Attachments

        1. image-2020-09-12-16-50-41-341.png
          34 kB
          chenbing
        2. image-2020-09-12-16-52-46-581.png
          449 kB
          chenbing
        3. image-2020-09-12-16-55-49-813.png
          50 kB
          chenbing
        4. jstack_25640.txt
          343 kB
          chenbing

        Activity

          People

            Unassigned Unassigned
            xbings chenbing
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: