×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Performance issues when polling a local http server

    My Flash lite app is polling a local http server(j2me app on the same phone) at 1 sec intervals.
    I was wondering whether this kind of polling cause a performance drop in Flash UI, will the UI hang up?
    Alternatively can is there an implementation of long polling so that I can keep the connection going between
    FL and the Http server so that I need not poll regularly.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Performance issues when polling a local http server

    Firstly, if u r sending request (polling) to J2ME server at a rate of one request per sec then i dont think it hangs ur UI but yes if u send more then 1 request in 1 sec then it may hangs ur Flash UI. But when it comes to practical then we come to know that only few services like GETTING ACCELEROMETER VALUES via J2ME server can hang ur Flash Lite 3.0 UI and it is a known issue.
    Alternatively can is there an implementation of long polling so that I can keep the connection going between FL and the Http server so that I need not poll regularly.
    You can try Jarpa as it provides u to extend flash lite via XML SOCKET server which seems to be good for your case.

    Best Regards,
    SajiSoft

  3. #3
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server

    Quote Originally Posted by sajisoft View Post
    Firstly, if u r sending request (polling) a rateto J2ME server at of one request per sec then i dont think it hangs ur UI but yes if u send more then 1 request in 1 sec then it may hangs ur Flash UI. But when it comes to practical then we come to know that only few services like GETTING ACCELEROMETER VALUES via J2ME server can hang ur Flash Lite 3.0 UI and it is a known issue.

    You can try Jarpa as it provides u to extend flash lite via XML SOCKET server which seems to be good for your case.

    Best Regards,
    SajiSoft
    The FL app is send 1request per second to the J2ME server.
    In fact I am using the SWFxMe J2ME http server which I found online.
    I have posted another thread here which will give you more details. Including my test results on the E51 and the 5800XM phone.

    Due to the test results I obtained I have now set my polling rate as 2sec, I ran a debug setup on both the phones and I can visually notice the UI of the 5800XM freeze for some time during the query to the HTTP engine.
    The E51 works like a charm.

    As I remember browsing around and read experiences of the FL XMLSocket bug in FL3.x player so I decided to give the HTTP server option a try.

    Do you think Jarpa won't have the same problems? Where does the problem actually exits is it FL player or J2ME, I ask this because comm apps like Kunerilite are using the same principle so how does it work out there and not here.
    May me a Symbian C++ http server doesn't have the same problem, probably I will have to look into Janus Flash. But not before finding the cause of this issue.

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Performance issues when polling a local http server

    Quote Originally Posted by KevinBoyd View Post
    Do you think Jarpa won't have the same problems? Where does the problem actually exits is it FL player or J2ME, I ask this because comm apps like Kunerilite are using the same principle so how does it work out there and not here.
    Actually, i heard from few developers on this dibo that this issue is not there for XML SOCKET SERVER and Yes Jarpa provides XML SOCKET SERVER for communication between Flash Lite and JavaME.So, u can give it a try .
    May be a Symbian C++ http server doesn't have the same problem, probably I will have to look into Janus Flash.
    The issue is there in Symbian C++ server too but C++ http server can handle 1 requests per 1+ sec and Yes! Symbian C++ is a quite serious task for me in the beginning.
    But not before finding the cause of this issue.
    Well! i will surely try my SWFxME project with this issue and report as soon as i can (i.e in 1-4 days ).One thing comes in my mind is the request per time of J2ME can be different from Symbian C++ becuase J2ME app is somewhat slower then C++ App.

    BTW, you already know the cause of this issue , its a known pain (bug) for FL 3.x developers .


    Best Regards,
    SajiSoft

  5. #5
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server

    Quote Originally Posted by sajisoft View Post
    Actually, i heard from few developers on this dibo that this issue is not there for XML SOCKET SERVER and Yes Jarpa provides XML SOCKET SERVER for communication between Flash Lite and JavaME.So, u can give it a try .

    The issue is there in Symbian C++ server too but C++ http server can handle 1 requests per 1+ sec and Yes! Symbian C++ is a quite serious task for me in the beginning.

    Well! i will surely try my SWFxME project with this issue and report as soon as i can (i.e in 1-4 days ).One thing comes in my mind is the request per time of J2ME can be different from Symbian C++ because J2ME app is somewhat slower then C++ App.

    BTW, you already know the cause of this issue , its a known pain (bug) for FL 3.x developers .


    Best Regards,
    SajiSoft
    Thanks for your replies.
    The pain bug in FL player 3.x also exists when integrating with Jarpa I tested it today.
    I am hoping that someone get a patch or upgrade to this out asap.
    Will keep updating this post if I get something else on this.

  6. #6
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server

    The issue is there in Symbian C++ server too but C++ http server can handle 1 requests per 1+ sec and Yes! Symbian C++ is a quite serious task for me in the beginning.
    Does this mean that anything integrating with flash lite through HTTP and XMLSocket will have this problem?

    Well! i will surely try my SWFxME project with this issue and report as soon as i can (i.e in 1-4 days ).One thing comes in my mind is the request per time of J2ME can be different from Symbian C++ becuase J2ME app is somewhat slower then C++ App.
    I checked the time taken at J2ME end is only around 5ms for a total request time of (50 ms in FL 2.0) and (1000ms in FL 3.1). So Java doesn't seem to be the problem, and its not that slow too.

  7. #7
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server


    Well! i will surely try my SWFxME project with this issue and report as soon as i can (i.e in 1-4 days ).One thing comes in my mind is the request per time of J2ME can be different from Symbian C++ becuase J2ME app is somewhat slower then C++ App.
    Well I tried some more tests with various combination and here are the results.

    J2ME http server + FL 2.0 player on same phone(E51) - No problems
    J2ME http server + FL 3.1 player on same phone(5800XM) - UI freeze and request lag for 1sec
    JARPA + FL3.1 player on same phone (5800XM)- UI freeze and request lag for 1sec
    FL3.1 player sending http request to PC(Java Servlet) over WLAN (5800XM)- No problems
    FL3.1 player socket connection to PC(Java socket server) over WLAN (5800XM)- UI freeze and request lag for 1sec

  8. #8
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Performance issues when polling a local http server

    Well! My tests are very strange.
    1- No matter what is the difference between ur each http request from flash lite client. It hangs UI for 1 (or 1.5) sec on each http request.
    2- Tested with SWFxME , Pys60 local http server & Symbian C++ local http server on Flash Lite 3.0 (N5800) .And results are quite same. It hangs Flash UI for 1 (or 1.5) sec. Obviously, in all tests Client and Server are running on the same device.
    3- It is somewhat telling that the loadVariable or sendAndLoad apis are behaving in a Synchronous way in Flash Lite 3.0 unlike Flash Lite 2.x .


    Best Regards,
    SajiSoft

  9. #9
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server

    Quote Originally Posted by sajisoft View Post
    Well! My tests are very strange.
    1- No matter what is the difference between ur each http request from flash lite client. It hangs UI for 1 (or 1.5) sec on each http request.
    2- Tested with SWFxME , Pys60 local http server & Symbian C++ local http server on Flash Lite 3.0 (N5800) .And results are quite same. It hangs Flash UI for 1 (or 1.5) sec. Obviously, in all tests Client and Server are running on the same device.
    3- It is somewhat telling that the loadVariable or sendAndLoad apis are behaving in a Synchronous way in Flash Lite 3.0 unlike Flash Lite 2.x .


    Best Regards,
    SajiSoft
    Yes, this is really a hard bug to crack, I hope Nokia comes out with an update soon for this, the problem is in http and also sockets when polling local and only sockets when querying external.
    The UI hang up makes it worse, otherwise this was still a manageable issue.
    Have you tested with Kunerilite with FL3.x players?

  10. #10
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server


    Actually, i heard from few developers on this dibo that this issue is not there for XML SOCKET SERVER and Yes Jarpa provides XML SOCKET SERVER for communication between Flash Lite and JavaME. So, u can give it a try .
    I have even tried XML SOCKET SERVER(JARPA) with FL3.1 and there is still the UI FREEZE PROBLEM with 1second delay, has anyone got this combination working with Flash Lite 3.1 player?

  11. #11
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Performance issues when polling a local http server

    No! i didnt tested it with Kuneri Lite yet.
    Quote Originally Posted by KevinBoyd View Post
    I have even tried XML SOCKET SERVER(JARPA) with FL3.1 and there is still the UI FREEZE PROBLEM with 1second delay, has anyone got this combination working with Flash Lite 3.1 player?
    According to redfuse post , he was able to run xml socket server without a delay. Read here :
    http://discussion.forum.nokia.com/fo...d.php?t=184419
    i.e
    By the way, didn't you have a problem with a delay of 1 second between data from python to FL? Because I'm not having that, accelerodata flows through rapidly! Or was that maybe because you used a local http server instead of an XML server?
    You can try sending him a message. He is using 5800 XM too.

    Btw, i m not able to run xml socket server without a delay via Python in Flash Lite 3.0.

    Best Regards,
    SajiSoft

  12. #12
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server

    Quote Originally Posted by sajisoft View Post
    According to redfuse post , he was able to run xml socket server without a delay. Read here :
    http://discussion.forum.nokia.com/fo...d.php?t=184419
    i.e

    You can try sending him a message. He is using 5800 XM too.

    Btw, i m not able to run xml socket server without a delay via Python in Flash Lite 3.0.

    Best Regards,
    SajiSoft
    I have sent redfuse a message, hope he replies with some good news, since you have already tested out python socket server with FL3.0 I won't retest the same on FL3.1

  13. #13
    Registered User
    Join Date
    Mar 2005
    Posts
    7

    Re: Performance issues when polling a local http server

    Hi. I developed own Symbian C++ http server to communicate with Flashlite.
    And experiencing the same issues while using XML.sendAndLoad.
    This is quite irritating to see flash freeze for a second.
    My application with the issue is unusable. This is very sad that Adobe didn't
    fix such evident case for a while.

  14. #14
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    353

    Re: Performance issues when polling a local http server

    Quote Originally Posted by RomanPO View Post
    Hi. I developed own Symbian C++ http server to communicate with Flashlite.
    And experiencing the same issues while using XML.sendAndLoad.
    This is quite irritating to see flash freeze for a second.
    My application with the issue is unusable. This is very sad that Adobe didn't
    fix such evident case for a while.
    Welcome to FlashLite RomanPO!
    In fact I contacted Adobe(Mark Doherty)and as per that its Nokia's problem, something went wrong in the integration.
    I even download the latest FL 3.1.4 release and also updated my Nokia 5800XM to the latest firmware but the issue has not been resolved yet. Let's hope Nokia releases an update soon to solve this bug.

  15. #15
    Registered User
    Join Date
    Jan 2010
    Posts
    18

    Re: Performance issues when polling a local http server

    Hi,

    i have implemented SimpleHttpServer using RSocket for connection between FlashLite 3.1. application. In the application, several images are loaded (with MovieClipLoader) from local http server which runs on 127.0.0.1 (KInetAddrLoop). Everything is working fine, but when i try to load images asynchronously, only first image is loaded and there is also only one request to local server. If i change IP adress to external interface (WLAN or modem, eg. 10.10.1.200), images are loaded properly.

    Anyone with some answers?

Similar Threads

  1. HTTP Post problem on Symbian 9.2 - TCP stuck?
    By bgenady in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-08-04, 19:33
  2. Mobile learning server / environment published
    By mikaset in forum News and Announcements
    Replies: 0
    Last Post: 2008-03-25, 20:50
  3. 6630 S60: Browser is unable to connect to local http server
    By schulze.holger in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-05-24, 06:37
  4. Using HTTP POST & Nokia 6600 to upload octet stream to server
    By ssandor in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-09-19, 11:00
  5. ping server or http server
    By bullzi in forum Symbian
    Replies: 1
    Last Post: 2004-12-28, 15:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×