You can pass options to the JVM via -J. E.g.,
scala -J-Xmx2g ...
More Related Contents:
- What is the difference between def foo = {} and def foo() = {} in Scala?
- How do I parse command line arguments in Scala? [closed]
- Combining two lists into one in Scala
- What is the eta expansion in Scala?
- Read entire file in Scala?
- How to define schema for custom type in Spark SQL?
- Specifying the filename when saving a DataFrame as a CSV [duplicate]
- Spark unionAll multiple dataframes
- Spark performance for Scala vs Python
- How to write spark streaming DF to Kafka topic
- Spark DataFrame: does groupBy after orderBy maintain that order?
- Cartesian product of two lists
- Spark UDAF with ArrayType as bufferSchema performance issues
- I want to get the type of a variable at runtime
- Two ways of currying in Scala; what’s the use-case for each?
- When to use the equals sign in a Scala method declaration?
- “new” keyword in Scala
- Spark: produce RDD[(X, X)] of all possible combinations from RDD[X]
- Functional programming, Scala map and fold left [closed]
- Scala underscore minimal function
- Reduce, fold or scan (Left/Right)?
- Debugging Scala code with simple-build-tool (sbt) and IntelliJ
- Scala case class inheritance
- Can’t prove that singleton types are singleton types while generating type class instance
- Clarification needed about futures and promises in Scala
- How can I convert immutable.Map to mutable.Map in Scala?
- Should I use the final modifier when declaring case classes?
- Is there a simple example of how to generate verilog from Chisel3 module?
- Run a scala code jar appear NoSuchMethodError:scala.Predef$.refArrayOps
- Spark UDF with varargs