You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Daniel Klessing (JIRA)" <ji...@apache.org> on 2017/08/23 14:00:08 UTC

[jira] [Created] (STORM-2705) DRPCSpout sleeps twice when idle

Daniel Klessing created STORM-2705:
--------------------------------------

             Summary: DRPCSpout sleeps twice when idle
                 Key: STORM-2705
                 URL: https://issues.apache.org/jira/browse/STORM-2705
             Project: Apache Storm
          Issue Type: Bug
          Components: storm-core
            Reporter: Daniel Klessing
         Attachments: drpc_idle_overhead.png

Profiling our topology I noticed that the {{DRPCSpout}} actually sleeps twice if it has nothing to do. This is due to a {{Utils.sleep(1)}} call at the end of {{nextTuple()}} while the {{SleepSpoutWaitStrategy}} performs the default sleep if a spout did not emit any tuple.

This causes - in my understanding - unnecessary context switches, especially with a high number of parallelism.

Attached the corresponding YourKit screenshot.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)