Watch Aspire live streamsDocsTry Aspire

withJvmArgs

Method
📦 Aspire.Hosting.Java v13.6.5-preview.1.26559.7
interface JavaAppResource {
// ... omitted for brevity
withJvmArgs(args: string[]): IJavaAppResource;
}

Signature

methodwithJvmArgsbuilder
Adds arguments to the Java Virtual Machine that runs the application.
withJvmArgs(args: string[]): IJavaAppResource
argsstring[]The JVM arguments, for example `-Xmx512m`.
IJavaAppResource

Applies to

This method applies to the following types: