Skip navigation
jigaroza.rightway
Currently Being Moderated

Flex or AIR application is slowed down after continuous usage.

Apr 16, 2013 11:25 PM

Hello,

 

I am facing two issues one each in Flex application and AIR application.

 

1. First in Flex application.

 

I have developed an Flex application in Flex 4.0 and is being used by around 10 to 15 users simultaneously.

 

Now the problem is that when all the users start use of the application in the morning, it is running perfectly. But after usage of 3 or 4 hours, or let's say after lunch its speed is gettling slow. And due to low speed, application behaves abnormally. For example, I am calling multiple php files one by one through http service in one of the screens. And those php calls are dependent on each other. So due to low speed step 2 php call is over before the step 1 php call. And due to that application can't set the screen as per its normal behaviout.

 

And this problem stays even after user clears the browser cache.

 

So I am assuming that even after clearing browser cache flash player is not removing all the cache or something is still there on the server which is causing slow speed of the application. Because when next day users come to office and use the application they don't face such issues. Such issues are coming only after continuous usage of it.

 

 

So please help me in solving this issue ASAP. Because our client is getting angry over this issue.

 

 

2. AIR Application issue

 

I have developed an AIR application which is using socket connection to use different designer softwares like In Design, Illustrator etc.

 

Now sometimes happens that due to low speed of machine or internet my socket connection didn't get time to connect to some design softwares. So I have put a code that checks if the connection is lost then it reconnects it. But this connection lost problem starts coming after heavy usage of the application.

 

And the second problem is regarding drag and drop. When I do continuous drag and drop of images of around 70 to 80 images, I get memory over error from the machine stating that please close the application as there is no memory available now.

 

So please suggest a solution for this ASAP as our client will need to do lots of drag and drop operations and lots of socket connection to design software during the day.

 

Thanks & Regards,

Jigar Oza

 
Replies
  • Currently Being Moderated
    Apr 17, 2013 10:51 AM   in reply to jigaroza.rightway

    I think you need to use the profiler on your applications and check for memory leaks.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2013 10:21 PM   in reply to jigaroza.rightway

    Finding memory leaks is a difficult task.  It basically requires chasing down the back-references.  I can try to help if you post screenshots of the profiler.  You can obfuscate names if you want.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 19, 2013 12:21 PM   in reply to jigaroza.rightway

    OK, so the next step is to find an instance that you think should have gone away and post the profiler screen that shows the backreferences.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 21, 2013 11:32 PM   in reply to jigaroza.rightway

    Take a memory snapshot, open it and examine the backreferences.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points