Issue:
The following is a procedure to check whether Ad Hoc Cache is on or off
Resolution:
- Open "WEB-INF/applicationContext-datarator.xml"
- Set defaultTimeoutMinutes to 60
- Set defaultUnusedTimeoutMinutes to 20
- Save the file and start Tomcat
- Start jasperserver and login as superuser
- Go to "Manage" -> "Log Setting"
- Turn on "DEBUG" for Ad Hoc cache activity Enter "com.jaspersoft.commons.datarator.DataSetCacheImpl" at the text box at the bottom of the page and select "DEBUG"
- Enter "com.jaspersoft.commons.datarator.DataSetCacheImpl" at the text box at the bottom of the page and select "DEBUG"
- Create the report and run the report
- You should able to see some debug statements that end with "found" or "not found". Those are the debug statements from cache look up.
For example,
2011-07-07 12:47:25,261 DEBUG DataSetCacheImpl,"http-bio-8080"-exec-1:104 - {query=select `users`.`f irst_name` as `users_first not found
2011-07-07 12:47:25,377 DEBUG DataSetCacheImpl,"http-bio-8080"-exec-1:104 - {query=select `users`.`f irst_name` as `users_first found
- Open "WEB-INF/applicationContext-datarator.xml"
- Set defaultTimeoutMinutes to 0
- Set defaultUnusedTimeoutMinutes to 0
- Repeat steps 4 to 9
- Copy the log to a text editor and do a search on the log file.
You should not able to find any statement ends with "found" or "not found". (It is because JS disables in-memory cache if deafaultTimeoutMinutes is set to less than or equals 0)
Ref. Case #00021586 -- 01:31, 2 September 2011 (UTC)
Recommended Comments
There are no comments to display.