|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Open URL Stream in Java
is 1040ms to 1140ms a normally time just to open a url stream?
say I have u = new url(urladdress); InputStream test = u.openStream(); the open stream call is taking anywhere from the above mentioned time which seems slow to me or am I crazy? |
#2
|
||||
|
||||
I haven't tried it, but I presume it's handshaking with the remote host to verify that the resource actually exists, so yeah, I'd expect it to take a few ping times to complete.
__________________
-- Greg |
#3
|
||||
|
||||
plucky, i've seen connections (urls, databases, etc) take over a second to "connect", but it's rare. Now, if this is a url on your own network, then that is not normal. if it's a remote network, then it could latency (pings will show this) or it could a slow site (overloaded, etc).
Sometimes, if you are writing a piece of test code, that simply starts ups, opens a connection, and then shuts down, you will see very long times. Much of that time is java initially finding/loading classes that have not been accessed (ie, urlconnection, httpurlconnection, etc). So typically when I'm doing performance testing, as a test script, i will do all the work once... then I'll do it again, and take the timings of the second call. The reason, it that it will take all the initial object creation times out of the equation.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#4
|
|||
|
|||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What URL and ports are needed for the Program Guide? | davephan | SageTV Software | 2 | 08-14-2009 07:08 AM |
Dispaly JPeg Image from URL | redbaron73 | SageTV Software | 0 | 01-03-2009 01:55 PM |
Getting a Satellite Stream in Java | Mahoney | SageTV Customizations | 0 | 02-10-2007 02:18 AM |
Java: Too many open files | jayemdae | SageTV Linux | 1 | 09-12-2006 06:01 AM |