Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"I just wanted to let u know that your data feed/service is by far the best!!! Your unfiltered tick data is excellent for reading order flow and none of your competitors delivers this quality of data!" - Comment from Peter via Email
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »IQConnect freezes client app socket
Author Topic: IQConnect freezes client app socket (1 messages, Page 1 of 1)

mvo
-Interested User-
Posts: 8
Joined: Apr 8, 2009


Posted: Apr 8, 2009 02:43 PM          Msg. 1 of 1
Hello,

I noticed that during a fast moving market IQConnect often freezes and takes almost entire CPU core.
Yet at the same time my client application, that is doing nothing but poll() and read(), is running completely idle.
In fact, at the time when I see CPU IQConnect CPU usage hitting 95%+, my app is sitting on poll() waiting for the socket to become ready to read.
Apparently IQConnect overflows its internal socket buffer and blocks the socket almost entirely. In such cases poll() returns readable status only once a minute or so.

The first solution that came to my mid was to open an individual socket for each symbol (out of 500) I am watching, or one for all symbols beginning with 'A', one with 'B', etc.. 26 total.
Theoretically, the average socket buffer fill-up rate should be reduced by the factor that equals to the number of sockets and effectively "spread" the peak data load among multiple socket buffers, thus allowing my client app to read each of them sequentially or in parallel.

My questions are following:
1. How many simultaneous socket connections do you allow per account / IQClient session?
2. Do I need to initialize the connection once or for each socket?

Thanks,
M.
 

 

Time: Fri May 17, 2024 5:15 AM CFBB v1.2.0 6 ms.
© AderSoftware 2002-2003