Re: [appengine-java] Re: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread yjun hu
Sorry, i'm using spring+struts , action class means controller in spring
mvc.
run cron job to make reactive, it's a temporary way, just make this problem
always be happen

On Thu, Mar 4, 2010 at 11:51 AM, Wong  wrote:

> I am not sure what do you mean by action class. Could you please give
> me a pointer?
>
> I made change to ping a Controller class every 1 min. Same problem
> persists.
>
> On Mar 4, 11:06 am, yjun hu  wrote:
> > maybe you'd better run hitting an action class, not a simple jsp page.
> >
> >
> >
> > On Thu, Mar 4, 2010 at 11:01 AM, Wong  wrote:
> >
> > > I used to run cron to make request every 1 min to a jsp which only
> > > write out a line of text. I uses a HttpSessionListener to listen for
> > > any "loading request"/startup. Even ping every 1 min the loading
> > > request still happens. I still got 500 error due to the request CPU is
> > > is over the limit.
> >
> > > On Mar 4, 10:21 am, yjun hu  wrote:
> > > > Can anyone confirm that Spring MVC version 2.5.6 is working fine on
> > > > GAE?
> >
> > > > No, the same problem is also in spring2.5
> >
> > > > there is no better way to avoid that, you can try to run cron job to
> make
> > > > your application reactive .
> >
> > > > Hitting a url every 1 miute, i did this ,that's all i did.
> >
> > > > On Thu, Mar 4, 2010 at 10:16 AM, Wong  wrote:
> >
> > > > > This problem normally happens "In the case of loading requests,
> > > > > though, the execution time is artificially longer due to the extra
> > > > > application initialization required.".
> >
> > > > >
> http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern.
> > > ..
> >
> > > > > I am using Spring MVC version 3.0.0 RC1. I can't really do much to
> > > > > reduce the "loading request" or application/framework
> initialization
> > > > > time. And, since this is a hard limit, I think I can't do anything
> > > > > other than switching to other framework or plain servlet. However,
> I
> > > > > also see a lot of posts by other on "loading request" issue even in
> > > > > plain servlet.
> >
> > > > >
> http://groups.google.com/group/google-appengine-java/browse_thread/th.
> > > ..
> >
> > > > > Can anyone confirm that Spring MVC version 2.5.6 is working fine on
> > > > > GAE?
> >
> > > > > On Mar 4, 9:51 am, gholler  wrote:
> > > > > > No, the 30 second limit is a hard limit. If a request can't
> finish in
> > > > > > 30 seconds (or somewhat earlier), you get an exception. You then
> have
> > > > > > an undetermined amount of time before the app engine kills your
> > > > > > request and returns a 500 status code. You wouldn't happen to be
> > > using
> > > > > > Spring, would you?
> >
> > > > > > On Mar 3, 7:57 pm, Wong  wrote:
> >
> > > > > > > Hi,
> >
> > > > > > > I am using Spring MVC. The application being cycled out overly
> > > > > > > aggressively (sometimes less than 1 min)
> >
> > >http://groups.google.com/group/google-appengine-java/browse_thread/th.
> > > > > ..
> >
> > > > > > > I register an HttpSessionListener to listen for "loading
> request"
> > > > > > > which takes more than 20 seconds.
> >
> > > > > > > Due to the long loading request/cold start time, some requests
> hit
> > > the
> > > > > > > following  HardDeadlineExceededError exception.
> >
> > > > > > > Log seen in my Admin Console:
> > > > > > > com.google.apphosting.runtime.HardDeadlineExceededError: This
> > > request
> > > > > > > (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and
> was
> > > > > > > still executing at 2010/03/03 16:41:37.260 UTC.
> >
> > > > > > > This request used a high amount of CPU, and was roughly 1.5
> times
> > > over
> > > > > > > the average request CPU limit. High CPU requests have a small
> > > quota,
> > > > > > > and if you exceed this quota, your app will be temporarily
> > > disabled.
> >
> > > > > > > I am currently on free quota. If I enable billing and set to
> higher
> > > > > > > CPU quota, will I be able to avoid the
> HardDeadlineExceededError
> > > > > > > problem?
> >
> > > > > --
> > > > > 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-j...@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.
> >
> > > > --
> > > > dream or truth
> >
> > > --
> > > 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-j...@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

Re: [appengine-java] Re: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread yjun hu
maybe you'd better run hitting an action class, not a simple jsp page.

On Thu, Mar 4, 2010 at 11:01 AM, Wong  wrote:

>
>
>
> I used to run cron to make request every 1 min to a jsp which only
> write out a line of text. I uses a HttpSessionListener to listen for
> any "loading request"/startup. Even ping every 1 min the loading
> request still happens. I still got 500 error due to the request CPU is
> is over the limit.
>
>
> On Mar 4, 10:21 am, yjun hu  wrote:
> > Can anyone confirm that Spring MVC version 2.5.6 is working fine on
> > GAE?
> >
> > No, the same problem is also in spring2.5
> >
> > there is no better way to avoid that, you can try to run cron job to make
> > your application reactive .
> >
> > Hitting a url every 1 miute, i did this ,that's all i did.
> >
> >
> >
> > On Thu, Mar 4, 2010 at 10:16 AM, Wong  wrote:
> >
> > > This problem normally happens "In the case of loading requests,
> > > though, the execution time is artificially longer due to the extra
> > > application initialization required.".
> >
> > >http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern.
> ..
> >
> > > I am using Spring MVC version 3.0.0 RC1. I can't really do much to
> > > reduce the "loading request" or application/framework initialization
> > > time. And, since this is a hard limit, I think I can't do anything
> > > other than switching to other framework or plain servlet. However, I
> > > also see a lot of posts by other on "loading request" issue even in
> > > plain servlet.
> >
> > >http://groups.google.com/group/google-appengine-java/browse_thread/th.
> ..
> >
> > > Can anyone confirm that Spring MVC version 2.5.6 is working fine on
> > > GAE?
> >
> > > On Mar 4, 9:51 am, gholler  wrote:
> > > > No, the 30 second limit is a hard limit. If a request can't finish in
> > > > 30 seconds (or somewhat earlier), you get an exception. You then have
> > > > an undetermined amount of time before the app engine kills your
> > > > request and returns a 500 status code. You wouldn't happen to be
> using
> > > > Spring, would you?
> >
> > > > On Mar 3, 7:57 pm, Wong  wrote:
> >
> > > > > Hi,
> >
> > > > > I am using Spring MVC. The application being cycled out overly
> > > > > aggressively (sometimes less than 1 min)
> >
> > > > >
> http://groups.google.com/group/google-appengine-java/browse_thread/th.
> > > ..
> >
> > > > > I register an HttpSessionListener to listen for "loading request"
> > > > > which takes more than 20 seconds.
> >
> > > > > Due to the long loading request/cold start time, some requests hit
> the
> > > > > following  HardDeadlineExceededError exception.
> >
> > > > > Log seen in my Admin Console:
> > > > > com.google.apphosting.runtime.HardDeadlineExceededError: This
> request
> > > > > (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
> > > > > still executing at 2010/03/03 16:41:37.260 UTC.
> >
> > > > > This request used a high amount of CPU, and was roughly 1.5 times
> over
> > > > > the average request CPU limit. High CPU requests have a small
> quota,
> > > > > and if you exceed this quota, your app will be temporarily
> disabled.
> >
> > > > > I am currently on free quota. If I enable billing and set to higher
> > > > > CPU quota, will I be able to avoid the HardDeadlineExceededError
> > > > > problem?
> >
> > > --
> > > 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-j...@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.
> >
> > --
> > dream or truth
>
> --
> 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-j...@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.
>
>


-- 
dream or truth

-- 
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-j...@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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread yjun hu
Can anyone confirm that Spring MVC version 2.5.6 is working fine on
GAE?

No, the same problem is also in spring2.5

there is no better way to avoid that, you can try to run cron job to make
your application reactive .

Hitting a url every 1 miute, i did this ,that's all i did.

On Thu, Mar 4, 2010 at 10:16 AM, Wong  wrote:

>
> This problem normally happens "In the case of loading requests,
> though, the execution time is artificially longer due to the extra
> application initialization required.".
>
> http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concerned_About_High_CPU_Warnings
>
> I am using Spring MVC version 3.0.0 RC1. I can't really do much to
> reduce the "loading request" or application/framework initialization
> time. And, since this is a hard limit, I think I can't do anything
> other than switching to other framework or plain servlet. However, I
> also see a lot of posts by other on "loading request" issue even in
> plain servlet.
>
> http://groups.google.com/group/google-appengine-java/browse_thread/thread/b57e6c4895333fa8/6ef609f7da203ab3?lnk=gst&q=overly#6ef609f7da203ab3
>
> Can anyone confirm that Spring MVC version 2.5.6 is working fine on
> GAE?
>
>
>
> On Mar 4, 9:51 am, gholler  wrote:
> > No, the 30 second limit is a hard limit. If a request can't finish in
> > 30 seconds (or somewhat earlier), you get an exception. You then have
> > an undetermined amount of time before the app engine kills your
> > request and returns a 500 status code. You wouldn't happen to be using
> > Spring, would you?
> >
> > On Mar 3, 7:57 pm, Wong  wrote:
> >
> > > Hi,
> >
> > > I am using Spring MVC. The application being cycled out overly
> > > aggressively (sometimes less than 1 min)
> >
> > >http://groups.google.com/group/google-appengine-java/browse_thread/th.
> ..
> >
> > > I register an HttpSessionListener to listen for "loading request"
> > > which takes more than 20 seconds.
> >
> > > Due to the long loading request/cold start time, some requests hit the
> > > following  HardDeadlineExceededError exception.
> >
> > > Log seen in my Admin Console:
> > > com.google.apphosting.runtime.HardDeadlineExceededError: This request
> > > (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
> > > still executing at 2010/03/03 16:41:37.260 UTC.
> >
> > > This request used a high amount of CPU, and was roughly 1.5 times over
> > > the average request CPU limit. High CPU requests have a small quota,
> > > and if you exceed this quota, your app will be temporarily disabled.
> >
> > > I am currently on free quota. If I enable billing and set to higher
> > > CPU quota, will I be able to avoid the HardDeadlineExceededError
> > > problem?
>
> --
> 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-j...@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.
>
>


-- 
dream or truth

-- 
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-j...@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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread John Patterson
Hi Wong, I had this problem a while back when I was doing some  
intensive computations in my code.  Eventually the entire app would  
become blocked for some minutes.  The limit for API CPU is a lot  
higher than for CPU usage in your own code.  I didn't come up with a  
solution to the problem - I am waiting for inspiration to figure out a  
more efficient algorithm.


BTW, the daily CPU quota you increased is different from the "per  
minute" quota that you are running into.


On 4 Mar 2010, at 08:31, Wong wrote:



I enable billing the set the quota to 3 times over the free quota for
CPU Time. However, sometimes the request still fails with HTTP 500
error after app is being cycled out and "loading request" is being
performed.

In the log I see the following message:

This request used a high amount of CPU, and was roughly 1.4 times over
the average request CPU limit. High CPU requests have a small quota,
and if you exceed this quota, your app will be temporarily disabled.

I understand that solving long loading time problem for Spring MVC
should solve the problem. I just want to keep my app running properly
meanwhile waiting for Google for solution.


On Mar 4, 8:57 am, Wong  wrote:

Hi,

I am using Spring MVC. The application being cycled out overly
aggressively (sometimes less than 1 min)

http://groups.google.com/group/google-appengine-java/browse_thread/ 
th...


I register an HttpSessionListener to listen for "loading request"
which takes more than 20 seconds.

Due to the long loading request/cold start time, some requests hit  
the

following  HardDeadlineExceededError exception.

Log seen in my Admin Console:
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
still executing at 2010/03/03 16:41:37.260 UTC.

This request used a high amount of CPU, and was roughly 1.5 times  
over

the average request CPU limit. High CPU requests have a small quota,
and if you exceed this quota, your app will be temporarily disabled.

I am currently on free quota. If I enable billing and set to higher
CPU quota, will I be able to avoid the HardDeadlineExceededError
problem?


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




--
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-j...@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.