Pre loader

How to reduce memory consumation in scichart ?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

Hi

I have come across that Android Scichart consuming a lot of memory while drawing it on the surface. It increase more with the time. When i run the android memory profiler, i find out 60-65 % memory consumed by the Graphics only. The app getting started hangs after some time and become unresponsive. Please let me know how to improve the memory utilization.

Version
v2.2.0.2
  • Yura Khariton
    Can you provide a project which reproduces this issue? It’s hard to tell what could be cause of this problem and how to optimize it without seeing the code. In case if you don’t want to share your code on forum you can create a ticket and attach project there. Thanks in advance.
  • Andrew Burnett-Thompson
    I second this. We really need code to reproduce such issues so we can adequately test. Can you provide it?
  • Developer Mt
    Hi Andrew ! As i said before.. i can’t share code.. this is company policy. We really want to shift from Androidplot to Scichart to achieve best performance. But we still not get that performance from scichart.
  • You must to post comments
0
0

I am considering applying server-side licensing for my javerScript application.

In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)

However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)

I wonder if there is a sample code implemented in C++ for server-side licensing.

Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?

  • Andrew Burnett-Thompson
    I’ve asked team to check Realtime Ticking stock Charts for memory leaks now, but you only reported this example grows in memory yesterday so not sure how fast of a turnaround you’re expecting on bug fixes? When we know something, we will let you know. All the best,
  • You must to post comments
0
0

Hi,
I was just checking the RealtimeTickingStock memory utilization in Android Studio profiler. I found that graphics memory by 0.1MB and native code increasing per second. Please check it yourself and solve the mention problem.
Thank you

  • Nazar Rudnyk
    I’ve checked the example and I can’t see anything unusual, memory grows is caused by appending\updating data to the charts, so that’s normal, and moreover all of that memory gets collected, except one used by chart. So everything looks fine. If you can reproduce any kind of memory leak on your side – please provide as with sample project so we can easily detect and fix it.
  • You must to post comments
0
0

Sorry i forgot to attach Base class. I hope this may help you. Everything working perfectly.. values are getting plot dynamically.

Attachments
  • You must to post comments
0
0

I also want to know that implementation of sci-chart is effective in terms of optimization.

  • Yura Khariton
    I have tested SciChart our demo application which contains various possible use cases ( e.g. realtime FIFO charts, performance demo where we append few millions of points etc) and I couldn’t reproduce this increased memory consumption which you described. So I think that without project which reproduces this issue it would be very hard to find the cause of the issue.
  • You must to post comments
0
0

I can provide you complete class source code. Sorry i can’t share the company project with anybody and size of project very large. I hope you understand. Expecting great and early solution from scichart support community.
Thanks
Best Regards
Dinesh Sheoran

Attachments
  • Yura Khariton
    Unfortunately I don’t see anything that could cause the behavior which you describe. Everything seems to be OK. Maybe you can create a separate project which reproduce this issue and can send it so I could debug it?
  • You must to post comments
0
0

Find the code in attachment

Attachments
  • Yura Khariton
    Unfortunately this code fragment isn’t enough to build a project which can be profiled to find out what is the cause of increased memory consumption. Can you provide entire project? Thanks in advance.
  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies