Re: [appengine-java] Re: Slow cold starts
Even we are finding these slow cold starts, very similar to what Jeff described earlier. Can someone from Google please respond? Thanks, Arun From: Anders Testson To: google-appengine-java@googlegroups.com Sent: Friday, 9 March 2012 7:24 PM Subject: Re: [appengine-java] Re: Slow cold starts That totally sucks. I can understand that it takes up more resources to have an app always loaded in an instance but when minimum instances is set, then it should mean that the app is kept in memory. If what you write is true (and I guess it is since nobody from Google has objected to it) then Google is not fulfilling what they themselves claim: "Because App Engine keeps idle instances in reserve, it is unlikely that requests will enter the pending queue except in exceptionally high load spikes." http://code.google.com/appengine/docs/adminconsole/performancesettings.html On Thursday, March 8, 2012 10:10:03 PM UTC+1, Mark Rathwell wrote: Just wanted to follow up on this: >Idle instances set to 1: 7 of 10 requests were loading requests (20-30 >seconds) >Idle instances set to 2: 3 of 9 requests were loading requests (and >cost was about 4 times as much) >This is a test app, with no other traffic, no new versions uploaded, >etc., and these requests were about once a day for the last few weeks. > I'm giving up on finding a setting that will mimic always on for low >traffic apps, and just setting up a cron job to ping the apps >regularly. > > -- 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/-/ly0xBCd9rVkJ. 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. -- 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.
Re: [appengine-java] Re: Datastore Admin
Even I see this problem occurring - when you click on the Datastore Admin link, nothing shows up. I wonder if it is a bug with the URL (I can see an & immediately after the ?): https://appengine.google.com/datastore/admin?&app_id=XXX&version_id=XXX. Thanks, Arun From: Shash Joshi To: google-appengine-java@googlegroups.com Sent: Wednesday, 12 October 2011 11:40 PM Subject: [appengine-java] Re: Datastore Admin Never mind I figured it out, if you have multiple GoogleApps or Google accounts then you need to go to the iframe URL directly and select the correct account and the data-store admin shows up. On Wed, Oct 12, 2011 at 11:02 AM, Shash Joshi wrote: I cannot get the data store admin to work for last 48 hrs, does anyone knows of any issues? -- 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. -- 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] All prices being shown as $0.00 under Billing History
Hi, All prices are being shown as $0.00 under the Billing History page on the admin. console as of 9:20pm PST. If this is not the correct forum to raise, please let me know. Thanks, Arun -- 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.
Re: [appengine-java] Re: How to create excel file in servlet for google app engine application?
We had a need for a simple (single-sheet) spreadsheet. So, I just generated a CSV output streamwith the following content-type or headers, and this works fine (at least in Firefox, where it opens the file in XLS). response.setContentType( "text/csv" ); response.addHeader( "Content-Disposition", "inline; filename=myfile.csv" ); I know "text/csv" to be a valid mime-type, but not "application/csv". Thanks, Arun From: Didier Durand To: Google App Engine for Java Sent: Tuesday, 6 September 2011 9:52 AM Subject: [appengine-java] Re: How to create excel file in servlet for google app engine application? Hi, Another way to do it is to use the spreadsheet api of Google Docs and send your users there (they can retrieve the web spreadsheet as a file if needed) See http://code.google.com/apis/spreadsheets/ regards didier On Sep 5, 7:57 pm, Marcelo Liberato wrote: > You should try Apache POI:http://poi.apache.org/ > > On Sep 5, 7:24 am, Sawan Darekar > wrote: > > > i am developing cloud application which is hosted on google app engine and > > in this i want to *generate excel file* on click of button through servlet. > > > i have done it on local machine but when i deploy my application on app > > engine it shows error HTTP Error 500 Internal server error > > > i am using *jxl java api* for generating excel file > > > code that i have used is here > > > try > > { > > > //i have used following content type but didn't worked. > > > //response.setContentType("application/vnd.ms-excel"); > > > //response.setContentType("application/x-ms-excel"); > > > response.setContentType("application/CSV"); > > > WritableWorkbook w = Workbook.createWorkbook(response.getOutputStream()); > > > WritableSheet s = w.createSheet("Demo", 0); > > > Label label = new Label(0, 2, "A label record"); > > > s.addCell(label); > > > w.write(); > > > w.close();} > > > catch (Exception e) > > { > > > response.getOutputStream().println("Exception :"+e);} > > > finally > > { > > > } > > > -- > > Thanks & Regards, > > Raj > > -- 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. -- 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.
Re: [appengine-java] Mutation pool bug?
Thank you, Stephen. This works. I could not locate this earlier in the mapreduce documentation. Regards, Arun From: Stephen Johnson To: google-appengine-java@googlegroups.com Sent: Sun, 16 January, 2011 1:33:31 AM Subject: Re: [appengine-java] Mutation pool bug? Do you have this defined in your mapper class? @Override public void taskCleanup(Context context) { try { // make sure to call super classes taskCleanup so that the DatastoreMutationPool // gets flushed properly otherwise puts/deletes can be lost; super.taskCleanup(context); } catch (Exception ex) { log.severe(ex.toString()); } } On Fri, Jan 14, 2011 at 11:34 PM, armanuj wrote: Hi, > >I had earlier posted an issue such as "out of mapper quota" earlier >(link below). I had about 260 entities being mapped (for a start), and >not entities were getting updated. I was using the mutation pool for >updates in the map routine. On further investigations, it appears that >the mutation pool flushes after every 100 entities in it, and does not >do so for the last batch of entities. Out of the 260 entities, >everytime 60 entities would NOT be updated, but 200 would be. This >appeared to be true even if your entity count was a multiple of 100 - >the last 100 were not getting updated. However, this issue does not >exist if I get rid of mutation pool, and put entities directly to the >datastore - all entities are updated always. > >Is this is a bug, or is there something I am not doing correctly with >mutation pools? The mutation pool code is fairly simple >(mutationPool.put(entity)) - just as in Ikai's mapper blog post. > >Appreciate your help with this. > >Regards, >Arun > >Earlier post: >http://groups.google.com/group/google-appengine-java/browse_thread/thread/fe7fd75e2fa19a7e/a94b0efc6e50c361?hl=en&lnk=gst&q=out+of+mapper+quota#a94b0efc6e50c361 > > >-- >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. > > -- 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. -- 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.
Re: [appengine-java] Implementing custom login
Spring Security is one good option for custom login implementation. Arun From: Stakka To: Google App Engine for Java Sent: Sat, 25 September, 2010 9:14:00 PM Subject: [appengine-java] Implementing custom login Anyone have tips on how to best implement custom login. Not forcing users to have an Google account. I've thought of two possible solutions: * Implement custom login in a Servlet Filter, thus replacing the standard servlet security model. * Implement an OpenID provider, then use Federated Login with only that provider. This will let me use the standard servlet security model and GAE build-in UserServices. Discuss... -- 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. -- 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.
Re: [appengine-java] Using the Python bulk exporter tool with a Java application
Seems like the account credentials you are using to login may not have admin privileges (i.e. should be a valid user/developer account in your app.), or there is some other authentication mechanism (e.g. spring security) that is invalidating the login. Arun From: John Patterson To: google-appengine-java@googlegroups.com Sent: Mon, 20 September, 2010 6:50:43 AM Subject: Re: [appengine-java] Using the Python bulk exporter tool with a Java application If you feel more comfortable working with Java, I use this code to bulk load and backup data: http://code.google.com/p/remote-datastore/ It intercepts the raw bytes sent to the local datastore and sends them to another remote datastore. Because it operates at this very low level it is very efficient. On 17 Sep 2010, at 12:23, megala dhinakaran wrote: i had created webappliccation project using java,I want to bulk load >the data in google app engine datastore,But it shows the following >error how to solve this > >appcfg.py create_bulkloader_config --filename=bulkloader.yaml -- >url=http://logchecking1.appspot.com/remote_api >appcfg.py:41: DeprecationWarning: the sha module is deprecated; use >the hashlib module instead > os.path.join(DIR_PATH, 'lib', 'antlr3'), >/home/crimson/Desktop/google_appengine/google/appengine/tools/ >dev_appserver_login.py:33: DeprecationWarning: the md5 module is >deprecated; use hashlib instead > import md5 >Creating bulkloader configuration. >[INFO] Logging to bulkloader-log-20100917.105157 >[INFO] Throttling transfers: >[INFO] Bandwidth: 25 bytes/second >[INFO] HTTP connections: 8/second >[INFO] Entities inserted/fetched/modified: 20/second >[INFO] Batch Size: 10 >[INFO] Opening database: bulkloader-progress-20100917.105157.sql3 >[INFO] Opening database: bulkloader-results-20100917.105157.sql3 >[INFO] Connecting to logchecking1.appspot.com/remote_api >[ERROR ] Exception during authentication >Traceback (most recent call last): > File "/home/crimson/Desktop/google_appengine/google/appengine/tools/ >bulkloader.py", line 3167, in Run > self.request_manager.Authenticate() > File "/home/crimson/Desktop/google_appengine/google/appengine/tools/ >bulkloader.py", line 1176, in Authenticate > remote_api_stub.MaybeInvokeAuthentication() > File "/home/crimson/Desktop/google_appengine/google/appengine/ext/ >remote_api/remote_api_stub.py", line 533, in MaybeInvokeAuthentication > datastore_stub._server.Send(datastore_stub._path, payload=None) > File "/home/crimson/Desktop/google_appengine/google/appengine/tools/ >appengine_rpc.py", line 336, in Send > f = self.opener.open(req) > File "/usr/lib/python2.6/urllib2.py", line 389, in open > response = self._open(req, data) > File "/usr/lib/python2.6/urllib2.py", line 407, in _open > '_open', req) > File "/usr/lib/python2.6/urllib2.py", line 367, in _call_chain > result = func(*args) > File "/usr/lib/python2.6/urllib2.py", line 1146, in http_open > return self.do_open(httplib.HTTPConnection, req) > File "/usr/lib/python2.6/urllib2.py", line 1121, in do_open > raise URLError(err) >URLError: >[INFO] Authentication Failed > >How to solve this? > >-- >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. > > -- 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. -- 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.