Page 1 of 1

Performance issues with Teechart in java

Posted: Thu Aug 05, 2010 9:22 am
by 15356328
Hello All,

We are facing very critical issues in terms of performance using TChart in java .

Points are added to Fast Line in a thread with sleep time 300 milli seconds.
While adding points to the existing Line into TChart. CPU usage is becoming 100 % (in Task Manager in Windows OS), Other programs are not responding.

If application window size is more you can simulate the performance issue more easily.I think this is happening because redraw method called more times internally in Tee chart.

I have gone through below document http://www.teechart.net/reference/articles/index.php

Please let us know your suggestions on this..


Advance thanks for you reply.

Thanks,
Vijay

Re: Performance issues with Teechart in java

Posted: Thu Aug 05, 2010 1:08 pm
by 15356328
I am attaching example code.

Java project has to be imported into workspace and Buildpath errors have to removed ( Swt & teechart jars).
TestProject.zip
Example using Teechart and Fast Line
(9.08 KiB) Downloaded 780 times

Re: Performance issues with Teechart in java

Posted: Fri Aug 06, 2010 12:56 pm
by yeray
Hi vijay,

As said by mail, typically using a thread upon which to run a process gives you greater control over cpu cycles. In this case the TeeChart should be run on the thread.

We ran your example in a Intel Core Duo @ 1,86GHz, 2GB Ram machine and it took about 50-55% CPU.

You are working with timers but we think that this doesn't guarantee that a process will take all the CPU, if needed.
Here it is an example about thread usage and priority assignment: http://www.javadb.com/setting-thread-priorities