...
You'll see something like this in setenv.[bat,sh]:
Code Block | ||
---|---|---|
| ||
set JAVA_OPTS=-Xms128m -Xmx512m-Xms256m -Xmx1024m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dfile.encoding=UTF-8 -Djava.awt.headless=true -DfrevvoDspring.usersconfig.pathlocation="%CATALINA_HOME%\..\data\usersfile:///%CATALINA_BASE%/conf/,file:///%CATALINA_BASE%/conf/frevvo-config.properties" -Dderby.stream.error.file="%CATALINA_BASE%/logs/derby.log" |
Live Forms as a windows service
...
By default, the <frevvo-home>\solr-5.4.1\bin\solr script,sets the maximum Java heap size to 512M (-Xmx512m). This may not be sufficient especially when reporting on/indexing a large number of submissions. It may cause "out of memory" exceptions in the <frevvo-home>solr-5.4.1\server\logs\solr.log file. The JVM heap size can be increased to resolve this. Make sure that the machine where the Insight Server is installed has enough memory to accommodate your changes.
Follow these steps:
- Stop the Insight Server.
- Uncomment
...
- the set SOLR_JAVA_MEM
...
- statement in the OS specific solr.in.* file (cmd for windows, sh for linux).
- Change the
...
- values.
For example, to increase the max heap size to 1G use: -Xms512m –Xmx1g.
...
- For *nix OS, make sure SOLR_HEAP
...
- is commented out.
- Restart the Insight Server.
Code Block |
---|
#REM Increase Java Min/Max Heap as needed to support your indexing / query needs #SOLR_HEAP="512m" # Expert: If you want finer control over memory options, specify them directly # Comment out SOLR_HEAP if you are using this though, that takes precedence set SOLR_JAVA_MEM="-Xms512m -Xmx1g"Xmx512m |
Troubleshooting
Solutions for memory errors are discussed below.
...
After making these modifications to the service.bat file, you must Remove/Reinstall Live Forms as a Windows service for the changes to take effect.
OutOfMemoryError: PermGen space
MemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Java has a fixed space allocated for classes and other statics that is usually enough in normal cases, but could be quickly filled up if there is on the fly code generation, significant business logic in your forms or if and the Insight server are running on the same machine.
To solve this edit setenv.[bat,sh] (or service.bat if you are running as a Windows service) to increase the maximum perm size via the paramenter: -XX:MaxPermSize
For example: -XX:MaxPermSize=1024m
After making these modifications to the service.bat file, you must Remove/Reinstall Live Forms as a Windows service for the changes to take effect.
Out of Memory Errors in the Insight Server log:
...