Andreu Alcon
Andreu Alcon

Reputation: 217

JVM error in Apache JMeter 4.0

Apache JMeter 4.0 gives an error from an OS Process Sampler:

"Could not create java virtual machine"

when running a "java -jar ..."

How can we solve this error?

Thank you

Upvotes: 0

Views: 1794

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

You should put java as the "Command" and all the arguments like -jar and friends each on the separate line in the "Command parameters" section of the OS Process Sampler like:

JMeter OS Process Sampler

Example output would be

JMeter -version output

More information: How to Run External Commands and Programs Locally and Remotely from JMeter

Upvotes: 1

Related Questions