[appengine-java] threads per instance (Java)

2011-09-03 Thread James Cooper
Howdy,

With the new pricing being instance based, rather than CPU time based, it 
seems more important to know how the instances themselves work.

How many concurrent requests can a single Java GAE instance service? 
 Important if the app is doing any long polling on the client.

thanks

-- James

-- 
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/-/LxoRF9hirHAJ.
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: threads per instance (Java)

2011-09-03 Thread Francois Masurel
I just asked a similar question here : 
http://code.google.com/p/googleappengine/issues/detail?id=5414#c31

You might want to file a documentation bug.

Francois

-- 
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/-/9ZAfI-fsiYAJ.
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] Can't set URL Fetch Timeout to a value higher than 5 seconds

2011-09-03 Thread Killian
Hi Lads,

I'm guessing this question must be obvious to most people but really, I've 
looked for an answer every where since like a week and still can't figure 
out what's going on. 

I'm simply trying to fetch a url from app engine. The response takes 
approximately 6seconds to come back. Hence I'm trying to increase the url 
connection timeout to something like 9seconds. However any settings I 
specify to increase the timeout values seems to be ignored. I keep getting 
an IOException at around 5seconds.

I initially thought maybe this was due to not using the lastest version of 
app engine hence I upgraded to 1.5.3 but I'm still getting this exception at 
5seconds.
This is killing me at this stage ! I would really appreciate any advice. I 
must be doing something wrong but I can't figure out what it is. 
I've tried setting the timeout with openConnection or with the URLFetch 
service without any luck.

Here is the code I'm currently using:

 URL url = new URL(urlRequest);

url.openConnection().setReadTimeout(9000);

 url.openConnection().setConnectTimeout(9000);

   URLFetchService fetcher = URLFetchServiceFactory.getURLFetchService();

 HTTPResponse response1 = fetcher.fetch(url);

 System.out.println(Response: +new String(response1.getContent()));




-- 
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/-/wadjajVQoGMJ.
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: Using async-session-persistence

2011-09-03 Thread John
http://code.google.com/p/googleappengine/issues/detail?id=5774

Star it

On Aug 30, 7:28 pm, Spines kwste...@gmail.com wrote:
 I'm getting this same error after enabling async-session-persistence,
 except 100% of the time. It shows this error in the logs:

 javax.servlet.ServletContext log: _ah_queue_deferred: Deferred task
 failed exception:
 com.google.apphosting.utils.servlet.DeferredTaskServlet
 $DeferredTaskException: java.lang.ClassNotFoundException:
 com.google.apphosting.runtime.jetty.DeferredDatastoreSessionStore
 $DeferredSave

 Any ideas?

 On Aug 1, 7:34 am, gk goran.kar...@googlemail.com wrote:







  Greetings,

  still have not found any clues what could cause async-session-
  persistence tasks to fail with HTTP status code 415 (Unsupported
  Media Type).

  Any ideas?

  On Jul 27, 9:16 pm, gk goran.kar...@googlemail.com wrote:

   I am experimenting with async-session-persistence enabled=true
   queue-name=default/ to store https session data; at first it seems
   to work fine with the default default queue settings; multithreading
   is switched on for the application.

   It appears that there is some kind of collision, as the tasks seem to
   succeed when the rate of incoming requests is low.

   When I open a browser window and reload 50 pages from the site at once
   it seems to work fine and the queue is filled up with some tasks. Most
   ot the tasks succeed.

   The problem is that around 30% of the async-session-persistence
   tasks fail repeatedly with HTTP status code 415 (Unsupported Media
   Type) and there is no further indication of the cause in the queue or
   in the server log.

-- 
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: Can't enable datastore admin

2011-09-03 Thread Sam
Hi Jose,

I'm sorry for the late response. What do you mean by the admin
console? (If you mean the launcher app that comes with the Python SDK,
I can't get that to work with my Java app.)

Thanks,
Sam

On Aug 23, 1:16 pm, Jose Montes de Oca jfmontesde...@google.com
wrote:
 Hi Sam,

 This happened after enabling the datastore admin? could you just refresh the
 admin console, access the datastore admin under data - Datastore Admin an
 let us know if its working?

 Best,
 Jose Montes de Oca
 Developer Support Specialist

-- 
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: Issues using JDO query in RemoteAPI

2011-09-03 Thread Kesava Neeli
Any one has suggestions? The JDO PersistenceManager api should work with 
remote api ?

-- 
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/-/h2Or6ESO6b8J.
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.