O'Reilly logo

Oracle SOA Suite Performance Tuning Cookbook by Matt Brasier, Nicholas Wright

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. JVM Memory

This chapter looks at some of the things we can do to tune the memory settings of the Java Virtual Machine (JVM). We will look at how to perform the following actions:

  • Increasing the JVM heap size
  • Setting Xmx and Xms to the same value
  • Setting the size of the Permanent Generation heap
  • Calculating the total memory used by your application
  • Viewing the memory used using JRMC for JRockit
  • Viewing the memory used using VisualVM for HotSpot
  • Setting the size of the thread stack

Introduction

JVM manages memory for us so that we can focus on writing our applications. It is pretty good at it too, but it cannot fully optimize its behavior while running programs. To help it, we can give it explicit rules to follow as well as hints on how to operate. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required