Appstats for Python http://code.google.com/appengine/docs/python/tools/appstats.html
On Jul 6, 3:01 pm, saintthor <saintt...@gmail.com> wrote: > what is appstat? > > give me a link please. > > On 7月6日, 下午2时44分, djidjadji <djidja...@gmail.com> wrote: > > > > > If you look with Appstat to requests that use memcache you see that an > > RPC is made for every memcache call. > > > If your assumption is correct then many other apps should have a major bug. > > Instead of logging.debug() try using logging.info(). > > > Very likely that you have a problem in some other part of your code. > > Try to use Appstat to see what the local variables where at the > > different requests. > > Or log all relevant local variables. > > And log the path the code uses. > > > 2010/7/6 saintthor <saintt...@gmail.com>: > > > > are you sure? > > > > even in the cloud, should it show me defferent data in defferent get > > > with same key? > > > > On 7月6日, 下午2时30分, djidjadji <djidja...@gmail.com> wrote: > > >> The memcache is not stored on the same machine as your python > > >> interpreters are running. > > >> The interpreter interacts with the memcache server by RPC (network > > >> packages). > > >> And it could be that the two python interpreters are running at > > >> different machines in the cloud. > > > >> 2010/7/6 Andi Albrecht <albrecht.a...@googlemail.com>: > > > >> > The actual instances are serialized when stored in memcache and > > >> > deserialized when retrieved from the cache. What you're seeing is a > > >> > different instance ID (as returned by id(myobj)) since a new object is > > >> > created. But the state of your Stock.IndexSet instance should be the > > >> > same before storing in memcache and after fetching it from the cache > > >> > again. > > > >> > You should compare the actual data and not the repr() of your > > >> > instances. > > > >> > Hope that helps :) > > > >> > Andi > > > >> > On Tue, Jul 6, 2010 at 7:42 AM, saintthor <saintt...@gmail.com> wrote: > > >> >> it seems there are too entities with same key im my memcache. > > > >> >> codes: > > > >> >> self.szz = memcache.get( MemKey ) > > >> >> if not self.szz: > > >> >> logging.debug( "no szz in memcache" ) > > >> >> self.szz = IndexSet( data ) > > >> >> logging.debug( "dida szz = " + repr( self.szz )) > > >> >> memcache.set( MemKey, self.szz, 10000 ) > > > >> >> log: > > > >> >> 07-05 10:04PM 41.838 dida szz = <Stock.IndexSet object at > > >> >> 0xac27dca7f5d540> > > >> >> 07-05 10:23PM 55.943 dida szz = <Stock.IndexSet object at > > >> >> 0xcd9724f54f1dbb30> > > > >> >> you see, the two szz is defferent, with no log of "no szz in memcache" > > >> >> between them. > > > >> >> so i think there may be too entities with same key im my memcache. > > > >> >> -- > > >> >> 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-appeng...@googlegroups.com. > > >> >> To unsubscribe from this group, send email to > > >> >> google-appengine+unsubscr...@googlegroups.com. > > >> >> For more options, visit this group > > >> >> athttp://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-appeng...@googlegroups.com. > > >> > To unsubscribe from this group, send email to > > >> > google-appengine+unsubscr...@googlegroups.com. > > >> > For more options, visit this group > > >> > athttp://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-appeng...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://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-appeng...@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.