google-app-engine

Upload files to Google cloud storage from appengine app

旧时模样 提交于 2020-01-10 19:38:12
问题 I'm sure the answer to this question is easy, but for me it's proven to be very frustrating since I can't put any solution I've found into practical code for my own use. I'm building an app on the app engine that let's the user upload a file, which then gets acted on by the app. The size of the file is typically around a few Mbs, and in some cases upto maybe 20 Mb or so. This is enough to trigger the 30 second timeout in app engine, and I am therefore trying to upload to cloud storage

“ImportError: No module named pwd” but it exists

孤街醉人 提交于 2020-01-10 19:34:32
问题 I'm trying to test gae-boilerplate locally, but when I try to create a new account the following error appears. The strange thing is that if I open python interpreter and type "import pwd" it works. Internal Server Error The server has either erred or is incapable of performing the requested operation. Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2

When to use entity groups in GAE's Datastore

爷,独闯天下 提交于 2020-01-10 18:43:53
问题 Following up on my earlier question regarding GAE Datastore entity hierarchies, I'm still confused about when to use entity groups . Take this simple example: Every Company has one or more Employee entities An Employee cannot be moved to another Company , and users that deal with one Company can never see the Employee s of another Company This looks like a case where I could make Employee a child entity of Company , but what are the practical consequences? Does this improve scalability, hurt

Can i use HikariCP on Google App Engine

眉间皱痕 提交于 2020-01-10 15:53:53
问题 Looking around for a connection pool solution on App Engine, with Cloud SQL, multiple entries show up with the suggestion that HikariCP should work because it allows for an external ThreadFactory configuration. For example; JDBC connection pool compatible with App Engine Connection pool on app engine with Cloud SQL The configuration would be something like this: import com.google.appengine.api.ThreadManager; ... HikariConfig lConfig = new HikariConfig(); config.setThreadFactory(ThreadManager

Profiling memory usage on App Engine

余生长醉 提交于 2020-01-10 10:09:06
问题 How can I profile memory (RAM) usage on my App Engine app? I'm trying to address errors related to exceeding the instance memory limit. I've tried these things and, so far, they don't work or don't provide what I need. Appstats. This doesn't provide memory usage details. Apptrace. It hasn't been updated since 2012 and depends on a deprecated version of the SDK. Doesn't work out of the box. Appengine-profiler. Doesn't provide memory stats. Gae-mini-profiler, which uses cProfile. Doesn't

Profiling memory usage on App Engine

被刻印的时光 ゝ 提交于 2020-01-10 10:08:16
问题 How can I profile memory (RAM) usage on my App Engine app? I'm trying to address errors related to exceeding the instance memory limit. I've tried these things and, so far, they don't work or don't provide what I need. Appstats. This doesn't provide memory usage details. Apptrace. It hasn't been updated since 2012 and depends on a deprecated version of the SDK. Doesn't work out of the box. Appengine-profiler. Doesn't provide memory stats. Gae-mini-profiler, which uses cProfile. Doesn't

Profiling memory usage on App Engine

柔情痞子 提交于 2020-01-10 10:08:11
问题 How can I profile memory (RAM) usage on my App Engine app? I'm trying to address errors related to exceeding the instance memory limit. I've tried these things and, so far, they don't work or don't provide what I need. Appstats. This doesn't provide memory usage details. Apptrace. It hasn't been updated since 2012 and depends on a deprecated version of the SDK. Doesn't work out of the box. Appengine-profiler. Doesn't provide memory stats. Gae-mini-profiler, which uses cProfile. Doesn't

GAE python threads not executing in parallel

爱⌒轻易说出口 提交于 2020-01-10 08:27:08
问题 I am trying to create a simple web app using Python on GAE. The app needs to spawn some threads per request received. For this I am using python's threading library. I spawn all the threads and then wait on them. t1.start() t2.start() t3.start() t1.join() t2.join() t3.join() The application runs fine except for the fact that the threads are running serially rather than concurrently(confirmed this by printing the timestamps at the beginning/end of each thread's run() method). I have followed

Google App Engine and domain name

本秂侑毒 提交于 2020-01-10 08:24:24
问题 Here is the situation: I own a Google Apps for Business account. I have two domain names registered : mycompany.com which is the principal domain myapp.com which is another domain Note: both domains are validated and active. I'm working on a Google App Engine web application and I want it to be accessible via myapp.com or www.myapp.com . What I've done so far : I've added the GAE web application as a service in my Google Apps account. I've tried to change the url but myapp.com does'nt appear

What is the best way to profile/optimize google app engine application?

隐身守侯 提交于 2020-01-10 07:44:30
问题 Currently I am working on new App Engine application. Unfortunately it seems that my application uses to lot of resources even for relatively small user number. So I need to determine its bottle necks and optimize them. 回答1: Appstats: RPC Instrumentation for Google App Engine. It is being developed by Guido himself. alt text http://img130.imageshack.us/img130/526/timelinea.png EDIT : I believe AppStats will not work with Java, but there are some tips here. 回答2: The Eclipse plugin for the