Performance issues with Teechart in java

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

Performance issues with Teechart in java

Post by vijay » Thu Aug 05, 2010 9:22 am

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

vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

Re: Performance issues with Teechart in java

Post by vijay » Thu Aug 05, 2010 1:08 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Performance issues with Teechart in java

Post by Yeray » Fri Aug 06, 2010 12:56 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply