Professional Web Applications Themes

HttpService: first invocation very slow - Macromedia Flex General Discussion

Hi all, I searched the forums a bunch for this one but couldn't find anything. Here goes: I am using FlexBuilder 3.0 to write an app that uses HttpService to call pre-compiled JSPs on BEA WebLogic 8.1, running on my localhost. When I run my Flex app through the IDE, the very first HttpService call takes nearly a minute before it even reaches the server. Every subsequent call is very fast. The first invocation performance also seems to be slightly better when I run the app outside of FlexBuilder. As mentioned the JSPs are all precompiled. From this and the ...

  1. #1

    Default HttpService: first invocation very slow

    Hi all,
    I searched the forums a bunch for this one but couldn't find anything. Here
    goes:

    I am using FlexBuilder 3.0 to write an app that uses HttpService to call
    pre-compiled JSPs on BEA WebLogic 8.1, running on my localhost. When I run my
    Flex app through the IDE, the very first HttpService call takes nearly a minute
    before it even reaches the server. Every subsequent call is very fast. The
    first invocation performance also seems to be slightly better when I run the
    app outside of FlexBuilder.

    As mentioned the JSPs are all precompiled. From this and the server logs I am
    nearly 100% positive the latency is not server-side. It's like there's some
    kind of built-in latency in the very first HTTP call made from the Flex client,
    at least when run via FlexBuilder. Note that I've tried this with both
    http.HttpService and http.mxml.HttpService - same results.

    Anyone encounter this and/or know how to fix it? It's making my
    development/test cycle extremely slow.

    Thanks!!
    -Noah


    ngleh Guest

  2. #2

    Default Re: HttpService: first invocation very slow

    The only thing I can think of is something is being cached. Debugging/tracing code can also slow down invocations.
    EDendramis Guest

  3. #3

    Default Re: HttpService: first invocation very slow

    Hmmmm.....I have no trace() statements. Are there any other kinds of debug statements, or maybe IDE settings, that I may have missed?

    Thanks,
    -Noah

    ngleh Guest

  4. #4

    Default Re: HttpService: first invocation very slow

    Is it possible that the HTTPService is being called while the application is
    still rendering? How are the HTTPServices getting sent? Like are you waiting
    for the application to load and then pressing a button to send the web service?

    EDendramis Guest

  5. #5

    Default Re: HttpService: first invocation very slow

    It's the load/press scenario you describe - well after creationComplete.

    ngleh Guest

  6. #6

    Default Re: HttpService: first invocation very slow

    I figured it out - it was all on my side: misconfigured IE. Thanks for
    helping on this. One thing I've learned is that it's important to pay
    attention to IE settings when you're doing dev work :-)

    Thanks,
    -Noah


    ngleh Guest

Similar Threads

  1. AxisFault errors in Web Service Invocation
    By cflenster in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: July 7th, 09:21 PM
  2. Method invocation arrow (LPORM)
    By Jan Eden in forum PERL Beginners
    Replies: 10
    Last Post: February 9th, 03:40 PM
  3. Replacement for PerlCOM.Script invocation
    By David Jameson in forum PERL Beginners
    Replies: 0
    Last Post: December 4th, 12:35 AM
  4. Is there any Web Services Invocation Framework for .NET
    By NoSpammingToMePlease@bahnhofbredband.se in forum ASP.NET Web Services
    Replies: 0
    Last Post: October 11th, 03:41 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139