N
InsightHorizon Digest

What is JVM WebLogic

Author

Joseph Russell

Updated on April 12, 2026

The Java virtual machine (JVM) is a virtual “execution engine” instance that executes the bytecodes in Java class files on a microprocessor. How you tune your JVM affects the performance of WebLogic Server and your applications.

What is the default JVM used for WebLogic?

26. What is the name of the default JVM which is used for a WebLogic server? The Sun HotSpot JDK is the default JVM that is available for development whereas JRockit is the JVM that is used for the production of WebLogic servers.

What is JVM memory?

The JVM memory consists of the following segments: Heap Memory, which is the storage for Java objects. Non-Heap Memory, which is used by Java to store loaded classes and other meta-data. JVM code itself, JVM internal structures, loaded profiler agent code and data, etc.

What is JVM tuning?

JVM tuning mainly involves optimizing the garbage collector for better collection performance so that applications running on VMs can have a larger throughput while using less memory and experiencing lower latency.

What is XMX JVM?

The flag Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM), while Xms specifies the initial memory allocation pool. This means that your JVM will be started with Xms amount of memory and will be able to use a maximum of Xmx amount of memory.

How do I monitor heap size in WebLogic?

  1. Expand your WebLogic domain then expand Servers.
  2. Click the server you intend to monitor.
  3. Select the Monitoring tab, and the Performance sub-tab.

How do I increase heap size in WebLogic?

  1. Open the setDomainEnv file in a text editor.
  2. Search for this comment line: …
  3. Immediately after the comment line, add one of these lines: …
  4. Save the file.
  5. Re-start WebLogic Server.

How is JVM memory allocated?

The JVM divides its memory into two main categories: heap memory and non-heap memory. Heap memory is the part with which people are typically the most familiar. It’s where objects that are created by the application are stored. They remain there until they are no longer referenced and are garbage collected.

What is JVM garbage collection?

A Definition of Java Garbage Collection. Java garbage collection is the process by which Java programs perform automatic memory management. Java programs compile to bytecode that can be run on a Java Virtual Machine, or JVM for short. … The garbage collector finds these unused objects and deletes them to free up memory.

What are the different types of memory used by JVM?
  • Class(Method) Area.
  • Heap.
  • Stack.
  • Program Counter Register.
  • Native Method Stack.
Article first time published on

How much RAM does JVM use?

This resource memory used by the JVM is often called overhead. The recommended minimum starting memory point for 64-bit Maximo 7.5 JVMs systems is 3584 MB. Therefore we recommended that physical memory availability for each JVM be 4096 MB;0.5 GB is for JVM allocation and 512 MB is for overhead.

Why does JVM use so much memory?

Java is also a very high-level Object-Oriented programming language (OOP) which means that while the application code itself is much easier to maintain, the objects that are instantiated will use that much more memory.

What causes high heap memory usage?

High heap usage occurs when the garbage collection process cannot keep up. An indicator of high heap usage is when the garbage collection is incapable of reducing the heap usage to around 30%.

What is the difference between XMS and XMX?

Xms is minimum heap size which is allocated at initialization of JVM in java. Xmx is the maximum heap size that JVM can use. It will set the minimum heap size of JVM to 512 megabytes.

What is XX MaxPermSize?

The -XX:MaxPermSize option specifies the maximum size for the permanent generation, which is the memory holding objects such as classes and methods. Properly tuning this parameter can reduce memory issues in the permanent generation.

Should XMX and XMS be the same?

Oracle recommends setting the minimum heap size ( -Xms) equal to the maximum heap size ( -Xmx) to minimize garbage collections.

Where are JVM parameters set in WebLogic?

  1. In the Domain Structure pane, expand the Servers node.
  2. Click the name of the server that you want to configure.
  3. In the right pane, click Server Start.
  4. Select Lock & Edit.
  5. In the Arguments text box, provide the JVM options. …
  6. Restart the server so that the new settings are used.

What is XMS and XMX in WebLogic?

Xmx – is the max size of the heap. Xms – is the initial size of the heap.( give it the same as Xmx ) XX:MaxPermSize – is is used to hold reflective of the VM itself such as class objects and method objects ( it’s independent from the heap size,, give it the 1/3 to 1/4 of the Xms size depend in your classes size)

How do I increase memory in WebLogic?

  1. Stop your application server.
  2. Open the startWebLogic script file.
  3. Find the following line and alter the values to suit your server usage. You can override the default heap size by using the -Xms and -Xmx switches to specify the initial and maximum sizes.

How do I troubleshoot out of memory error in WebLogic?

By default the Xms and Xmx values set by WebLogic server are : 256m and 512m. Looks like your application needs more than 512MB heap memory. So you need to increase the maximum heap size (Xmx) to avoid frequent OutOfMemory error.

How do I check memory usage in WebLogic?

How to Check Memory Usage in WebLogic Console and Monitoring WebLogic JVM Heap and CPU Usage in WLSDM. Expand your WebLogic domain then expand Servers. Click the server you intend to monitor. Select the Monitoring tab, and the Performance sub-tab.

What is heap in WebLogic?

Java objects reside in an area called the heap. The Heap is created when the JVM starts up and may increase or decrease in size while the application runs. When the heap become full, objects that are no longer used are cleared, thus making space for new objects.

How does a JVM interpreter work?

The JVM converts that code into machine code using the Java interpreter. The JVM uses the interpreter at runtime, after that it execute the code on the host machine. As the Java compiler compiles the source code into the Java bytecode. … It loads the Java class file and interprets the compiled byte-code.

What triggers garbage collection Java?

When a JVM runs out of space in the storage heap and is unable to allocate any more objects (an allocation failure), a garbage collection is triggered. The Garbage Collector cleans up objects in the storage heap that are no longer being referenced by applications and frees some of the space.

What will happen when a garbage collection kicks off?

7. What happens to the thread when garbage collection kicks off? Explanation: The thread is paused when garbage collection runs which slows the application performance.

Why JVM heap utilization is too high?

High memory utilization is the cause for excessive garbage collection. In some cases, hardware restrictions make it impossible to simply increase the heap size of the JVM. In other cases, increasing the heap size does not solve but only delays the problem because the utilization just keeps growing.

Is JVM heavy?

The JVM is not that heavy | Hacker News. Also worth noting that the JVM itself only weighs a couple of megabytes. The bulk of the size comes from the Java runtime (ie: the “standard libraries”), and there are lots of things that your app may not need there (XML parsing, serialization, etc…)

How do I free up JVM memory?

A. If there is no memory left, then the JVM will attempt to free some memory by using the garbage collector. The garbage collector will try to release memory that is no longer required to run the program back to the JVM.

What are the two flavors of JVM?

The JVM comes in two flavors − client and server. Both of these share the same runtime code but differ in what JIT is used.

What is a stack vs heap?

Stack is a linear data structure whereas Heap is a hierarchical data structure. Stack memory will never become fragmented whereas Heap memory can become fragmented as blocks of memory are first allocated and then freed. Stack accesses local variables only while Heap allows you to access variables globally.

Is 4GB RAM enough for Java?

The amount of RAM is one of most important things to consider. As a programmer, you might need to run heavy IDEs and virtual machines. … A laptop with 4GB of RAM should suffice. However, application or software developers who need to run virtual machines, emulators and IDEs to compile massive projects will need more RAM.