About 883,000 results
Open links in new tab
  1. java - How can I increase the JVM memory? - Stack Overflow

    Feb 19, 2010 · To get the size of the JVM during Runtime you can use Runtime.totalMemory() which returns the total amount of memory in the Java virtual machine, measured in bytes. When calling java use the -Xmx Flag for example -Xmx512m for 512 megs for the heap size.

  2. Memory Types in JVM - Baeldung

    Jan 8, 2024 · Learn about the different memory types in the Java Virtual Machine (JVM) and understand the reasons for some common memory-related errors.

  3. Java Memory Management - GeeksforGeeks

    Jan 2, 2025 · Java memory management is a fundamental concept that involves the automatic allocation and deallocation of objects, managed by the Java Virtual Machine (JVM). The JVM uses a garbage collector to automatically remove unused objects, freeing up memory in …

  4. Java (JVM) Memory Model - Memory Management in Java

    Aug 3, 2022 · Understanding JVM Memory Model, Java Memory Management are very important if you want to understand the working of Java Garbage Collection. Today we will look into memory management in Java, different parts of JVM memory and how to monitor and perform garbage collection tuning.

  5. JVM Memory Management: A Practical Guide from Fundamentals …

    Jan 27, 2025 · Java Virtual Machine (JVM) memory management is pivotal to Java’s “write once, run anywhere” philosophy. By abstracting away low-level allocation and garbage collection details, the JVM allows...

  6. How the JVM uses and allocates memory | Red Hat Developer

    Sep 9, 2021 · By default, the heap dump is created in a file called java_pidpid.hprof in the JVM's working directory. You can specify an alternative filename or directory with the -XX:HeapDumpPath option. You can also observe peak heap memory usage using JConsole. Also, see How to monitor Java memory usage of heap/permanent generation and gc activities.

  7. Java Memory Management Explained: How the JVM Handles Memory

    Mar 11, 2025 · In this article, we’ll break down the JVM’s memory model, explore garbage collection, and discuss best practices to optimize memory usage. The Java Virtual Machine (JVM) divides memory...

  8. How to Increase JVM Memory for Your Java Application?

    Increasing the Java Virtual Machine (JVM) memory is essential for performance tuning, particularly for applications that handle large amounts of data. This guide explains how to adjust the memory settings for the JVM and how to check the current memory allocation.

  9. JVM Memory Management: Understanding Heap, Stack, and …

    In this article, we will dive deep into the different components of JVM memory management: Heap, Stack, and PermGen. We will explain what each of these memory areas is, how they interact with one another, and the importance of each …

  10. How to Increase Memory Allocation in Java: A Complete Guide

    Learn how to increase memory allocation in Java applications with expert tips and practical code examples to enhance performance.

  11. Some results have been removed
Refresh