Re: [appengine-java] Re: Slow cold starts

2012-03-09 Thread Anders Testson
That totally sucks. I can understand that it takes up more resources to have an app always loaded in an instance but when minimum instances is set, then it should mean that the app is kept in memory. If what you write is true (and I guess it is since nobody from Google has objected to it) then

Re: [appengine-java] Re: Slow cold starts

2012-02-29 Thread Anders
I see now that my email address indeed is visible. How is that possible?! Has Google not been able to fix such a serious privacy leak yet?!!! > -- 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 vi

Re: [appengine-java] Re: Slow cold starts

2012-02-29 Thread Anders
ow it responds over the next > few days. > > On Wed, Feb 29, 2012 at 6:25 AM, Anders wrote: > > Ok, interesting. Have you tried setting minimum instances to one? > > > > > > On Monday, February 27, 2012 8:40:41 AM UTC+1, Tapir wrote: > >> > >> From my

[appengine-java] Re: Slow cold starts

2012-02-29 Thread Anders
made my app > billing enabled. > But today, there are suddenly many cold starts again on my app even if > it is billing enabled. > > On Feb 27, 12:30 am, Anders wrote: > > Thanks. The app no longer has billing enabled (needed to be able to > adjust > > minimum

[appengine-java] Re: Slow cold starts

2012-02-26 Thread Anders
t; of instances changed from two to zero active > instances. > I changed from auto to one, and my app > is much more responsive. setting minimum > instances higher will co$t you more > > On Feb 25, 9:36 am, Anders wrote: > > In the recent weeks the cold starts for Java app

[appengine-java] Slow cold starts

2012-02-25 Thread Anders
In the recent weeks the cold starts for Java apps have started to take a long time in my experience. More than three seconds to load a webpage is too long generally for a high quality end user experience. I assume it happens when the physical GAE servers become too crowded resulting in sluggish

[appengine-java] Compiled jsp file: FileNotFoundException

2011-09-07 Thread Anders
This is clearly a GAE bug, because the file is there in other instances/requests. From the log: java.lang.RuntimeException: java.io.FileNotFoundException: /base/data/home/apps/s~tweetvote2/1.353082386135622494/_ah/java_compiled/WEB-INF/classes/org/apache/jsp/about_jsp.class -- You received t

Re: [giannim] [appengine-java] threadsafe and sessions-enabled

2011-09-04 Thread Anders
And threadsafe in this case means that the Session API can handle several calls to it simultaneously from the same frontend instance? Or will it block so that only one thread at a time can access the Session API? Because if it blocks then it will become a bottleneck since the threads then have t

Re: [giannim] [appengine-java] threadsafe and sessions-enabled

2011-09-04 Thread Anders
Ok, good. Thanks. -- 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/-/9BHMnXPUZJkJ. To post to this group, send email to google-appengine

[appengine-java] threadsafe and sessions-enabled

2011-09-04 Thread Anders
If an application has both threadsafe and sessions-enabled set to true, then will calls to the session API block so that one frontend instance can only execute one such call at a time when there are several threads running? -- You received this message because you are subscribed to the Google G

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-29 Thread Anders
I think I have solved it now. The application passed an object from a third party library in a GAE session attribute. Sometimes when the object was retrieved from the session attribute it didn't work (often it worked but not always)! Now the application creates a new instance instead of passing

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-29 Thread Anders
Hmm... It seems that an OAuth call to a third party API sometimes throws a null pointer exception. Looks like a tricky bug, but probably not something that has to do with GAE (except if there is some server clock sync issue or something like that). -- You received this message because you are

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-29 Thread Anders
I checked the response headers (in Google Chrome). When the redirect fails, then no cookie is set in the response header. Curious how this only happens sometimes. The sign in is a redirect from another redirect. First the sign in goes to a Twitter OAuth sign in page, then it's redirected back to

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-28 Thread Anders
I noticed that when the sign in doesn't work the redirect goes to / the root. I have looked and looked for where this can happen in the code, but there is no place where the redirect can be / (unless I have missed finding it in the code). Can the sendRedirect() sometimes cause a redirect to / if

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-28 Thread Anders
I haven't checked the http headers yet. The tricky thing is that it usually works fine even on the production server! It could be that I set the cookie in a non-standard way, but the session attribute is that a cookie too (I don't know fully how GAE manages sessions)? On Sunday, August 28, 2011

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-28 Thread Anders
The object put into the session is serializable. The production server will throw an exception if the session is attempted to be set with a non-serializable object. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this dis

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-28 Thread Anders
I found something. Maybe not significant but could be. I saw in the log that two of the last sign ins that failed had a call to /_ah/warmup just prior to them. With the log text: "This request caused a new process to be started for your application, and thus caused your application code to be l

