The CAS Service startup script has an optional Java Virtual Machine (-JVM) flag.
cas-service Flag |
Flag Argument |
---|---|
|
Allows arguments on the command line to be passed to the JVM. If this flag is used, any arguments after it are passed to the CAS Service and any arguments afterwards are appended to those passed to the JVM. Note that on Windows machines, the flag parameters should be quoted if they contain equal signs. Optional. |
To pass arguments to the JVM, you can use the -JVM
script
flag.
For example, assume you want to override the default maximum heap size setting of 1024 MB with a setting of 2048 MB. The command line is as follows:
cas-service -JVM -Xmx2048m
Keep in mind that this flag must be the last flag on the command line, because any arguments that follow it are appended to those passed to the JVM.