This chapter describes some common issues that can occur while migrating from Oracle JRockit to HotSpot VM, along with their solutions.
Note:
Some of the tools described in this document require a commercial license for use in production. To learn more about commercial features and how to enable them, seehttp://www.oracle.com/technetwork/java/javaseproducts/
.The following table lists some common issues that can occur during the migration process and solutions for resolving them.
Table 7-1 Migrations Issues and Solutions
Problem | Oracle JRockit Option | HotSpot Option | Comments |
---|---|---|---|
Performance degradation after migrating to JDK7. Issue was resolved with the use of |
Default values:
|
Default value on most of the platforms is 48 MB |
With HotSpot VM, it was observed that in some cases increasing |
Increased locking/unlocking events observed after switching to HotSpot. Disabling |
|
|
However if the application has high contended synchronization, then disabling If you face performance issues due to locking/synchronization after migrating to HotSpot, turning off this option may provide some performance gains. |