[appengine-java] Re: Session/Cookie problem with redirect

2011-08-27 Thread Anders
An additional detail is that I think the problem only appears after I recently have done a sign out. In the sign out the cookie age value is set to zero and the session attribute removed and then the session is invalidated (so the removal of the session attribute is redundant code but anyway ju

[appengine-java] Session/Cookie problem with redirect

2011-08-27 Thread Anders
When signing in a user I set a session attribute and a cookie and then make a sendRedirect to the destination page for the sign in. This works fine, except sometimes it doesn't work in the production server. Sometimes neither the session attribute nor the cookie is set. It always works in on the

[appengine-java] Re: Always On not working properly

2011-08-26 Thread Anders
Hi Jose, Ok, setting idle instances would be similar to Always On I assume. Plus I read in one of those threads that they are working on fixing some instance scheduler bug. So that should make the performance smoother. Unless they try to squeeze too many instances into too few physical servers.

[appengine-java] Re: Always On not working properly

2011-08-26 Thread Anders
Now the performance is pretty good. And to not appear as a total jerk I want to add that overall GAE is really awesome. Now I can focus on the really challenging part which is to generate massive traffic. And then it will be interesting to see how GAE will manage that. :-) -- You received this

[appengine-java] Re: Always On not working properly

2011-08-26 Thread Anders
In this case it was the Java code. First it it took me several uploads to make the change happen. Now it's not even working with several uploads. I have used appcfg rollback recently and will try that again if I can get the upload to work. Frustrating! -- You received this message because you

[appengine-java] Re: Always On not working properly

2011-08-26 Thread Anders
Another problem when switching to Always On is that sometimes when I upload new versions of the application no change happens! Even when I wait several minutes after the upload. Is Google App Engine really a finished product? Or is it still in a trial version? It's starting to feel really shaky.

[appengine-java] Re: Always On not working properly

2011-08-26 Thread Anders
I use the high replication datastore if that's what you mean by high availability. -- 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/-/d

[appengine-java] Re: Always On not working properly

2011-08-26 Thread Anders
And why so complicated price model? Isn't it possible to normalize difference things like CPU, number of instances, data storage and bandwidth cost etc into a single metric? And then have enough physical servers etc so that too much instance swapping is prevented. With a normalization like that

[appengine-java] Re: Always On not working properly

2011-08-25 Thread Anders
Also, if I remember correctly, in the new pricing model there will not be possible to reserve instances other than to cut down the cost; there is no guarantee that the instances will always be loaded. So for an application with low traffic, even with operational support and several reserved fro

[appengine-java] Re: Always On not working properly

2011-08-25 Thread Anders
Isn't it possible to treat instances similar to pages in a virtual memory page swapping algorithm? And if too many page swaps are made too frequently then either the page swapping algorithm sucks or there is too little physical memory (or both :D). I doubt that the Google engineers are using a

[appengine-java] Re: Always On not working properly

2011-08-25 Thread Anders
I'm not sure if it's worse with Always On activated or inactivated. I activated that option because new instances were starting all the time, like every second when it was really bad. So Always On is perhaps better than that, but it's really horrible either way! I'm surprised that Google hasn't

[appengine-java] Re: Always On not working properly

2011-08-25 Thread Anders
Ok, but as Always On is working now is totally unacceptable. Google needs to fix this immediately imo. -- 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/googl

[appengine-java] Re: Always On not working properly

2011-08-25 Thread Anders
Now it's starting to get even worse than before Always On was activated! See above picture (with a lot of red in it, lol). The app engine id is: tweetvote2 -- You received this message because you are

[appengine-java] Always On not working properly

2011-08-25 Thread Anders
I switched on the Always On option and it works inasmuch as the dashboard shows three resident instances but new instances are started sometimes with only a few seconds between page accesses with very low overall traffic. In the log the message "This request caused a new process to be started fo

Re: [appengine-java] Re: Feelings about new pricing model

2011-05-22 Thread Anders
If the application is multithreaded then new instances would not be needed, but yes if it's a single thread application and new requests need to be served then I suppose new instances must be spawned if the latency becomes too large. But will that happen often in practice? -- You received this

[appengine-java] Re: Feelings about new pricing model

