Re: [google-appengine] analysing /_ah/api performance

2014-05-15 Thread Vinny P
On Thu, May 15, 2014 at 4:20 PM, Robert King 
 wrote:

> for 
> example
> ,
> /_ah/api/discovery/v1/apis/archivedash/v1/rpc?fields=methods%2F*%2Fid&pp=0
> is often at times running slowly (e.g. waiting over 10 seconds on fast
> connection). I'd like to investigate it somehow.
> Is it a problem elsewhere in my app (e.g. some of my webapp2 handlers have
> high latency due to doing many urlfetches etc) or is it a problem with
> endpoints that don't have much traffic?
> I'm wondering if performance of /api/discovery can be effected if other
> parts of my app are experiencing high latency or is its performance self
> contained?
>



The best way to pinpoint performance issues is to record an AppStats run of
the request. Can you install AppStats (see instructions
here),
run an API request, then post the AppStats record back here?


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] google app engine application run with ipaddress instead of localhost

2014-05-15 Thread Nick
You can add the specified parameters directly to the arguments in your run 
config. (Run -> Run Configurations , Web Application ->  Project, Arguments 
tab, Program Arguments)

For example, 

--port=8080 -a 0.0.0.0 
/Users/nick/Documents/projects/project/target/project-1.0-SNAPSHOT



On Thursday, May 15, 2014 6:00:04 AM UTC+10, Juan de Dios Becerra wrote:
>
> It is only available for command line? I am using java in eclipse with GAE 
> plugin, I have modified Configurations but I have this message when I try 
> to run it: Usage:  [options] 
>
> Options:
>  --help, -h Show this help message and exit.
>  --server=SERVERThe server to use to determine the latest
>   -s SERVER   SDK version.
>  --address=ADDRESS  The address of the interface on the local 
> machine
>   -a ADDRESS  to bind to (or 0.0.0.0 for all interfaces).
>  --port=PORTThe port number to bind to on the local 
> machine.
>   -p PORT
>  --sdk_root=DIR Overrides where the SDK is located.
>  --disable_update_check Disable the check for newer SDK versions.
>  --generated_dir=DIRSet the directory where generated files are 
> created.
>  --jvm_flag=FLAGPass FLAG as a JVM argument. May be repeated to
>   supply multiple flags.
> some idea?
>
> El jueves, 24 de mayo de 2012 07:59:22 UTC-5, Mat Jaggard escribió:
>>
>> Java 
>>
>> https://developers.google.com/appengine/docs/java/tools/devserver#Command_Line_Arguments
>>  
>>
>> or 
>> Python 
>>
>> https://developers.google.com/appengine/docs/python/tools/devserver#Command_Line_Arguments
>>  
>>
>> On 24 May 2012 12:08, anantula josna  wrote: 
>> > hi all, 
>> > anybody plese tell me,i am running google app engine application with 
>> > localhost:8080 its running perfectly.but i would like to run same 
>> > application with 0.0.0.0:8080(example) its giving error unable to 
>> > connect.but thing is i started server tomcat and accessed with 
>> ipaddress 
>> > example application in tomcat webapps,its working fine.through another 
>> pc 
>> > also perfectly working.so what is the problem with appengine sever. 
>> > 
>> > -- 
>> > 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/-/uP_AfWlepxQJ. 
>> > To post to this group, send email to google-a...@googlegroups.com. 
>> > To unsubscribe from this group, send email to 
>> > google-appengi...@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 unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] analysing /_ah/api performance

2014-05-15 Thread Robert King
HI, is this possible? I tried searching app engine logs: path:/_ah/api.*
nothing came up obviously.

for 
example
, /_ah/api/discovery/v1/apis/archivedash/v1/rpc?fields=methods%2F*%2Fid&pp=0  
is often at times running slowly (e.g. waiting over 10 seconds on fast 
connection). I'd like to investigate it somehow.
Is it a problem elsewhere in my app (e.g. some of my webapp2 handlers have 
high latency due to doing many urlfetches etc) or is it a problem with 
endpoints that don't have much traffic?
I'm wondering if performance of /api/discovery can be effected if other 
parts of my app are experiencing high latency or is its performance self 
contained?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Appengine SDK 1.9.4 is slow to query the datastore

