[appengine-java] Re: Error 500 - Loading data to memory during startup

2009-10-26 Thread Jason (Google)
We are working on enhancements that will hopefully reduce this
initialization time for cold instances, which should be rolled out with the
next couple of releases. There are several other threads on this, and we
definitely recognize the importance and appreciate your patience.

Regarding the first post, if your file is so large that it takes 80 seconds
to load it into the development server, I suggest re-structuring your
application to remove this dependency. Even with the planned enhancements,
it's unlikely that you'll be able to load such the complete file into main
memory without hitting the 30 second deadline or triggering an out-of-memory
exception.

- Jason

On Fri, Oct 23, 2009 at 6:06 PM, trung tr...@phamcom.com wrote:


 Yeah,
 AppEngine drops your request after 30 seconds.

 My app takes 20 seconds to initialize in development, and half of the
 times it will finish loading within 30 seconds. Other times it goes
 pass 30 seconds and gets the same 500 error like yours.

 Google needs to make an exception for the initial cold boot timeout.

 On Oct 18, 1:57 pm, Joe Prasanna kumar joebi.m...@gmail.com wrote:
  Hi,
  I am working with my friend to build an app (hoogentia.appspot.com)
 which
  requires loading some learned model files to memory. I have a startup
  servlet that does this (loading model files to memory). Since it needs
 more
  mem, I run this app in dev mode with memory setting of -Xms1024m
 -Xmx2048m. I
  dont have any issues in development but when i deploy it to app engine
 and
  access my application, the startup servlet is invoked and it comes up
 with
  an Error 500. I am not getting any useful info from the logs. I am
 assuming
  the issue is with jvm settings for app engine in production. I looked at
  this thread (
 http://groups.google.com/group/google-appengine-java/browse_thread/th...)
  and modified appcfg.sh to
  java -Xmx2000m -cp $SDK_LIB/appengine-tools-api.jar \
  com.google.appengine.tools.admin.AppCfg $* 
 
  After doing an update, I still get the 500 Error.
  In dev mode, it takes like 80 seconds for the model to get loaded in
 memory.
 
  Any thoughts / help / suggestions greatly appreciated,
  thanks
  Joe.
 


--~--~-~--~~~---~--~~
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: Error 500 - Loading data to memory during startup

2009-10-23 Thread trung

Yeah,
AppEngine drops your request after 30 seconds.

My app takes 20 seconds to initialize in development, and half of the
times it will finish loading within 30 seconds. Other times it goes
pass 30 seconds and gets the same 500 error like yours.

Google needs to make an exception for the initial cold boot timeout.

On Oct 18, 1:57 pm, Joe Prasanna kumar joebi.m...@gmail.com wrote:
 Hi,
 I am working with my friend to build an app (hoogentia.appspot.com) which
 requires loading some learned model files to memory. I have a startup
 servlet that does this (loading model files to memory). Since it needs more
 mem, I run this app in dev mode with memory setting of -Xms1024m -Xmx2048m. I
 dont have any issues in development but when i deploy it to app engine and
 access my application, the startup servlet is invoked and it comes up with
 an Error 500. I am not getting any useful info from the logs. I am assuming
 the issue is with jvm settings for app engine in production. I looked at
 this thread 
 (http://groups.google.com/group/google-appengine-java/browse_thread/th...)
 and modified appcfg.sh to
 java -Xmx2000m -cp $SDK_LIB/appengine-tools-api.jar \
     com.google.appengine.tools.admin.AppCfg $* 

 After doing an update, I still get the 500 Error.
 In dev mode, it takes like 80 seconds for the model to get loaded in memory.

 Any thoughts / help / suggestions greatly appreciated,
 thanks
 Joe.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---