Github user arunmahadevan commented on the pull request:
https://github.com/apache/storm/pull/1217#issuecomment-201412463
With the BasicTopology.java uploaded in the Jira I was not getting
consistent results and in some cases the throughput without event logger turned
out to be less. After going through the spout it appears that with every emit a
new Long is created.
`collector.emit(new Values(new Long(rand.nextInt(Integer.MAX_VALUE))),
messageCount);`
With the spout emitting 400+ Million tuples in 10 mins (the new Long alone
eating up 3.2 GB memory), I thought the GC could have distorted the results. So
I changed the spout to emit a fixed long value and measured the throughput and
heres what I observed.
[No
eventlogger](https://cloud.githubusercontent.com/assets/6792890/14049885/1ccdc2ae-f2de-11e5-9f50-231990d629bb.png)
753394 tuples/sec
[With
eventlogger](https://cloud.githubusercontent.com/assets/6792890/14049918/4dd0a902-f2de-11e5-8a77-5c6ba3f20520.png)
736517 tuples/sec (2.29 % hit)
[Eventlogger with the
patch](https://cloud.githubusercontent.com/assets/6792890/14049934/61fbdce4-f2de-11e5-8454-e27db755fdc3.png)
749492 tuples/sec (0.52 % hit)
The results with the [patch]
(https://github.com/arunmahadevan/storm/commit/7eae5ec9f63cee82c49980a3bedf5f0dfe4e3a8d)
to reduce the PersistentMap lookup and the modified
[BasicTopology](https://github.com/apache/storm/files/189869/BasicTopology.txt)
can be validated and if that overhead is not acceptable, we can disable the
"debug" button by default and show a tooltip on how to enable it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---