2014-05-15 Thread Kaan Soral
Thanks for posting a discussion, I will update to a newer version after 
this issue is fixed

I remember when queries, and datastore slowed down when appengine switched 
from devappserver1 to the current devappserver2 - datastore slowed ~10x - 
simple queries that fetched ~20 entities started taking at least ~20 
seconds to complete

The query in the issue is very similar to my queries, so If I update the 
sdk now it will probably 100x slower compared to what it was before, taking 
minutes to complete, but when the issue is solved, it feels things could 
get better, I'm stuck at sdk 1.8.* something - I was no longer updating the 
sdk :)

Long story short, your discussion helped me, thanks :)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Appengine SDK 1.9.4 is slow to query the datastore

2014-05-15 Thread bmurr
Guess I should have searched the issues more carefully before posting:

https://code.google.com/p/googleappengine/issues/detail?id=10845&q=stars%3A2&sort=-id&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Appengine SDK 1.9.4 is slow to query the datastore

2014-05-15 Thread bmurr
I upgraded from 1.9.2 to 1.9.4 and have noticed that datastore queries are 
taking substantially longer -- here's a comparison for loading the same 
page (not using NDB):

before: 
instance.py:385] Request handled by 
 in 0.9100s

after:
instance.py:385] Request handled by 
 in 67.9088s

The generated query was made more complex in 1.9.3, which is probably 
partially the reason:

https://code.google.com/p/googleappengine/source/diff?spec=svn427&old=410&r=427&format=unidiff&path=%2Ftrunk%2Fpython%2Fgoogle%2Fappengine%2Fdatastore%2Fdatastore_sqlite_stub.py

generated query before:
SELECT Entities.__path__, Entities.entity  FROM "dev~application!!Entities"AS 
Entities INNER JOIN "dev~application!!EntitiesByProperty" AS ebp_0 ON 
Entities.__path__ = ebp_0.__path__ INNER JOIN 
"dev~application!!EntitiesByProperty" AS ebp_1 ON Entities.__path__ = 
ebp_1.__path__ 
INNER JOIN "dev~application!!EntitiesByProperty" AS ebp_2 ON Entities.__path__ 
= ebp_2.__path__ WHERE ebp_0.kind = :1 AND ebp_0.name = :2 AND ebp_0.value = 
:3 AND ebp_1.kind = :4 AND ebp_1.name = :5 AND ebp_1.value = :6 AND ebp_2.kind 
= :7 AND ebp_2.name = :8 ORDER BY ebp_2.value DESC, Entities.__path__ ASC

generated query after:
SELECT Entities.__path__, Entities.entity  FROM "dev~application!!Entities"AS 
Entities INNER JOIN (SELECT kind, name, value, __path__ FROM 
"dev~application!!EntitiesByProperty" ORDER BY kind, name, value, __path__)AS 
ebp_0 ON 
Entities.__path__ = ebp_0.__path__ INNER JOIN (SELECT kind, name, 
value,__path__ FROM 
"dev~application!!EntitiesByProperty" ORDER BY kind, name, value, __path__)AS 
ebp_1 ON 
Entities.__path__ = ebp_1.__path__ INNER JOIN (SELECT kind, name, 
value,__path__ FROM 
"dev~application!!EntitiesByProperty" ORDER BY kind, name, value, __path__)AS 
ebp_2 ON 
Entities.__path__ = ebp_2.__path__ WHERE ebp_0.kind = :1 AND ebp_0.name = :2AND 
ebp_0
.value = :3 AND ebp_1.kind = :4 AND ebp_1.name = :5 AND ebp_1.value = :6AND 
ebp_2
.kind = :7 AND ebp_2.name = :8 ORDER BY ebp_2.value DESC, Entities.__path__ 
ASC;


