Jump to content
We've recently updated our Privacy Statement, available here ×

cstallins

Members
  • Posts

    6
  • Joined

  • Last visited

cstallins's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. One solution is to use two text fields. Add a text field adjacent to the image, and a second text field below the image and adjacent text field. Of course text will not flow automatically from one text field to the next, so a sentence or paragraph break might be wise between the two text fields.
  2. In the JasperReports Server v5.6 Ad Hoc editor, to add a currency symbol to column values, right-click on the header of the column, mouse over Change Data Format, and select a format. To calculate counts for a measure, at the right end of the Measures panel header, mouse over the small selector icon and select Create Calculated Measure. The New Calculated Measure window appears. In the Functions pane near the center of the window, scroll to find the appropriate Count function (there are three) and double-click to add it to the Formula pane above. The Function Description pane near the lower right displays text that explains how to configure the function. At the top of the window, provide an appropriate name in the Measure Name field. Click the Validate button near the bottom left to determine if your function is configured properly. Click the Create Measure button at the lower left to save your new calculated field to the Fields or Measures panel, from which you can double-click to add it to your Ad Hoc view. Repeat to create a percentages column, this time using the PercentOf function. See chapter 4.6 in the JasperReports Server User Guide for detailed info on all of the calculated field functions. The guide is available free at http://community.jaspersoft.com/documentation?version=10870
  3. Until you find a better solution you might consider setting the automatic refresh rate to fifteen minutes or so. In the JasperReports Server dashboard designer, right-click on a report on the design canvas and in the context menu mouse over Auto-refresh Interval to select the number of minutes you want to elapse between refreshes.
  4. Since v4.0 Tomcat now runs as a service. JConsole, JvisualVM and similar JVM monitoring tools apparently won't start and/or run properly unless you configure the JVM parameters through the tomcat6w.exe Properties window instead of in setenv.bat. Follow these steps to properly configure the JVM parameters on Windows when running TIBCO JasperReports® Server v4 : On Windows 7/XP open a command line. Navigate to the /tomcat/bin directory Enter: tomcat6w //ES//jasperreportsTomcat to open the tomcat6w Properties window. After the Properties window opens, click the Java tab and scroll to the bottom of the Java Options pane. Enter these four options (or the ones you need) to prepare JConsole for monitoring: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.authenticate=false ...and any other parameters you need. You also can enter your Heap and PermGen settings. For example: –Xms1024m –Xmx1024m –XX:PermSize=128m –XX:MaxPermSize=128m Press OK or Apply to save the edits. Stop and restart Tomcat. Use Windows Explorer to find javabin Right-click jconsole.exe and select Open. In the New Connection window, select Remote Process and enter: localhost:8888 (or whatever port value you entered above).Click the Connect button to start JConsole.
  5. Facts about the Ad-Hoc (non OLAP) cacheCache for non OLAP ad-hoc analysis features the following: Every query generated by the ad-hoc analysis engine returns a result set that goes directly into the cache where it is further manipulatedEvery query is analyzed to determine if there is a result set for it already in the cache or whether the query needs can be executed against the data sourceEvery new query result set gets added to the cache, there is no limit on the number of result sets in the cacheIt is possible to trigger OOM if the cache size is too smallThere is currently no setting limiting the total size of the cache (not true as of Jaspersoft 5! see ehcache config)A query result set stays in memory until evictedThere are two configuration settings defining the eviction algorithmA result set gets evicted if there was no activity on it for at least 20 minutes (a default setting)A result set gets evicted if stays in cache for at least 60 minutesFiltering, Sorting and Calculated Fields with Ad-hoc CacheFiltering is currently done in SQL, which means that we push the filtering work down to a database rather than doing it in the cache There is an internal setting allowing to do filtering in memory but it is turned off because filtering in-memory turns out to be slow. If you want to experiment with this find the property applyQueryFilterInMemory in applicationContext-adhoc.xml. Note: In v4.7 and beyond, the property is found in applicationContext-adhoc-dataStrategy.xml.Calculated fields currently work in memory only for topics. If a calculated field is defined in domains then it is executed through a SQL statement. This effectively gives user an option of pushing calculated fields operations down to a database. Sorting is done in SQL, aka in the database but if the entire result set is in memory already then sorting will happen in memory Notes on Domains and TopicsAd-hoc operations on domains: SQL is generated in its entirety allowing for greater flexibility and performance optimizationAd-hoc operations on topics: SQL is defined as a parametrized query. Only SQL that is already defined operates on a full result set in memorythere is an option in topics to do query generation (as a nested query) or a derived table approachNote on Ad-hoc Cache SharingAd-hoc cache is shared for a given domain. It means that multiple users doing ad-hoc analysis using the same domain will be sharing the cache. Configuring the Cache TimeoutEach dataset cached by Ad Hoc has a maximum time that it stays in the cache: If a dataset is not used, it is flushed from the cache after 20 minutes.If the data set is being used, it is still flushed after 60 minutes.You can change this behavior by editing these properties in the /WEB-INF/applicationContext-datarator.xml (in v3.7.1 and earlier check /WEB-INF/applicationContext-adhoc.xml): <!-- defaultTimeoutMinutes: the absolute longest time in minutes that a dataset can live in the cache --><property name="defaultTimeoutMinutes" value="60" /><!-- defaultUnusedTimeoutMinutes: the longest time a dataset can stay since the last time it was used --><property name="defaultUnusedTimeoutMinutes" value="20" /> Set these values higher to increase the time a dataset can stay in the cache; decrease them to have JasperServer refresh the result sets in the Ad Hoc cache more frequently. Obviously, this may impact performance when reports are run. Settings Exposed in the UINote: These settings are not persistent, you must redo them after a restart, to make them persist edit the XML files in WEB-INF. Ad Hoc Dataset Row Limitthere is no visual indication when result set exceeds the maximum rows settingonce result set reaches the threshold defined by the setting it will throw an exceptiona partial query result set execution is not supported at the momentAlso see: Ad Hoc Row LimitAd Hoc Query Timeoutif there is a long running query reaching the timeout threshold it will throw an exceptiona timeout value of zero means this query is always re executed against the data sourceOptimize Queries for JDBC-based ReportsSelects grouping, sorting, and aggregation of queries for JDBC-based reports. Otherwise, the queries run unaltered in memory.Optimize Queries for Domain-based ReportsSelects grouping, sorting, and aggregation of queries for Domain-based reports. Otherwise, the queries run unaltered in memory.Disabling the Ad Hoc CacheIf your solution has very quickly changing data and you rely on having the most current information, you may wish to disable the Ad Hoc Cache entirely. In order to disable the cache, simply set both values to "0". This will ensure that the cached results are never used. Note: The clean-up thread time setting in this file should be left to allow clean-up on a regular interval and optimize the impact on system performance and memory utilization.
×
×
  • Create New...