Why Is There Difference In WebLogic MaxMemory VisualVm Vs JConsole ?

(Doc ID 2337748.1)

Last updated on JANUARY 11, 2018

Applies to:

Oracle WebLogic Server - Version 12.2.1.0.0 and later
Microsoft Windows x64 (64-bit) - Version: 2008 R2

Goal

Why is the Maximum Heap shown in Visual VM different from the Maximum Heap shows in JConsole ?  

 

Details:

Weblogic Server 12.2.1.0.0 and Java 8, and set the below Java Memory Arguments :
USER_MEM_ARGS=-Xms256m -Xmx1024m %MEM_DEV_ARGS% %MEM_MAX_PERM_SIZE%

VisualVM is showing 2,147,483,680B as Maximum Heap Size when Maximum heap size is set to 1 MB

Visual VM is showing this Maximum as 2,147,483,680 B/1024 = 2,097,152.03125 KB /1024=2048 MB
JConsole is showing this Maximum as 1,048,576 KB /1024 = 1024 MB
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms