The below guide is a startup point to tune the Siteminder Adminui Jboss/Wildfly which will help cases with High CPU and out of memory issues
Environment
12.8.x
Resolution
Below are some starting guidelines to address Performance / CPU and memory issues with the Siteminder Adminui running on JBoss or Wildfly (out of the box)
The fine-tuned configurations that we recommend for optimizing the performance of the JBoss or Wildfly application server are:
Recommended JVM Settings
Set the JVM settings:
Windows
Navigate to <JBOSS_HOME>\bin.
Open standalone.conf.bat for editing.
Set the JVM parameters in JAVA_OPTS with the following recommended values:
Example : set "JAVA_OPTS=-Xms512m -Xmx4096m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+UseCompressedOops -Djava.awt.headless=true -Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true"
Linux
Navigate to <JBOSS_HOME>\bin.
Open standalone.conf for editing.
Set the JVM parameters in JAVA_OPTS with the following recommended values:
If the return value is less than 1000, then consider adding an Entropy Pump to all servers.
Fine Tuning Garbage Collection
You can adapt and tune the garbage collection for your application performance needs by entering the following options with changed settings on the JVM command line:
Sets the number of parallel marking threads. Sets n to approximately 1/4 of the number of parallel garbage collection threads (ParallelGCThreads).
-XX:ParallelGCThreads=22
Sets the value of the STW worker threads. Sets the value of n to the number of logical processors. The value of n is the same as the number of logical processors up to a value of 8.
-XX:MaxGCPauseMillis=1000
Sets a target value for desired maximum pause time. The default value is 200 milliseconds. The specified value does not adapt to your heap size.
-XX:InitiatingHeapOccupancyPercent=40
Sets the Java heap occupancy threshold that triggers a marking cycle. The default occupancy is 45 percent of the entire Java heap.
-XX:G1HeapWastePercent=2
Sets the percentage of heap that you are willing to waste. The Java HotSpot VM does not initiate the mixed garbage collection cycle when the reclaimable percentage is less than the heap waste percentage. The default is 10 percent.
-XX:G1ReservePercent=15
Sets the percentage of reserve memory to keep free so as to reduce the risk of to-space overflows. The default is 10 percent. When you increase or decrease the percentage, make sure to adjust the total Java heap by the same amount.
-XX:G1OldCSetRegionThresholdPercent=15
Sets an upper limit on the number of old regions to be collected during a mixed garbage collection cycle. The default is 10 percent of the Java heap.
-XX:G1MixedGCLiveThresholdPercent=90
Sets the occupancy threshold for an old region to be included in a mixed garbage collection cycle. The default occupancy is 65 percent.
-XX:G1NewSizePercent=2
Sets the percentage of the heap to use as the minimum for the young generation size. The default value is 5 percent of your Java heap. This is an experimental flag.
-XX:G1MaxNewSizePercent=25
Sets the percentage of the heap size to use as the maximum for young generation size. The default value is 60 percent of your Java heap. This is an experimental flag.