Reputation: 4011
Regarding a Java EE application and WebLogic; I've noticed that I could change the Java VM (Sun JDK or JRockit) in different places:
Can you explain me what happens if I change one of the different settings?
Upvotes: 3
Views: 1620
Reputation: 53462
There are really only two main use cases that I can think of. Standalone client apps, which care about startup time and not about GC in the long run, and server usage, which doesn't really care about startup time but GC and steady performance in the long rung is vital. Some apps may create (class) instances runtime a lot more than others, so that might have an impact as well.
About the differences:
If you change it manually, you will likely see an error about unsupported debug flags. Once you change those, you can hit a PermGen error earlier on the Oracle VM: other than that, I would expect you only see a difference in GC profiles and/or performance testing.
In the long run you might want to take a look at what this thread has to say. JRockit and Oracle JVM will become one and the same.
Upvotes: 0
Reputation: 6227
The only real difference is that JRockit is specifically tuned to work with Weblogic so you'll see performance improvements. Memory settings will change when picking one or the other as well.
There are two easy ways to guarantee what JVM your server uses when it is started:
Like you said, there are other places the value can be set but I think the above 2 options are the easiest way to go.
Upvotes: 3