[appengine-java] Selecting 100 records from 789 taking 2.5 seconds
What can I do to fix this? Please help. -- 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/-/QBzjCLIdv2IJ. 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: Can't get log4j working
make sure your log4j.properties gets copied to your classes directory when you build the application. You should need to use the system property to tell the application or web server where the file is so long as the location is on the classpath which WEB-INF/classes is. On Oct 15, 8:12 pm, Andrew Ducker and...@ducker.org.uk wrote: I have the default log4j.properties in the root of my src folder (which is then copied to the war/WEB-INF/classes folder automatically). I have this in my appengine-web.xml: system-properties property name=java.util.logging.config.file value=WEB-INF/ logging.properties/ property name=log4j.configuration value=WEB-INF/classes/ log4j.properties/ /system-properties If I do this: Logger logger = Logger.getRootLogger(); logger.warn(Testing!); then I get this: log4j:WARN No appenders could be found for logger (root). log4j:WARN Please initialize the log4j system properly. Any suggestions? Thanks, Andy -- 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: Can't get log4j working
On 16/10/2011 09:01, Martin Newstead wrote: make sure your log4j.properties gets copied to your classes directory when you build the application. Yup, it's there. Says: # A default log4j configuration for log4j users. # # To use this configuration, deploy it into your application's WEB-INF/classes # directory. You are also encouraged to edit it as you like. # Configure the console as our one appender log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n Any ideas why I'd be getting an error? Andy -- 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] Selecting 100 records from 789 taking 2.5 seconds
Hi, I'm not sure but have you enabled appstats? It can help you find out. On Sun, Oct 16, 2011 at 4:00 AM, keyvez key...@gmail.com wrote: What can I do to fix this? Please help. -- 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/-/QBzjCLIdv2IJ. 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. -- Bruno Fuster -- 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: Namespace not being set from google apps
I switched to using App Engine's inbuilt federated identity option and now even the above work around is not working. I am logged in properly but the namespace value is still blank and the value returned by the following method is also blank. I am trying to troubleshoot. com.google.apphosting.api.ApiProxy .getCurrentEnvironment() .getAttributes() .get( com.google.appengine.api.users.UserService.user_organization); -- 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/-/izmDWZsfrD8J. 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] Selecting 100 records from 789 taking 2.5 seconds
Thanks. I used it, and it pointed my out in the right direction, the problem was creating entitymanager in jpa, i switched to low-level datastore calls an its taking 0ms instead of 800ms. -- 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/-/5qrhQOZEqZ4J. 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: Which credentials should I put in for Google App Engine BulkLoader at JAVA development server?
I figured it out. It was a temporary issue. Undeploying, restarting the server and then deploying the application fixed the problem. Empty password with any email forks fine. I think that it w wasn't connected with SSL. On Oct 1, 1:43 pm, Mark Nuttall-Smith marknuttallsm...@gmail.com wrote: Hi, in theory you should be able to enter any credentials, as long as the username is a valid email address. In practice I've never found that this works - I would always get an Authentication Failed error. The solution in my case was to run an http proxy such as Charles in the background. Not sure this is entirely the same situation as you however, as your problem seems to be something to do with the SSL configuration - can you switch this off as well perhaps? -- 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.
[google-appengine] How to store bytecode in Python 2.7?
Hi all, As the documenthttp://code.google.com/intl/en/appengine/docs/python/python27/newin27.html#Bytecode_Modificationsays, in Python 2.7, no longer restricts access to Python bytecode. But I tried to compile a source code file, it raised an IOError: [Errno 13] Permission denied: import os import os.path import py_compile path = os.path.join(os.getcwd(), 'model.py') py_compile.compile(path) marshal is not working either: import os import os.path import marshal code = compile('1+1', 'string', 'eval') file = open(os.path.join(os.getcwd(), 'test.pyc'), 'wb') marshal.dump(code, file) file.close() I'm not sure whether jinja2's template caching works fine, it seems it just opens a file and writes into it. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] How to store bytecode in Python 2.7?
Hi Sun, You are seeing those exceptions because you are trying to write to a file and App Engine does not support writing to the local filesystem. By default, jinja2 uses a memory-backed LRU cache to cache the last 50 accessed templates but you can customize this if you want. See: http://jinja.pocoo.org/docs/api/#bytecode-cache Cheers, Brian On Sun, Oct 16, 2011 at 6:02 PM, Sun Jing kea...@gmail.com wrote: Hi all, As the document says, in Python 2.7, no longer restricts access to Python bytecode. But I tried to compile a source code file, it raised an IOError: [Errno 13] Permission denied: import os import os.path import py_compile path = os.path.join(os.getcwd(), 'model.py') py_compile.compile(path) marshal is not working either: import os import os.path import marshal code = compile('1+1', 'string', 'eval') file = open(os.path.join(os.getcwd(), 'test.pyc'), 'wb') marshal.dump(code, file) file.close() I'm not sure whether jinja2's template caching works fine, it seems it just opens a file and writes into it. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] How to store bytecode in Python 2.7?
Hi Brian, So it means I can manipulate bytecode, but cannot store it to the file system? I can also generate bytecode in Python 2.5, what has been changed? Thanks for your explain. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Sun, Oct 16, 2011 at 5:35 PM, Brian Quinlan bquin...@google.com wrote: Hi Sun, You are seeing those exceptions because you are trying to write to a file and App Engine does not support writing to the local filesystem. By default, jinja2 uses a memory-backed LRU cache to cache the last 50 accessed templates but you can customize this if you want. See: http://jinja.pocoo.org/docs/api/#bytecode-cache Cheers, Brian On Sun, Oct 16, 2011 at 6:02 PM, Sun Jing kea...@gmail.com wrote: Hi all, As the document says, in Python 2.7, no longer restricts access to Python bytecode. But I tried to compile a source code file, it raised an IOError: [Errno 13] Permission denied: import os import os.path import py_compile path = os.path.join(os.getcwd(), 'model.py') py_compile.compile(path) marshal is not working either: import os import os.path import marshal code = compile('1+1', 'string', 'eval') file = open(os.path.join(os.getcwd(), 'test.pyc'), 'wb') marshal.dump(code, file) file.close() I'm not sure whether jinja2's template caching works fine, it seems it just opens a file and writes into it. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] How to store bytecode in Python 2.7?
Hi Sun, You can't store anything in the local file system. You can store data in the datastore, memcache, blobstore, etc. With the App Engine Python 2.5 runtime it is *not* possible to execute arbitrary bytecode. Cheers, Brian On Sun, Oct 16, 2011 at 9:30 PM, Sun Jing kea...@gmail.com wrote: Hi Brian, So it means I can manipulate bytecode, but cannot store it to the file system? I can also generate bytecode in Python 2.5, what has been changed? Thanks for your explain. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Sun, Oct 16, 2011 at 5:35 PM, Brian Quinlan bquin...@google.com wrote: Hi Sun, You are seeing those exceptions because you are trying to write to a file and App Engine does not support writing to the local filesystem. By default, jinja2 uses a memory-backed LRU cache to cache the last 50 accessed templates but you can customize this if you want. See: http://jinja.pocoo.org/docs/api/#bytecode-cache Cheers, Brian On Sun, Oct 16, 2011 at 6:02 PM, Sun Jing kea...@gmail.com wrote: Hi all, As the document says, in Python 2.7, no longer restricts access to Python bytecode. But I tried to compile a source code file, it raised an IOError: [Errno 13] Permission denied: import os import os.path import py_compile path = os.path.join(os.getcwd(), 'model.py') py_compile.compile(path) marshal is not working either: import os import os.path import marshal code = compile('1+1', 'string', 'eval') file = open(os.path.join(os.getcwd(), 'test.pyc'), 'wb') marshal.dump(code, file) file.close() I'm not sure whether jinja2's template caching works fine, it seems it just opens a file and writes into it. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] How to store bytecode in Python 2.7?
Hi Brian, I got it, thank you. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Sun, Oct 16, 2011 at 6:37 PM, Brian Quinlan bquin...@google.com wrote: Hi Sun, You can't store anything in the local file system. You can store data in the datastore, memcache, blobstore, etc. With the App Engine Python 2.5 runtime it is *not* possible to execute arbitrary bytecode. Cheers, Brian On Sun, Oct 16, 2011 at 9:30 PM, Sun Jing kea...@gmail.com wrote: Hi Brian, So it means I can manipulate bytecode, but cannot store it to the file system? I can also generate bytecode in Python 2.5, what has been changed? Thanks for your explain. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ On Sun, Oct 16, 2011 at 5:35 PM, Brian Quinlan bquin...@google.com wrote: Hi Sun, You are seeing those exceptions because you are trying to write to a file and App Engine does not support writing to the local filesystem. By default, jinja2 uses a memory-backed LRU cache to cache the last 50 accessed templates but you can customize this if you want. See: http://jinja.pocoo.org/docs/api/#bytecode-cache Cheers, Brian On Sun, Oct 16, 2011 at 6:02 PM, Sun Jing kea...@gmail.com wrote: Hi all, As the document says, in Python 2.7, no longer restricts access to Python bytecode. But I tried to compile a source code file, it raised an IOError: [Errno 13] Permission denied: import os import os.path import py_compile path = os.path.join(os.getcwd(), 'model.py') py_compile.compile(path) marshal is not working either: import os import os.path import marshal code = compile('1+1', 'string', 'eval') file = open(os.path.join(os.getcwd(), 'test.pyc'), 'wb') marshal.dump(code, file) file.close() I'm not sure whether jinja2's template caching works fine, it seems it just opens a file and writes into it. -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: How to determine datastore reads?
The RPC.Get and RPC.RunQuery can result in many Datastore Read Ops. They can return more then one object and thus read multiple index entries and multiple objects. Google is able to tally the Datastore Read and Write Ops. Why is there no API call that will return these numbers for the current request? I have changed part of my application to construct and read an aggregate object (containing the attributes of many small objects). The result is that the number of Datastore Read Ops dropped considerable. I'm still having a large number of Read Ops left and have no idea which requests are responsible for the bulk of them. It takes a long time to find the culprit because the billing stats lags quit some time. Op 15 oktober 2011 21:39 heeft Rishi Arora rishi.ar...@ship-rack.com het volgende geschreven: Actually, appstats is more consistent with the old pricing model, and so, it only shows up number of datastore queries executed, puts and gets, for each RPC. Here's a screenshot from the link I posted earlier: http://1.bp.blogspot.com/_dLfQMJsmsaI/S7NKKyRM5-I/AEA/rfaOPZXtr80/s1600/Picture+4.png The request history section shows recent requests, and if you expand a request, it'll show you datastore puts, gets, and queries. I believe gets translate to reads one-to-one, but puts depend on how many indexes get modified in the process. One put will almost always translate to multiple data store writes (one of each index that gets updated, and one for the entity being modified) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] New Billing: Absolutely make sure you set Max Idle Instances to a fixed value
On Thursday, October 13, 2011 1:06:48 PM UTC+1, Emlyn wrote: But I'll tell you what; the effect of multi-threading on appengine python app instance pricing warrants a good hard look, with numbers and tables and graphs and whatnot. Reading your stuff in detail has convinced me to put it on my shortlist, particularly with an eye to developing some simple techniques for web apps, for people who would otherwise be intimidated by heavy concurrency work. So I apologise for raising your hackles, and thank you for the interaction, and the motivation to take a look at multi-threaded Python. If you guys keep on backing up opinions with test cases and data, agreeing to the validity of each other's points, and then reaching conclusions in a consensual and respectful fashion, you'll give the internet a bad name. C'mon.. won't somebody call someone else a Nazi ?? Think of Godwin's children... :) [i.e. investigative work and associated discourse is appreciated] -- Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/tX7WPboOvVUJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: How to determine datastore reads?
I agree. As I originally posted, I'm having difficulty figuring out where the datastore reads are coming from. I installed AppStats, and it shows 3 RunQuerys and one memcache.Get per request. So does this mean each request results in 3 datastore reads? Also, isn't memcache backed by the datastore? So does this mean gets from memcache result in a datastore read? Any have a better idea of how I can figure out where my datastore reads are coming from? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/xeuJzGl4jpYJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Maximum concurrent user requests
Hello, i know that you can allow concurrent user requests, for example, in java, by specifying threadsafe = true in your appengine- web.xml, but how many requests can be actually executed by a servlet in parallel ? For example, if N users make a request at the same moment, will there be a number of requests put into wait ?. Let's say M user requests will be treated (M N ) and M-N requests will wait ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
RE: [google-appengine] Maximum concurrent user requests
Concurrency isn't as concurrent as a lot of people think it is. Just like Multi-Tasking. If your App does Calculate the pi to the power of X and return the Significant Digit in Y position Your App will consume 100% of the CPU and you get 0 Concurrent request. If it does so fast enough the Pending Latency may allow a single instance to respond to a bunch of requests that arrive at the same time, but they will process in Serial. If your app does Fetch X URL and return bytes 1234 through 4321 Most of the time will be spent in the FetchURL Api, and while that is happening other requests can execute. Because of this My APP that uses about 98% CPU from API's has HUGE concurrency on Python 2.7. but Huge is still something like 8 not 80. But when you pay for instances, not consumed CPU this saved me a lot of money. In any event, your answer is: It depends on how you are using the CPU Cycles, and how you use API's or other things that would create a wait state, along with what the pending latency is. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Ice13ill Sent: Sunday, October 16, 2011 9:25 AM To: Google App Engine Subject: [google-appengine] Maximum concurrent user requests Hello, i know that you can allow concurrent user requests, for example, in java, by specifying threadsafe = true in your appengine- web.xml, but how many requests can be actually executed by a servlet in parallel ? For example, if N users make a request at the same moment, will there be a number of requests put into wait ?. Let's say M user requests will be treated (M N ) and M-N requests will wait ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] need immidiate help..!!!
I am trying to run my first application in python on google sdk. this is a simple datbase with a query statement . but I am getting an unexpected error statement of module not found.please help me asap.. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. sss.py Description: Binary data
Re: [google-appengine] Maximum concurrent user requests
Well, the requests are independent form each other (threadsafe) and are only related to datastore (each request also triggers task creation for different log writes). Should't all request that arrive at the same time be resolved in parallel ? On 16 October 2011 20:34, Brandon Wirtz drak...@digerat.com wrote: Concurrency isn't as concurrent as a lot of people think it is. Just like Multi-Tasking. If your App does Calculate the pi to the power of X and return the Significant Digit in Y position Your App will consume 100% of the CPU and you get 0 Concurrent request. If it does so fast enough the Pending Latency may allow a single instance to respond to a bunch of requests that arrive at the same time, but they will process in Serial. If your app does Fetch X URL and return bytes 1234 through 4321 Most of the time will be spent in the FetchURL Api, and while that is happening other requests can execute. Because of this My APP that uses about 98% CPU from API's has HUGE concurrency on Python 2.7. but Huge is still something like 8 not 80. But when you pay for instances, not consumed CPU this saved me a lot of money. In any event, your answer is: It depends on how you are using the CPU Cycles, and how you use API's or other things that would create a wait state, along with what the pending latency is. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Ice13ill Sent: Sunday, October 16, 2011 9:25 AM To: Google App Engine Subject: [google-appengine] Maximum concurrent user requests Hello, i know that you can allow concurrent user requests, for example, in java, by specifying threadsafe = true in your appengine- web.xml, but how many requests can be actually executed by a servlet in parallel ? For example, if N users make a request at the same moment, will there be a number of requests put into wait ?. Let's say M user requests will be treated (M N ) and M-N requests will wait ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
from google.appengine.ext import db instead of from google_appengine.ext import db. Steve On 11-10-16 03:45 PM, shobhit suman wrote: I am trying to run my first application in python on google sdk. this is a simple datbase with a query statement . but I am getting an unexpected error statement of module not found.please help me asap.. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
You wrote: from google_appengine.google.ext import db When you should write: from google.appengine.google.ext import db Cheers, Brian On Mon, Oct 17, 2011 at 6:45 AM, shobhit suman shobhit.sum...@gmail.com wrote: I am trying to run my first application in python on google sdk. this is a simple datbase with a query statement . but I am getting an unexpected error statement of module not found.please help me asap.. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
sir, I rectified this mistake but still I am getting the same error message.It will be kind enough if u cud please please run the code on your system for it might be possibl that my sdk has got sum problm. On Mon, Oct 17, 2011 at 1:18 AM, Steve Sherrie st...@wasteofpaper.comwrote: from google.appengine.ext import db instead of from google_appengine.ext import db. Steve On 11-10-16 03:45 PM, shobhit suman wrote: I am trying to run my first application in python on google sdk. this is a simple datbase with a query statement . but I am getting an unexpected error statement of module not found.please help me asap.. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
Please include the error and the stacktrace, and we'll be able to help. It's a bit much to ask someone to fix your script and give it back to you :) Steve On 11-10-16 03:53 PM, shobhit suman wrote: sir, I rectified this mistake but still I am getting the same error message.It will be kind enough if u cud please please run the code on your system for it might be possibl that my sdk has got sum problm. On Mon, Oct 17, 2011 at 1:18 AM, Steve Sherrie st...@wasteofpaper.com mailto:st...@wasteofpaper.com wrote: from google.appengine.ext import db instead of from google_appengine.ext import db. Steve On 11-10-16 03:45 PM, shobhit suman wrote: I am trying to run my first application in python on google sdk. this is a simple datbase with a query statement . but I am getting an unexpected error statement of module not found.please help me asap.. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com mailto:google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com mailto:google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com mailto:google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com mailto:google-appengine%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
File sss.py, line 2, in module from google.appengine.google.ext import db ImportError: No module named appengine.google.ext this is the error statement its showing. On Mon, Oct 17, 2011 at 1:27 AM, Steve Sherrie st...@wasteofpaper.comwrote: Please include the error and the stacktrace, and we'll be able to help. It's a bit much to ask someone to fix your script and give it back to you :) Steve On 11-10-16 03:53 PM, shobhit suman wrote: sir, I rectified this mistake but still I am getting the same error message.It will be kind enough if u cud please please run the code on your system for it might be possibl that my sdk has got sum problm. On Mon, Oct 17, 2011 at 1:18 AM, Steve Sherrie st...@wasteofpaper.comwrote: from google.appengine.ext import db instead of from google_appengine.ext import db. Steve On 11-10-16 03:45 PM, shobhit suman wrote: I am trying to run my first application in python on google sdk. this is a simple datbase with a query statement . but I am getting an unexpected error statement of module not found.please help me asap.. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Excessive entities, being charged to read/write gae datastore stats?
I have a namespace that has 1 kind and 16 entities. When I use admin - datastore stats, it reports the 16 entities and says i have a total of 74 entities 58 of them show no kind. I assume these are GAE statistics. Also, it would be nice if you listed each kind. For all namespaces the ratio is about 30 total entities for each one I define and create. I also suspect/wonder if I am being charged to read and write these stats which is probably adding to my overall reads and writes. I would like to opt out of these GAE datastore stats which I don't use or want. Is there a way to opt out? Or is there some other explanation here? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
You corrected it incorrectly :) from google.appengine.google.ext import db should be from google.appengine.ext import db. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Fdn-5-apNtkJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
sir srry to flood ur inbox, but its still showing, I do hav dis module named appengine.ext.. File sss.py, line 2, in module from google.appengine.ext import db ImportError: No module named appengine.ext On Mon, Oct 17, 2011 at 1:46 AM, Steve Sherrie st...@wasteofpaper.comwrote: You corrected it incorrectly :) from google.appengine.google.ext import db should be from google.appengine.ext import db. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Fdn-5-apNtkJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
Hmmm, not sure. That line is definitely right. Which OS are you using? Just so we have a better idea of your environment. Steve -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Fkz-ZitOpgMJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
sir I am using a virtual machine with ubuntu running ||ly on my windows 7 On Mon, Oct 17, 2011 at 2:03 AM, Steve Sherrie st...@wasteofpaper.comwrote: Hmmm, not sure. That line is definitely right. Which OS are you using? Just so we have a better idea of your environment. Steve -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Fkz-ZitOpgMJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] need immidiate help..!!!
And can you describe where you put the script (in relation to the appengine-sdk) and how you are running the application? Steve On 11-10-16 04:35 PM, shobhit suman wrote: sir I am using a virtual machine with ubuntu running ||ly on my windows 7 On Mon, Oct 17, 2011 at 2:03 AM, Steve Sherrie st...@wasteofpaper.com mailto:st...@wasteofpaper.com wrote: Hmmm, not sure. That line is definitely right. Which OS are you using? Just so we have a better idea of your environment. Steve -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Fkz-ZitOpgMJ. To post to this group, send email to google-appengine@googlegroups.com mailto:google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com mailto:google-appengine%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- SHOBHIT SUMAN B.Tech(II year) Computer Science Engineering The LNM Institute of Information Technology Jaipur, India. #+91-7742475353 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Which credentials should I put in for Google App Engine BulkLoader at JAVA development server?
I figured it out. It was a temporary issue. Undeploying, restarting the server and then deploying the application fixed the problem. Empty password with any email forks fine. On Sep 29, 6:24 pm, Zacheusz Siedlecki zacheu...@gmail.com wrote: I can't upload data to my GAE Java dev serwer. Bulkloader asks for a password, but no password (even empty) matches: D:\python_google_appengineappcfg.py upload_data -- config_file=bulkloader.yaml --filename=templates.csv --url=http:// localhost:8080/remote_api --kind=EmailMessageTemplate -- application=myappid --insecure Uploading data records. [INFO ] Logging to bulkloader-log-20110927.084025 [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-20110927.084025.sql3 Please enter login credentials for localhost Email: m...@gmail.com Password for m...@gmail.com: [INFO ] Connecting to localhost:8080/remote_api 2011-09-27 08:40:44,062 WARNING appengine_rpc.py:435 ssl module not found. Without the ssl module, the identity of the remote host cannot be verified, and connections may NOT be secure. To fix this, please install the ssl module fromhttp://pypi.python.org/pypi/ssl. To learn more, seehttp://code.google.com/appengine/kb/general.html#rpcssl . Please enter login credentials for localhost Email: Interrupted. Then how to create credentials with a password on Java dev server or bypass password requirement? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
RE: [google-appengine] Maximum concurrent user requests
There is no such thing as parallel there is sliced and unsliced. You would have to ask GOOG how it is implemented, but my understanding is that process A executes, and process b executes during process A's wait states. If you have no wait states the thread sits paused until the other thread has finished. From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Andrei Cosmin Fifiita Sent: Sunday, October 16, 2011 12:47 PM To: google-appengine@googlegroups.com Subject: Re: [google-appengine] Maximum concurrent user requests Well, the requests are independent form each other (threadsafe) and are only related to datastore (each request also triggers task creation for different log writes). Should't all request that arrive at the same time be resolved in parallel ? On 16 October 2011 20:34, Brandon Wirtz drak...@digerat.com wrote: Concurrency isn't as concurrent as a lot of people think it is. Just like Multi-Tasking. If your App does Calculate the pi to the power of X and return the Significant Digit in Y position Your App will consume 100% of the CPU and you get 0 Concurrent request. If it does so fast enough the Pending Latency may allow a single instance to respond to a bunch of requests that arrive at the same time, but they will process in Serial. If your app does Fetch X URL and return bytes 1234 through 4321 Most of the time will be spent in the FetchURL Api, and while that is happening other requests can execute. Because of this My APP that uses about 98% CPU from API's has HUGE concurrency on Python 2.7. but Huge is still something like 8 not 80. But when you pay for instances, not consumed CPU this saved me a lot of money. In any event, your answer is: It depends on how you are using the CPU Cycles, and how you use API's or other things that would create a wait state, along with what the pending latency is. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Ice13ill Sent: Sunday, October 16, 2011 9:25 AM To: Google App Engine Subject: [google-appengine] Maximum concurrent user requests Hello, i know that you can allow concurrent user requests, for example, in java, by specifying threadsafe = true in your appengine- web.xml, but how many requests can be actually executed by a servlet in parallel ? For example, if N users make a request at the same moment, will there be a number of requests put into wait ?. Let's say M user requests will be treated (M N ) and M-N requests will wait ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com mailto:google-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com mailto:google-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] un-Verification for App Creation
The https://*appengine*.google.com/*waitlist*/sms_issues; page is redirected to https://appengine.google.com/;, which does not contain any form. Have I missed something? Stuart Wheater -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/CLPK_okk2bIJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Gae and visualization api
On Fri, Oct 14, 2011 at 1:04 AM, uover82 uove...@gmail.com wrote: Hi Nick - thanks for the help! I believe I'm using a relative url, off of localhost. Here's a representative page: Yes, you're embedding the hostname - 'localhost' - in your page. That's an absolute URL, not a relative one, and will break when you're no longer running off localhost. -Nick Johnson !DOCTYPE html html head titleESE Pct./title !--Load the AJAX API-- script type=text/javascript src=http://www.google.com/jsapi;/ script script type=text/javascript // Load the Visualization API and the ready-made Google table visualization. google.load(visualization, 1, {packages: ['corechart,table,annotatedtimeline']}); // Set a callback to run when the API is loaded. google.setOnLoadCallback(init); // Send the queries to the data sources. function init() { query1 = new google.visualization.Query('ese?url=http://localhost: 8080/gv/11032010_trends_daily_p.csvpivot=1dtx=0tr=0'); query1.send(handleCsvDsResponse1); } // Handle the csv data source query response1 function handleCsvDsResponse1(response) { if (response.isError()) { alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage()); return; } var data = response.getDataTable(); var formatter_short = new google.visualization.DateFormat({formatType: 'short'}); formatter_short.format(data, 0); var chart = new google.visualization.LineChart(document.getElementById('chart_div')); chart.draw(data,{pointSize: 0, title: 'Event/Subevent (ESE) Analysis - Percentages', hAxis: {slantedTextAngle: 70}}); } /script /head body div id='chart_div' style='width: 1650px; height: 490px;'/div div id=csv_div style='width: 1650px; height: 400px;'/div /body /html The problem seems to be in the Query. Is there another url entry I should be using other than localhost? Also, I'm interested in GAE hosting the datasource rather than my host. Let me know what you think - thanks John On Oct 12, 5:33 pm, Nick Johnson nickjohn...@google.com wrote: Hi, It sounds like you've embedded the URL of your development environment into your code somewhere. Naturally, when deployed, your browser (or the Visualization API) can't access files stored on your local machine. Instead of hard-coding URLs, you should determine the host header from the current request - exactly how to do so depends on your framework - and use that. Alternately, you can use relative URLs if the Visualization API supports that. -Nick Johnson On Thu, Oct 13, 2011 at 5:39 AM, uover82 uove...@gmail.com wrote: Hi All, I'm developing an application using app engine and the google visualization api using java. It currently uses a static file (csv) located in war as a datasource. My app works fine in my local development server but fails with errors like the following after uploading: java.io.IOException: Could not fetch URL:http://localhost:8080/... csv path/filename Any ideas/thoughts on this? Let me know - thanks John -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Maximum concurrent user requests
How scheduler determines number of simultaneous requests for each instance? 2011/10/16 Andrei Cosmin Fifiiţă andrei.fifi...@gmail.com Well, the requests are independent form each other (threadsafe) and are only related to datastore (each request also triggers task creation for different log writes). Should't all request that arrive at the same time be resolved in parallel ? On 16 October 2011 20:34, Brandon Wirtz drak...@digerat.com wrote: Concurrency isn't as concurrent as a lot of people think it is. Just like Multi-Tasking. If your App does Calculate the pi to the power of X and return the Significant Digit in Y position Your App will consume 100% of the CPU and you get 0 Concurrent request. If it does so fast enough the Pending Latency may allow a single instance to respond to a bunch of requests that arrive at the same time, but they will process in Serial. If your app does Fetch X URL and return bytes 1234 through 4321 Most of the time will be spent in the FetchURL Api, and while that is happening other requests can execute. Because of this My APP that uses about 98% CPU from API's has HUGE concurrency on Python 2.7. but Huge is still something like 8 not 80. But when you pay for instances, not consumed CPU this saved me a lot of money. In any event, your answer is: It depends on how you are using the CPU Cycles, and how you use API's or other things that would create a wait state, along with what the pending latency is. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Ice13ill Sent: Sunday, October 16, 2011 9:25 AM To: Google App Engine Subject: [google-appengine] Maximum concurrent user requests Hello, i know that you can allow concurrent user requests, for example, in java, by specifying threadsafe = true in your appengine- web.xml, but how many requests can be actually executed by a servlet in parallel ? For example, if N users make a request at the same moment, will there be a number of requests put into wait ?. Let's say M user requests will be treated (M N ) and M-N requests will wait ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- С уважением, Кулин Тимофей. Телефон: +7 (4852) 974793 ICQ: 114902104 email: timo...@koolin.ru Blog: http://timofey.koolin.ru -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Maximum concurrent user requests
Also keep in mind that Python and Java differ here. Unless Google brushed the dust off an old JVM with green threads, Java threads are OS-native threads and will timeslice even cpu-bound operations. This isn't necessarily a good or bad thing. Jeff On Sun, Oct 16, 2011 at 2:32 PM, Brandon Wirtz drak...@digerat.com wrote: There is no such thing as “parallel” there is sliced and unsliced. You would have to ask GOOG how it is implemented, but my understanding is that process A executes, and process b executes during process A’s wait states. If you have no wait states the thread sits paused until the other thread has finished. From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Andrei Cosmin Fifiita Sent: Sunday, October 16, 2011 12:47 PM To: google-appengine@googlegroups.com Subject: Re: [google-appengine] Maximum concurrent user requests Well, the requests are independent form each other (threadsafe) and are only related to datastore (each request also triggers task creation for different log writes). Should't all request that arrive at the same time be resolved in parallel ? On 16 October 2011 20:34, Brandon Wirtz drak...@digerat.com wrote: Concurrency isn't as concurrent as a lot of people think it is. Just like Multi-Tasking. If your App does Calculate the pi to the power of X and return the Significant Digit in Y position Your App will consume 100% of the CPU and you get 0 Concurrent request. If it does so fast enough the Pending Latency may allow a single instance to respond to a bunch of requests that arrive at the same time, but they will process in Serial. If your app does Fetch X URL and return bytes 1234 through 4321 Most of the time will be spent in the FetchURL Api, and while that is happening other requests can execute. Because of this My APP that uses about 98% CPU from API's has HUGE concurrency on Python 2.7. but Huge is still something like 8 not 80. But when you pay for instances, not consumed CPU this saved me a lot of money. In any event, your answer is: It depends on how you are using the CPU Cycles, and how you use API's or other things that would create a wait state, along with what the pending latency is. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Ice13ill Sent: Sunday, October 16, 2011 9:25 AM To: Google App Engine Subject: [google-appengine] Maximum concurrent user requests Hello, i know that you can allow concurrent user requests, for example, in java, by specifying threadsafe = true in your appengine- web.xml, but how many requests can be actually executed by a servlet in parallel ? For example, if N users make a request at the same moment, will there be a number of requests put into wait ?. Let's say M user requests will be treated (M N ) and M-N requests will wait ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.