Skip to content

asimarunava/javainterview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Below are the JVM related options for better profiling

-XX:+PrintCompilation

This option will show if the some portion of the code is used by C1 or C2 compiler to create Native code block for Faster execution. Level 1,2,3 is C1. Level 4 is C2. C2 is better. JVM decidees it. These are JIT compiler. Not like compile java code. While running JVM decides if a particular method is being invoked many times then it will again compile it using JIT for better performance.

-XX:+UnlockDiagnosticVMPtions -XX:+LogCompilation

This will log the compilation output to a file.

-XX:+PrintCodeCache

Check for Code cache size.

-XX:ReservedCodeCacheSize

Set the Code Cache Size 28m => 28Mega Byte

About

This Repo is for practice and share Java Interview Question and solution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published