justb4 / docker-jmeter

Docker image for Apache JMeter
MIT License
278 stars 310 forks source link

/jmeter-entrypoint.sh: line 13: JVM_XMN: parameter not set #66

Open karimahlafi opened 2 years ago

karimahlafi commented 2 years ago

Hello,

I took the entrypoint.sh to set up a docker image, i have created the dockerfile for jmeter, with the entrypoint.sh that you've provided.

the image build passes successfully, as following :

docker build -f Dockerfile-jmeter --build-arg <proxy> -t alpine.jmeter .

and i get my image

REPOSITORY                                    TAG       IMAGE ID       CREATED          SIZE
alpine.jmeter                                 latest    ae5d190b10fc   26 minutes ago   889MB

how ever, in the moment when i want to run the image in a contianer, using command line

docker run --name alpine.jmeter -it alpine.jmeter

i get the following issue

/jmeter-entrypoint.sh: line 13: JVM_XMN: parameter not set

and its these parameter right here

[[ -z ${JVM_XMN} ]] && JVM_XMN=$(($freeMem/10*2))
[[ -z ${JVM_XMS} ]] && JVM_XMS=$(($freeMem/10*8))
[[ -z ${JVM_XMX} ]] && JVM_XMX=$(($freeMem/10*8))

can you help ?

thank you in advance,