July 2016
Intermediate to advanced
490 pages
10h 54m
English
Graphs and report generation always cause an OutOfMemoryError in any JEE-based applications. This chapter recommends adding the following VM options to the application server to avoid an application crash:
-Xmx1000M -Xms500M -XX:PermSize=256M
The following screenshot shows a snapshot of memory usage in HRMS during user testing. Using VisualVM, the heap snapshots were captured before and after the memory management has been applied to the JVM. The following screenshot shows that, before memory management, the HRMS consumes more heap space as the plugins generate all the graphs and charts. Adjusting the minimum and maximum heap spaces stabilizes the amount of heap space used.
Read now
Unlock full access