DataNucleus has an internal plugin mechanism that spins through all the jars on the classpath looking for bundles to load. This can certainly take some time. Construction of metadata is also pretty involved, but the amount of time that takes should be proportional to the number of enhanced classes you have. How many do you have?
On Wed, Jan 6, 2010 at 4:36 AM, Todd Lindner <[email protected]> wrote: > @Don - yes > > @Toby - yes on the dev appserver the first request also takes about 6 > seconds. Watching the info log I see it finishes initialization of my > servlet after 1.5 seconds and then starts up the datanucleus > initialization, which takes about 4-5 seconds. Attaching a profiler > is a good idea and I will do it tonight but I'm 99% sure the hotspots > will be in org.datanucleus packages, which is why I was posting here > to hopefully find the ear of Max Ross or the like... > > > On Jan 5, 12:56 pm, Toby Reyelts <[email protected]> wrote: > > Also, can you duplicate the slowness in the dev_appserver? If so, you can > > hook up a profiling tool yourself and see if there are any obvious > hotspots. > > > > > > > > On Tue, Jan 5, 2010 at 12:44 PM, Don Schwarz <[email protected]> > wrote: > > > Have you tried enabling offline precompilation? > > > > > On Tue, Jan 5, 2010 at 8:52 AM, Todd Lindner <[email protected] > >wrote: > > > > >> Since Google App Engine will power down the app if there aren't any > > >> requests for ~10 minutes, it has to re-initialize your application > > >> often. Not a problem.... I was able to trim my app init down to > > >> about 1.5 seconds, so its reasonable, but datanucleus itself takes > > >> about 5 seconds on top of that (and I only have 5 persistent > > >> entities!). This is a real drag on my app and I almost want to keep > > >> it awake with a pinger... > > > > >> Any way to speed up initialization? I'm using JPA. > > > > >> Thanks > > >> -Todd > > > > >> -- > > > > >> You received this message because you are subscribed to the Google > Groups > > >> "Google App Engine for Java" group. > > >> To post to this group, send email to > > >> [email protected]. > > >> To unsubscribe from this group, send email to > > >> [email protected]<google-appengine-java%[email protected]><google-appengine-java%2B > [email protected]> > > >> . > > >> For more options, visit this group at > > >>http://groups.google.com/group/google-appengine-java?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine for Java" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine-java%[email protected]><google-appengine-java%2B > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > > >--
You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
