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

research how some JVM arguments would help performance #24

Open
branaway opened this issue Jun 22, 2011 · 3 comments
Open

research how some JVM arguments would help performance #24

branaway opened this issue Jun 22, 2011 · 3 comments

Comments

@branaway
Copy link
Owner

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

some interesting ones:

-XX:+UseCompressedStrings Use a byte[] for Strings which can be represented as pure ASCII. (Introduced in Java 6 Update 21 Performance Release)

-XX:+OptimizeStringConcat Optimize String concatenation operations where possible. (Introduced in Java 6 Update 20)

-XX:+UseStringCache Enables caching of commonly allocated strings.

@tunggad
Copy link

tunggad commented Jun 22, 2011

oh my god, i love your fanatical devotion to performance! Keep up pls.

But these options are not common to all JVMs, only available on HotSpot right? As JRockit is now free too, i will do some research for JRockit and post it here.

@DarkDimius
Copy link

FYI OptimizeStringConcat is bugged and can lead to jvm oops
see http://www.lucidimagination.com/blog/2011/07/28/dont-use-java-7-for-anything/

@branaway
Copy link
Owner Author

thanks for reminding

2012/5/28 DarkDimius <
[email protected]

FYI OptimizeStringConcat is bugged and can lead to jvm oops
see
http://www.lucidimagination.com/blog/2011/07/28/dont-use-java-7-for-anything/


Reply to this email directly or view it on GitHub:
#24 (comment)

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

No branches or pull requests

3 participants