2011-05-22 Thread Anders
And it is said that the new price model is more transparent. But CPU hours at least sounds more transparent. How many instances share the same CPU in a GAE server? 1, 2, 10 or 100? The new price model seems more opaque. For example, if 10 instances share the same CPU, then only (at best, not co

[appengine-java] Re: Feelings about new pricing model

2011-05-22 Thread Anders
The new price model says $0.08/hour for every new instance. http://www.google.com/enterprise/appengine/appengine_pricing.html That sounds extremely expensive, or have I missed something? One GAE server no doubt runs many instances, or? 0.08 * 24 * 30 = $57.6 per month. Yikes. At the moment my app

Re: [appengine-java] Re: JSP page as Warmup Servlet

2011-05-17 Thread Anders
Ok. Excellent. -- 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...@googlegrou

[appengine-java] Re: JSP page as Warmup Servlet

2011-05-16 Thread Anders
The documentation doesn't mention it (as far as I could see), but I take it that warmup servlets can be given admin auth-constraint. -- 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-appen

Re: [appengine-java] JSP page as Warmup Servlet

2011-05-16 Thread Anders
Oh, only jspInit(), not jspService() that renders the actual page. Hmm... Then it's perhaps better to have a separate warmup servlet instead. Overriding the jspInit() method sounds like messy coding. Alternatively to have 1 for both JSP pages and a separate warmup servlet that makes calls to th

Re: [appengine-java] JSP page as Warmup Servlet

2011-05-16 Thread Anders Lindman
use JSP dispatch to the JSP. >> >> Ikai Lan >> Developer Programs Engineer, Google App Engine >> Blog: http://googleappengine.blogspot.com >> Twitter: http://twitter.com/app_engine >> Reddit: http://www.reddit.com/r/appengine >> >> >> >> On Sun, May 15, 2011 at

Re: [appengine-java] JSP page as Warmup Servlet

2011-05-16 Thread Anders Lindman
loper Programs Engineer, Google App Engine > Blog: http://googleappengine.blogspot.com > Twitter: http://twitter.com/app_engine > Reddit: http://www.reddit.com/r/appengine > > > > On Sun, May 15, 2011 at 11:18 PM, Anders wrote: > >> Is it possible

[appengine-java] JSP page as Warmup Servlet

2011-05-15 Thread Anders
Is it possible to use a JSP page as a warmup Servlet in Google App Engine for Java? Example: search /search.jsp 1 Sice JSP pages are compiled into Servlets this should work in theory, unless JSP pages and ordinary Servlets are treated differently under the hoo

[appengine-java] Re: Google maps geocoder responds with 620 error since last nights server maintenance

2010-02-22 Thread Anders
o API key. > > On Mon, Feb 22, 2010 at 1:14 PM, Ikai L (Google) wrote: > > > > > I'm working on it. Seems like I sent out a false all clear because this > > began working for a portion of applications. > > > On Mon, Feb 22, 2010 at 12:43 PM, Anders wrot

[appengine-java] Re: Google maps geocoder responds with 620 error since last nights server maintenance

2010-02-22 Thread Anders
Any updates Ikai? On 21 Feb, 03:46, Ivan Pardo wrote: > I'm having the same problem. > > On Feb 20, 3:06 am, Anders wrote: > > > > > Still having problems here as well. What you are seeing Jeff is > > probably the bot information page, besides 620s I'm getting this > > response: > > > Sorry...

[appengine-java] Re: Google maps geocoder responds with 620 error since last nights server maintenance

2010-02-20 Thread Anders
sues! > > >>>>http://code.google.com/p/googleappengine/issues/detail?id=2806 > > >>>>http://code.google.com/p/gmaps-api-issues/issues/detail?id=2186 > > >>>> This problem is a really big deal, several features of my app depend >

[appengine-java] Re: Google maps geocoder responds with 620 error since last nights server maintenance

2010-02-19 Thread Anders
Same problem here. No problems for 4 months with unchanged mapping code and as of the last day mostly 620 results. I am running on the python appengine but as previously said this is probably an issue with the geocoder IP limit. On 19 Feb, 07:21, Ivan Pardo wrote: > ive entered this is a bug on

[appengine-java] Re: Google maps geocoder responds with 620 error since last nights server maintenance

2010-02-19 Thread Anders
Same problem here. But besides getting 620 results I'm also seeing the bot issue page: "We're sorry... ... but your computer or network may be sending automated queries." Guess it must be problem with the geocoder and whitelist of appengine IPs On 19 Feb, 07:21, Ivan Pardo wrote: > ive entered