Was the change made in 1.9.3 really necessary? This has made developing 
locally unusably slow for me.

>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: access localhost from remote computer

2014-05-15 Thread Alejandro Gonzalez
Another approach would be assign a name to your local machine. This way all
computers in your local network can access your server with myhost.com:8080
.

You just need to edit your hosts file ( /etc/hosts -> may depend on your
OS) and add something like:  127.0.0.1 myhost.com

Cheers!






Alejandro González Rodrigo
*www.nextinit.com* 
*alejandro.gonza...@nextinit.com *
*+34  666 57 79 13*


2014-05-15 10:36 GMT+02:00 Vinny P :

> On Wed, May 14, 2014 at 2:50 PM, Juan de Dios Becerra <
> j.becerra4...@gmail.com> wrote:
>
> Hi , I have the same problem but I am using Java in Eclipse with GAE
>> plugin, if I modify the Run Configuration, in the section Arguments I put:
>> --address=/home/juan_becerra/workspace/GPlusSanminaUser/war
>> the application can not run, I get this output in console:
>> Usage:  [options] 
>>
>
>
> The *--address* argument is expecting an IP address to make the dev
> appserver available on, not the path to your WAR folder. If you have the
> appserver bind to port 0.0.0.0, that will make the app available to all
> computers on your local network.
>
>
>
> -
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: access localhost from remote computer

2014-05-15 Thread Vinny P
On Wed, May 14, 2014 at 2:50 PM, Juan de Dios Becerra <
j.becerra4...@gmail.com> wrote:

> Hi , I have the same problem but I am using Java in Eclipse with GAE
> plugin, if I modify the Run Configuration, in the section Arguments I put:
> --address=/home/juan_becerra/workspace/GPlusSanminaUser/war
> the application can not run, I get this output in console:
> Usage:  [options] 
>


The *--address* argument is expecting an IP address to make the dev
appserver available on, not the path to your WAR folder. If you have the
appserver bind to port 0.0.0.0, that will make the app available to all
computers on your local network.



-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Python Google App Engine Shopping Cart

2014-05-15 Thread Vinny P
On Wed, May 14, 2014 at 5:41 PM, Garry Keneth Garcia 
 wrote:

> I know there are a lot. What I want specifically is Webapp2 + GAE +
> Datastore = Shopping Cart. Do you know anything like this?
>
>

There's https://github.com/prakhar1989/JokaStore which seems to be a
slightly older codebase, but there's an active demonstration site which
seems to work fine. It also fits your requirements.

If you're willing to lighten up on the datastore requirement, Django
Ecommerce ( https://www.django-cms.org/en/e-commerce/ ) can also work. I
believe it requires a SQL database, so you'll have to sign up for Cloud SQL.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Python Google App Engine Shopping Cart

2014-05-15 Thread timh
I am not aware of any.  Foxycart would be easy integrate as it is a 
seperate service you use, rather than run in your own server.

T

On Thursday, May 15, 2014 6:41:26 AM UTC+8, Garry Keneth Garcia wrote:
>
> I know there are a lot. What I want specifically is Webapp2 + GAE + 
> Datastore = Shopping Cart. Do you know anything like this?
>
> On Thursday, 27 February 2014 01:54:02 UTC+8, Vinny P wrote:
>>
>> On Tue, Feb 25, 2014 at 2:49 PM, Garry Keneth Garcia 
>>  wrote:
>>
>>> This is cool! I am actually planning to build one. 
>>>
>>
>>
>> You don't necessarily have to build a shopping cart, there are already a 
>> handful out there: 
>> https://www.djangopackages.com/grids/g/ecommerce/
>>
>> Do you have a specific issue that isn't addressed by currently-available 
>> carts?
>>  
>>  
>> -
>> -Vinny P
>> Technology & Media Advisor
>> Chicago, IL
>>
>> App Engine Code Samples: http://www.learntogoogleit.com
>>  
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.