I know that app engine uses the memcache and the datastore for sessions. I can see in appstats that when i call getSession(), creating a new session, that 1 memcache and 1 datastore put occur.
However, in every single request of my app I get the current user object from the session. And no memcache or datastore gets show up in appstats.
How does that work?
The Google blog "Easy Performance Profiling with Appstats" has a nice article that looks at profiling memcache in Appstats. It’s discussed in Python, but references the use of Appstats for Java.
From: "Google App Engine > Appstats for Java"
If you’re having problems with memcache data not showing up in Appstats, you might want to look at JCache as an interface to the App Engine memcache service. Or, there are a few tools tailored to reporting memcached statistics recommended here.
Cheers.