[appengine-java] Re: Slow cold starts
I noticed similar behavior. I think the auto setting for minimum number of instances changed from two to zero active instances. I changed from auto to one, and my app is much more responsive. setting minimum instances higher will co$t you more On Feb 25, 9:36 am, Anders blabl...@gmail.com wrote: In the recent weeks the cold starts for Java apps have started to take a long time in my experience. More than three seconds to load a webpage is too long generally for a high quality end user experience. I assume it happens when the physical GAE servers become too crowded resulting in sluggish cold start loading of apps from the file system (and/or maybe because of delays in the distributed file system itself). -- 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-java@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.
[appengine-java] Re: Slow cold starts
Thanks. The app no longer has billing enabled (needed to be able to adjust minimum instances), but that could be worth trying. On Sunday, February 26, 2012 2:26:00 PM UTC+1, Mike Lawrence wrote: I noticed similar behavior. I think the auto setting for minimum number of instances changed from two to zero active instances. I changed from auto to one, and my app is much more responsive. setting minimum instances higher will co$t you more On Feb 25, 9:36 am, Anders blabl...@gmail.com wrote: In the recent weeks the cold starts for Java apps have started to take a long time in my experience. More than three seconds to load a webpage is too long generally for a high quality end user experience. I assume it happens when the physical GAE servers become too crowded resulting in sluggish cold start loading of apps from the file system (and/or maybe because of delays in the distributed file system itself). -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/7bbVZyuD5oAJ. To post to this group, send email to google-appengine-java@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.
[appengine-java] publishing html files
Hie I am generated html documents using a google text doc as template (reading it using gdata apis and then doing some text manipulation). Now, I want to publish these documents somewhere so that I can refer to others giving the url of the document (which means it would be publicly accessible). Any suggestions on how do i go about it? Like where should i host these? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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-java@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.
[appengine-java] Whats going on With App Engine?? Feb 24th 7PM EST
All of sudden all requests to my instance are erroring out. This particular instance has was last deployed 12 days ago and there were no issues until today Feb 24 7PM EST. From the logs it appears all request are timing out. Even non-data store operations that are simply initializing the app. 1. 1. I 2012-02-24 14:34:13.099 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application. 2. W2012-02-24 14:34:13.099 A serious problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you may be throwing exceptions during the initialization of your application. (Error code 104) 2012-02-24 14:34:13.085 Uncaught exception from servlet com.google.apphosting.runtime.HardDeadlineExceededError: This request (c38331d5991489e3) started at 2012/02/25 00:31:30.512 UTC and was still executing at 2012/02/25 00:34:11.785 UTC. at com.google.appengine.runtime.Request.process-c38331d5991489e3(Request.java) at java.security.AccessController.doPrivileged(Native Method) at java.io.FilePermission.init(FilePermission.java:200) at java.io.FilePermission.init(FilePermission.java:266) at sun.net.www.protocol.file.FileURLConnection.getPermission(FileURLConnection.java:215) at sun.misc.URLClassPath.check(URLClassPath.java:487) at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:1257) at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:1238) at sun.misc.URLClassPath.findResource(URLClassPath.java:202) at java.net.URLClassLoader$2.run(URLClassLoader.java:379) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:376) at java.lang.ClassLoader.getResource(ClassLoader.java:977) at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159) at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.tailor(AccessorInjector.java:113) at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:79) at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:114) at com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.optimize(Accessor.java:369) at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.init(SingleElementLeafProperty.java:81) at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:33) at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124) at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.init(ClassBeanInfoImpl.java:175) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:490) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:509) at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.init(SingleElementNodeProperty.java:101) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:33) at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124) at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.init(ClassBeanInfoImpl.java:175) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:490) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:509) at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.init(ArrayElementProperty.java:108) at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.init(ArrayElementNodeProperty.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:33) at
[appengine-java] java.lang.NoClassDefFoundError
I get this message when I deploy my app to appspot instance: Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please reporthttp://code.google.com/appengine/community.html your problem and mention this error message and the query that caused it. In the logs I see Uncaught exception from servlet java.lang.NoClassDefFoundError: com/aawhere/trailNetwork/track/dispatch/GetEncodedPathAction at com.aawhere.trailNetwork.dependencyInjection.guice.DispachHandlerModule.configureHandlers(DispachHandlerModule.java:26) at com.gwtplatform.dispatch.server.guice.HandlerModule.configure(HandlerModule.java:97) at com.google.inject.AbstractModule.configure(AbstractModule.java:59) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223) at com.google.inject.spi.Elements.getElements(Elements.java:101) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103) at com.google.inject.Guice.createInjector(Guice.java:95) at com.google.inject.Guice.createInjector(Guice.java:72) at com.google.inject.Guice.createInjector(Guice.java:62) at com.aawhere.trailNetwork.dependencyInjection.guice.AppGuiceServletContextListener.getInjector(AppGuiceServletContextListener.java:11) at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:202) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:171) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123) at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:422) at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455) at com.google.tracing.TraceContext.runInContext(TraceContext.java:695) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453) at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251) at java.lang.Thread.run(Thread.java:679) I've confirmed that the war sent to appspot contains the path. The war runs locally just fine. Infact I just had the app running on appspot and made one trivial change and this happened. Any ideas? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/XD5fLX8uoloJ. To post to this group, send email to google-appengine-java@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.
[appengine-java] Working with images in app engine
the problem I am is I am getting error wen I use - Image oldImage = ImagesServiceFactory.makeImageFromBlob(Blob_Key_of_Image);. The error is 'No image data available' even though the image exists in the blobstore. Please help me out. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/jmrepOUOJnEJ. To post to this group, send email to google-appengine-java@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.
[appengine-java] Re: Working with images in app engine
Can you provide a longer code snippet of what you're trying to do? On Monday, 27 February 2012 00:17:29 UTC+11, siddharth kanojiya wrote: the problem I am is I am getting error wen I use - Image oldImage = ImagesServiceFactory.makeImageFromBlob(Blob_Key_of_Image);. The error is 'No image data available' even though the image exists in the blobstore. Please help me out. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/uSqcul3c96AJ. To post to this group, send email to google-appengine-java@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.
[appengine-java] Re: Slow cold starts
From my experience, an app without billing enabled will encounter many many slow cold starts. That is why although my app visits is small but I still made my app billing enabled. But today, there are suddenly many cold starts again on my app even if it is billing enabled. On Feb 27, 12:30 am, Anders blabl...@gmail.com wrote: Thanks. The app no longer has billing enabled (needed to be able to adjust minimum instances), but that could be worth trying. On Sunday, February 26, 2012 2:26:00 PM UTC+1, Mike Lawrence wrote: I noticed similar behavior. I think the auto setting for minimum number of instances changed from two to zero active instances. I changed from auto to one, and my app is much more responsive. setting minimum instances higher will co$t you more On Feb 25, 9:36 am, Anders blabl...@gmail.com wrote: In the recent weeks the cold starts for Java apps have started to take a long time in my experience. More than three seconds to load a webpage is too long generally for a high quality end user experience. I assume it happens when the physical GAE servers become too crowded resulting in sluggish cold start loading of apps from the file system (and/or maybe because of delays in the distributed file system itself). -- 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-java@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.