tomcat6 Jmeter not working

prasad2703

prasad2703

@prasad2703-4YBw2Y Oct 25, 2024
Hello Guys,

Im new to Tomcat and am trying setup Jmeter working..guess Im missing something here. I have downloaded the binaries and have a default install I trying to run the ./jmeter.sh but get the following error. (operating system in linux) I get the following error

./jmeter.sh: line 31: java: command not found

I see that jmeter.sh has only this uncommented line in it ( line 31) all the others are commented.

java $JVM_ARGS -Dapple.laf.useScreenMenuBar=true -jar `dirname $0`/ApacheJMeter.jar "$@"

If I need to setup the JAVA_HOME and other options where do I set it?
I need to get this running.

Appreciate your help!

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Jul 20, 2009

    Hi,

    Well, I am not sure about its full information but man, I could not see $SERVER variable in your jmeter.sh file. My file [in Windows] has following uncommented information

    SERVER=-server
    java $SERVER $JVM_ARGS -jar `dirname $0`/ApacheJMeter.jar "$@"
    Regarding JAVA_HOME variable, that you can set as an Environment variable.Try it.

    [Update: Check 2.3 and 2.4 section infollowing link. Don't change any files yourself. Simply download the binaries and set paths and run as mentioned by them based on your OS. #-Link-Snipped-#
    ]

    PS: When your jmeter works, please share here also.

    Thanks !
  • prasad2703

    prasad2703

    @prasad2703-4YBw2Y Jul 22, 2009

    Thanks for your reply Shalini.

    The sever="-server" is set in the jmeter file not in the jmeter.sh here are the uncommented lines in the file "jmeter" by default.

    HEAP="-Xms512m -Xmx512m"
    NEW="-XX:NewSize=128m -XX:MaxNewSize=128m"
    TENURING="-XX:MaxTenuringThreshold=2"
    RMIGC="-Dsun.rmi.dgc.client.gcInterval=600000 -Dsun.rmi.dgc.server.gcInterval=600000"
    PERM="-XX😛ermSize=64m -XX:MaxPermSize=64m"
    DUMP="-XX:+HeapDumpOnOutOfMemoryError"
    SERVER="-server"
    ARGS="$SERVER $DUMP $HEAP $NEW $SURVIVOR $TENURING $EVACUATION $RMIGC $PERM"
    java $ARGS $JVM_ARGS -jar `dirname $0`/ApacheJMeter.jar "$@"

    I still havent got this running. :-(