Posted: Tue May 27, 2014 5:10 am Post subject: shared variable
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
each of our flows use about 600+ shared variables. Performance is not up to the mark. Memory usage is high. Is there a way to tell how much memory is used up by the shared variables like a statistic?
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
Unfortunately I don't think any kind of profiling tool exists for the Broker runtime. You might be able to use tools to inspect the broker memory to identify memory leaks but I have never tried this!
If you were doing everything in Java compute nodes it would be much easier
Posted: Tue May 27, 2014 11:52 am Post subject: Re: shared variable
Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
paustin_ours wrote:
each of our flows use about 600+ shared variables.
I think shared variables are initialized upon deployment, but I'm not sure. I think you can see it if you run user trace while deploying.
But obviously a lot of the variables are initialized to NULL and set on runtime to values extracted from the messages. So checking the allocated memory immediately after deploying a flow onto an empty execution group doesn't necessarily show the real runtime memory consumption of the shared variables. And to be able to compare you should deploy a version of the same flow where you have replaced the keyword SHARED with an empty string.
IMHO using hundreds of shared variables in all flows is a symptom of systematic application of bad design. I hope you want to measure the memory consumption in order to be able to prove that?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum