All lines in my AppStats look like this: real=19ms cpu=0ms api=0ms overhead=0ms
, it has the correct real time, but the other values are always 0. Anyone have this problem before or know how to fix this?
views:
94answers:
2
A:
My guess would be that since the information it is showing is the same as is available in logs even when AppStats isn't set up, that you've got the Administrative Interface installed ok, but not the filter.
Stephen Denne
2010-05-29 07:18:58
it still shows the real time each individual db call takes within the request, just not cpu_time
Kyle
2010-05-29 23:25:18
A:
Make sure your web.xml is setup like below. Working example here.
<servlet>
<servlet-name>appstats</servlet-name>
<servlet-class>com.google.appengine.tools.appstats.AppstatsServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>appstats</servlet-name>
<url-pattern>/appstats/*</url-pattern>
</servlet-mapping>
<filter>
<filter-name>appstats</filter-name>
<filter-class>com.google.appengine.tools.appstats.AppstatsFilter</filter-class>
<init-param>
<param-name>logMessage</param-name>
<param-value>Appstats available: /appstats/details?time={ID}</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>appstats</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<security-constraint>
<display-name>appstatsConstraint</display-name>
<web-resource-collection>
<web-resource-name>appstatsCollection</web-resource-name>
<url-pattern>/appstats/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
Taylor Leese
2010-05-29 13:23:41