Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVM don't recognize option MaxLiveObjectEvacuationRatio #3763

Closed
asfimport opened this issue Jan 7, 2016 · 5 comments
Closed

JVM don't recognize option MaxLiveObjectEvacuationRatio #3763

asfimport opened this issue Jan 7, 2016 · 5 comments

Comments

@asfimport
Copy link
Collaborator

kapsh (Bug 58814):
Oracle hotspot vm ver 1.8.0_66 raises an error when I am trying launch jmeter:

Unrecognized VM option 'MaxLiveObjectEvacuationRatio=20'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

So I can't run gui until I commented out this option in startup script or used IcedTea which just shows a warning:
OpenJDK 64-Bit Server VM warning: ignoring option MaxLiveObjectEvacuationRatio=20; support was removed in 6.0_24

Problem on my system was in file /opt/jmeter/bin/jmeter on line:
EVACUATION="-XX:MaxLiveObjectEvacuationRatio=20"

Severity: minor
OS: Linux

@asfimport
Copy link
Collaborator Author

@pmouawad (migrated from Bugzilla):
Bugzilla is not a support forum.
Besides this question has no relation with JMeter.
Most probably your Java version does not havee these options.

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
(In reply to Philippe Mouawad from comment 1)

Besides this question has no relation with JMeter.

The file in question is part of JMeter.

Most probably your Java version does not havee these options.

That is true; the problem is that Java 8 fails to start rather than warning that it cannot process the option.

For the command-line:

$ java -XX:MaxLiveObjectEvacuationRatio=20 -version

Java 7 gives:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxLiveObjectEvacuationRatio=20; support was removed in 6.0_24
java version "1.7.0_79"

Java 8 gives:
Unrecognized VM option 'MaxLiveObjectEvacuationRatio=20'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I think this is unfortunate behaviour of the JVM (possibly a bug), but since JMeter requires at least Java 7, the option should be removed from any scripts.

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
Further investigation shows that the setting was commented out since at least v 2.5.1.

However the option is now completely redundant and should be removed to avoid confusion.

Note: if you really are using version 2.0.1, you really should upgrade as that is ancient.

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
URL: http://svn.apache.org/viewvc?rev=1723538&view=rev
Log:
JVM don't recognize option MaxLiveObjectEvacuationRatio; remove from comments
#3763

Modified:
jmeter/trunk/bin/jmeter
jmeter/trunk/bin/jmeter.bat
jmeter/trunk/xdocs/changes.xml

@asfimport
Copy link
Collaborator Author

kapsh (migrated from Bugzilla):
(In reply to Sebb from comment 3)

Further investigation shows that the setting was commented out since at
least v 2.5.1.

However the option is now completely redundant and should be removed to
avoid confusion.

Note: if you really are using version 2.0.1, you really should upgrade as
that is ancient.

Okay, thanks. It seems like my distro has not newer version yet so I was misleaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant