RE: [flexcoders] Re: Very slow initial load and an excessive CPU usage during startup
>> It takes several minutes for the application to return and display the data for the logged in user. > determine if the issue is data transfer (doubtful) or rendering(probable) First be certain that the initial data transfer is quick. Put a breakpoint in the result handler and see whether you hit it quickly. What kind of UI elements, and how many of them, are you creating to render the user data? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yevgeniy.galper Sent: Wednesday, September 12, 2007 1:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Very slow initial load and an excessive CPU usage during startup I did search for creationPolicy="all" in all files, but I did not find anything, so I believe creationPolicy is not set to "all". How would I go about timing the initialization functionality? Thanks, Yevgeniy --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Did you set creationPolicy="all" anywhere? > > > > time the initialization functionality to determine if the issue is data > transfer (doubtful) or rendering(probable) > > Tracy > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of yevgeniy.galper > Sent: Wednesday, September 12, 2007 2:58 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Very slow initial load and an excessive CPU usage > during startup > > > > I am using Flex front end and Java/Hibernate for DB communication. > When the application starts up fast and a login screen is displayed. > After a user logs in the application logs in I get an Alert within a > second or two confirming that the login information was correct and a > user with a certain ID is logged in. After that the user info page is > displayed, but it is not populated with user related info. It takes > several minutes for the application to return and display the data for > the logged in user. During this whole period of time CPU usage is at > 100% on the machine. After the initial wait of several minutes the > application functions blazing fast. All kinds of DB retrievals and > updates are fast, but if another user logs in it takes several minutes > again. WHY??? > > I do not have a lot of data in the DB, just some test data, so that > could not be effecting such a slow initial load. > > I have spent several days trying different things, like turning on and > off lazy loading, but it does not seem to make a difference. > > Please, help >
RE: [flexcoders] Re: Very slow initial load and an excessive CPU usage during startup
If you're using Moxie, the next beta will have a performance profiler. In 2.x, you can listen to LayoutManager for "updateComplete" events and see how many you get and how far apart they are. If you get a lot of them, then something in your app is constantly invalidating the UI and you have to figure out what and where. If you get only a few, maybe you are receiving a huge chunk of data from the server that needs processing/conversion. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yevgeniy.galper Sent: Wednesday, September 12, 2007 1:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Very slow initial load and an excessive CPU usage during startup I did search for creationPolicy="all" in all files, but I did not find anything, so I believe creationPolicy is not set to "all". How would I go about timing the initialization functionality? Thanks, Yevgeniy --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Did you set creationPolicy="all" anywhere? > > > > time the initialization functionality to determine if the issue is data > transfer (doubtful) or rendering(probable) > > Tracy > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of yevgeniy.galper > Sent: Wednesday, September 12, 2007 2:58 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Very slow initial load and an excessive CPU usage > during startup > > > > I am using Flex front end and Java/Hibernate for DB communication. > When the application starts up fast and a login screen is displayed. > After a user logs in the application logs in I get an Alert within a > second or two confirming that the login information was correct and a > user with a certain ID is logged in. After that the user info page is > displayed, but it is not populated with user related info. It takes > several minutes for the application to return and display the data for > the logged in user. During this whole period of time CPU usage is at > 100% on the machine. After the initial wait of several minutes the > application functions blazing fast. All kinds of DB retrievals and > updates are fast, but if another user logs in it takes several minutes > again. WHY??? > > I do not have a lot of data in the DB, just some test data, so that > could not be effecting such a slow initial load. > > I have spent several days trying different things, like turning on and > off lazy loading, but it does not seem to make a difference. > > Please, help >
[flexcoders] Re: Very slow initial load and an excessive CPU usage during startup
I did search for creationPolicy="all" in all files, but I did not find anything, so I believe creationPolicy is not set to "all". How would I go about timing the initialization functionality? Thanks, Yevgeniy --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Did you set creationPolicy="all" anywhere? > > > > time the initialization functionality to determine if the issue is data > transfer (doubtful) or rendering(probable) > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of yevgeniy.galper > Sent: Wednesday, September 12, 2007 2:58 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Very slow initial load and an excessive CPU usage > during startup > > > > I am using Flex front end and Java/Hibernate for DB communication. > When the application starts up fast and a login screen is displayed. > After a user logs in the application logs in I get an Alert within a > second or two confirming that the login information was correct and a > user with a certain ID is logged in. After that the user info page is > displayed, but it is not populated with user related info. It takes > several minutes for the application to return and display the data for > the logged in user. During this whole period of time CPU usage is at > 100% on the machine. After the initial wait of several minutes the > application functions blazing fast. All kinds of DB retrievals and > updates are fast, but if another user logs in it takes several minutes > again. WHY??? > > I do not have a lot of data in the DB, just some test data, so that > could not be effecting such a slow initial load. > > I have spent several days trying different things, like turning on and > off lazy loading, but it does not seem to make a difference. > > Please, help >