Only 5 :) But your first point could explain things... I probably have a few too many 3rd party jars in my war. Will look for unnecessary ones.
But to be even more pro-active, is there a way we can tell it what bundles to load? So it can skip all the jar searching? Especially since it does enhancement before hand, it should write out a manifest of exactly which classes need to have metadata constructed. _or_ (haha) the metadata could be pre-built as well. On Jan 6, 1:02 pm, "Max Ross (Google)" <maxr+appeng...@google.com> wrote: > 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 <todd.lind...@gmail.com> 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 <to...@google.com> 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 <schwa...@google.com> > > wrote: > > > > Have you tried enabling offline precompilation? > > > > > On Tue, Jan 5, 2010 at 8:52 AM, Todd Lindner <todd.lind...@gmail.com > > >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 > > > >> google-appengine-j...@googlegroups.com. > > > >> To unsubscribe from this group, send email to > > > >> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B > > > >> unsubscr...@googlegroups.com><google-appengine-java%2B > > unsubscr...@googlegroups.com> > > > >> . > > > >> 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 > > > > google-appengine-j...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B > > > > unsubscr...@googlegroups.com><google-appengine-java%2B > > unsubscr...@googlegroups.com> > > > > . > > > > 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 > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B > > unsubscr...@googlegroups.com> > > . > > 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.