article Adjusting the Java Heap Size

Related Documentation Version of up.time affected Affected Platforms
IOException: Not enough space (Java heap)
v7.0 and earlier All

 

NOTE: The following information is applicable to earlier versions of up.time. If you are using the current version, refer to the up.time product documentation for the latest information.

The Java heap is a repository for Java objects and free memory. The Java heap size should generally be increased when you have:

  • A large number of service monitors.
  • A large number of reports to run.

Adjusting the Java Heap Size

uptime is installed with a default Java Heap Size value of 1 Gb. For optimal performance, a value of 1.5 Gb is usually recommended.

NOTE: When increasing the Java Heap Size, ensure that the Operating System can support the new setting. If the OS does not have the desired amount of memory available exclusively for up.time, the up.time core will fail on startup.

RedHat, SuSE and Solaris Monitoring Stations

To change the Java Heap Size, modify the <uptime install dir>/uptime.lax (or uptime4d.lax in up.time 4) file to look like this:

NOTE: Java Heap Size is measured in bytes on UNIX and Linux systems.

# LAX.NL.JAVA.OPTION.JAVA.HEAP. SIZE.MAX
# --------------------------------------
# Max VM size in bytes
lax.nl.java.option.java.heap.size.max=1500m

Windows Monitoring Station

To change the Java Heap Size on a Windows system, edit the following line in the <uptime install dir>/wrapper.conf  file:

Note: Java Heap Size is measured in megabytes on Windows systems.


wrapper.java.maxmemory=1500

Related Articles


up.time does not start - Java heap size too high

RatingViews
article

If the up.time 4 Data Collector fails to start and messages like those below are found in the wrapper.log you may have to adjust your java heap size to a lower value. wrapper.log: ........ STATUS...

By: uptime Support | Date Created: 10-10-2009 | Last Modified: 8-13-2011 | Index: 422

  2223

IOException: Not enough space (Java heap)

RatingViews
article

This article explains the IOException: Not enough space message and how to resolve it.

By: uptime Support | Date Created: 1-12-2007 | Last Modified: 7-6-2011 | Index: 115

  4224

Java heap space Throwable: java.lang.OutOfMemoryError

RatingViews
article

Example error message: 2010-07-09 16:42:41,654 ERROR (PerfERDC:137) - service Platform Performance Gatherer (192) on host DKLBMMDB1 (34) Error getting data from agent: Java heap space Throwable:...

By: uptime Support | Date Created: 8-26-2010 | Last Modified: 8-10-2011 | Index: 495

  2882

Query to retrieve MySQL database size

RatingViews
article

If you need to figure out how much data a MySQL database is consuming use the information_schema database and run the following: mysql> use information_schema; mysql> select table_schema,...

By: uptime Support | Date Created: 10-7-2009 | Last Modified: 8-10-2011 | Index: 386

  2351

Apache access.log file size keeps growing

RatingViews
article

For web servers that are very heavily loaded with many users making many requests, the "access.log" file will continue to grow in size until it is removed. Simply removing it while Apache is...

By: uptime Support | Date Created: 10-1-2009 | Last Modified: 5-4-2012 | Index: 377

  4605

User Comments



Subject: Do you need to restart the service

From: Cristian <cristian.speranta@smartandfinal.com>
Date: 5-23-2006

Comment: Does this change take place real-time or do you need to restart the service or process in order to take effect ?



Answer: Yes, you must restart the uptime4_core or up.time 4 Data collector to update the java heap size.

Copyright © 2020 IDERA, Inc.   Legal   Privacy Statement