Send Docs Feedback

Modifying Java Memory Settings

Edge for Private Cloud v. 4.17.01

Depending on your traffic and processing requirements you may need to increase the heap size or permgen size for one or more Apigee components.  

To change these settings, edit the properties file for the component. If the component is installed on multiple machines, such as the Edge Message Processor, then edit the properties file on all machines hosting the component.

To set these values, set the following properties:

  • bin_setenv_min_mem - set the minimum heap size. The default is 256 MB.
  • bin_setenv_max_mem - set the maximum heap size. The default is 512 MB.
  • bin_setenv_max_permsize - set the maximum permgen size. The default is 128 MB. On the Message Processor, Apigee recommends that you set this value to 256 MB or 512 MB, depending on your traffic.

Set these properties for each component on the machine, using "m" suffix to indicate megabyte. For example, for the Message Processor, set them in the /<inst_dir>/apigee/customer/application/ file as:


If the file does not exist, or if the corresponding .properties file for any Edge component does not exist, create it.

After setting the values in the .properties file, restart the component:

> /<inst_root>/apigee/apigee-service/bin/apigee-service component restart

For example:

> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-message-processor restart

Help or comments?