Good finding, that matches our observations as well... Maybe the option should be turned on by default?
On Fri, Mar 1, 2013 at 12:51 AM, Dariya Blagaya <[email protected]> wrote: > We solved this problem. Hibernate use reflection during initialization > process, but reflection depends on reading files from file system. > > It seems that in GAE there is a problem with reading files (including > .class files) and sometimes this process can be quite long. > > The solution is very simple - to pack all compiled files to jar and deploy > project like one file. In GAE SDK 1.7.4. there is an opportunity to deploy > project by command file (by appcfg) as one jar using --enable_jar_classes > flag. > > Now everything work absolutely correct without random performance > collapses. > > Понеділок, 18 лютого 2013 р. 11:51:46 UTC+2 користувач Oleg Bashtenko > написав: > >> Hi! >> I'm using CloudSQL with Hibernate (v 4.1.7), and sometimes opening new >> connection to CloudSQL takes too much time. More specific, the problem is >> in initialization of Bytecode provider. Usually it takes about 5 seconds, >> but sometimes up to 40-50 seconds! This problem causes >> DeadlineExceededException for such requests. I was unable to find any >> information regarding this type of problem. >> >> Could someone please help me with this problem? Our app id is >> "teamwork-ms". >> >> Here is a part of the log entry (notice the time for records in bold): >> I2013-02-13 22:15:17.586 >> com.teamwork.tms.server.api.**WarmupServlet init: Initiate Google >> CloudSQL database connection on startup >> I2013-02-13 22:15:20.761 >> org.hibernate.annotations.**common.Version <clinit>: HCANN000001: >> Hibernate Commons Annotations {4.0.1.Final} >> I2013-02-13 22:15:20.865 >> org.hibernate.Version logVersion: HHH000412: Hibernate Core {4.1.7.Final} >> I2013-02-13 22:15:20.871 >> org.hibernate.cfg.Environment <clinit>: HHH000206: hibernate.properties >> not found >> I*2013-02-13 22:15:20.876* >> *org.hibernate.cfg.Environment buildBytecodeProvider: HHH000021: >> Bytecode provider name : javassist* >> W*2013-02-13 22:16:11.152* >> *org.hibernate.mapping.RootClass checkCompositeIdentifier: HHH000038: >> Composite-id class does not override equals(): com.teamwork.tms.server.sql_ >> entities.auxiliary.pk.ApplicationCompanyScopePK* >> W2013-02-13 22:16:11.153 >> org.hibernate.mapping.**RootClass checkCompositeIdentifier: HHH000039: >> Composite-id class does not override hashCode(): >> com.teamwork.tms.server.sql_**entities.auxiliary.pk.** >> ApplicationCompanyScopePK >> >> Thanks in advance! >> >> -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-appengine?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
